Colossyan API
  • Welcome
  • Getting Started
    • Quickstart
    • Extracting request bodies from the web-editor
  • Basics
    • Authentication
    • Endpoints
    • Video Generation
      • Generating using a template
      • Generating a video manually
      • Receiving a generated video
    • Using template variables
      • Script template variables
      • Text template variables
    • Generated videos
      • Retrieve a video
      • Delete a video
    • Video generation job
      • Retrieve video generation job
      • Delete video generation job
    • Assets
      • Actors
      • Voices
  • Advanced
    • Advanced use-cases
    • Timing
  • Experimental
    • Knowledge to draft
Powered by GitBook
On this page
  • Providing values for the variables
  • Generating a video

Was this helpful?

Export as PDF
  1. Basics
  2. Using template variables

Text template variables

PreviousScript template variablesNextGenerated videos

Last updated 1 month ago

Was this helpful?

You can use dynamic template variables in any text element, by simply typing a variable name between curly braces.

Take the following example:

,,,

Hey {name}, we’ve been improving!

Our newest feature, {feature_name}, is live!

,,,

In this text we created two template variables: name and feature_name .

Providing values for the variables

You can replace these template variables with their values, by sending their values in the request body when generating a video. The API will replace the placeholders in the text with the corresponding values you provide.

For example:

{
    "dynamicVariables": {
        "name": "John",
        "feature_name": "AI-powered task automation",
    },
    // other request parameters...
}

Generating a video

On how to generate a video you can find more information here: Video Generation