Video tools
Every /videos endpoint - what it does, the fields it takes and what it costs.
Videos usually take 1-5 minutes. Start the job, then check it every 5-10 seconds (see Jobs, tools and usage). model works as for image tools; the account's plan sets the highest resolution.
Price of a video = duration_seconds × the model's credits_per_second × each chosen price_factors value (resolution, audio), rounded up. GET /tools lists them; the job's credits is the exact figure.
POST /videos/generate
Creates a video from a description. Like Text to Video. Cost: from 247 credits per second.
| Field | ||
|---|---|---|
prompt | required | The scene |
duration_seconds | required | One of the model's durations |
aspect_ratio | required | One of the model's aspect_ratios, e.g. 16:9 |
model | A model of this tool | |
resolution | One of the model's resolutions | |
audio | true / false, for models whose audio is optional | |
negative_prompt | What to avoid, for models that take it | |
style | A style key from GET /tools |
POST /videos/from-image
Animates a photo. Like Image to Video. Cost: from 247 credits per second.
| Field | ||
|---|---|---|
image_upload_id | required | The photo the video starts from |
duration_seconds | required | One of the model's durations |
prompt | The motion, e.g. the camera slowly moves closer | |
model | A model of this tool | |
aspect_ratio | One of the model's aspect_ratios; leave out to keep the photo's shape | |
resolution | One of the model's resolutions | |
audio | For models whose audio is optional | |
negative_prompt | For models that take it |
POST /videos/face-swap
Puts a face into a video, keeping its sound. Like Face Swap Video. Cost: 500 credits per second of the part swapped.
| Field | ||
|---|---|---|
face_upload_id | required | A clear photo of the face |
video_upload_id | required | The video |
start_seconds, end_seconds | required | The part to swap, 1 to 600 seconds long |
consent_confirmed | required | true |
POST /videos/talking-photo
Makes a portrait speak a voice recording, lips in sync. Like Talking Photo. Cost: 1,405 credits per second.
| Field | ||
|---|---|---|
image_upload_id | required | A photo of a face |
audio_upload_id | required | The voice recording (an audio upload) |
start_seconds, end_seconds | required | The part of the recording to speak, up to 60 seconds |
consent_confirmed | required | true |
prompt | The scene and movement | |
resolution | One of the tool's resolutions |