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>",
  "duration_seconds": 8,
  "brand_kit_id": "<string>",
  "parent_video_id": "<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.

Example:

"A spinning rainbow wheel."

outputs
object[]
required

Array of desired output configurations for export (format, aspect, resolution, etc).

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

Optional URL of a reference image.

duration_seconds
number

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

Example:

8

brand_kit_id
string

Optional ID of a brand kit to use for styling/brand assets.

parent_video_id
string

Optional video ID to use as the base/parent for this generation.

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.