Skip to main content
POST
/
videos
Create a new motion graphics video generation job
curl --request POST \
  --url https://api.hera.video/v1/videos \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "prompt": "A spinning rainbow wheel.",
  "outputs": [
    {
      "format": "mp4",
      "aspect_ratio": "16:9",
      "fps": "30",
      "resolution": "1080p"
    }
  ],
  "reference_image_url": "<string>",
  "reference_image_urls": [
    "<string>"
  ],
  "reference_video_url": "<string>",
  "duration_seconds": 8,
  "style_id": "<string>",
  "brand_kit_id": "<string>",
  "parent_video_id": "<string>",
  "assets": [
    {
      "url": "<string>"
    }
  ]
}
'
{
  "video_id": "<string>",
  "project_url": "<string>"
}

Authorizations

x-api-key
string
header
required

Your API key for authenticating requests.

Body

application/json

Request body to create a new motion graphics export job.

prompt
string
required

Text prompt describing the motion graphics/video to generate. Be specific about subject, style, motion, and colors for best results.

Example:

"A spinning rainbow wheel."

outputs
object[]
required

Array of output configurations (1–10). Each specifies format, aspect_ratio, fps, and resolution. A good default is one entry: { format: "mp4", aspect_ratio: "16:9", fps: "30", resolution: "1080p" }.

Maximum array length: 10
Example:
[
{
"format": "mp4",
"aspect_ratio": "16:9",
"fps": "30",
"resolution": "1080p"
}
]
reference_image_url
string

URL of a single reference image to guide visual style or content. Use reference_image_urls instead if you have multiple images.

reference_image_urls
string[]

Up to 5 reference image URLs to guide visual style or content. Preferred over reference_image_url when providing multiple images.

Maximum array length: 5
reference_video_url
string

Optional URL of a reference video.

duration_seconds
number

Duration (in seconds) for the generated video. Optional. Range: 1–120. If omitted, default or parent is used.

Required range: x <= 120
Example:

8

style_id
string

Optional ID of a style to use for styling the video.

brand_kit_id
string
deprecated

[Deprecated] Optional ID of a style to use for styling the video. Use style_id instead.

parent_video_id
string

Video ID or template ID to use as a starting point for this generation. Useful for iterations on a previous result or starting from a template.

assets
object[]

Optional array of asset files to include in the video generation. Each asset has a type and a URL.

Response

200 - application/json

Job successfully queued. Returns a job/video ID.

Response for a successfully queued video generation job.

video_id
string
required

Unique ID of the job/video that was created.

project_url
string

Optional URL to view the project in the user interface.