Skip to navigation

Generate a video

Always async. Returns a job_id and polling URL immediately; poll GET /v1/jobs/<job-id> for the final video URL.

Video jobs typically complete in 1–15 minutes; 4K-tier video can take 30+ minutes.

Templates and Extend

Two optional fields ride alongside the normal video gen payload:

  • template: "<slug>" applies a pre-curated creative effect (canonical prompt + recommended model + default params). Browse video templates with GET /v1/videos/templates or all generation templates with GET /v1/templates.
  • extend_from: { job_id | video_url } continues a prior video. Works on every supported video model; EmpirioLabs handles the model-specific wiring for you.

model is required unless template or extend_from is set. A template without model runs the template’s recommended model, and an extend without model runs the template’s recommended model, or seedance-2-0-pro when there is no template. A request with none of the three returns 400 missing_required_parameter. A template that runs only on its own model returns 400 template_model_pinned for any other model: leave model out, or set it to the model the error message names.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Request

This endpoint expects an object.
modelstringOptional

Video model id from the catalog, for example kling-3-0-turbo. Required unless template or extend_from is set.

promptstringOptional
Description of the video to create.
templatestringOptional

Optional template slug. When provided, the canonical prompt blends with your prompt, the recommended model is chosen if you don’t pass one, and default params merge for any key you didn’t supply. A model that is not in template.supported_models returns 400 template_model_unsupported, and a template that runs only on its own model returns 400 template_model_pinned for any other model. See GET /v1/videos/templates.

extend_fromobjectOptional

Continue a prior video. Pass exactly one of job_id (any prior async job from this account) or video_url (an http(s) URL to a video). Works with every supported video model; EmpirioLabs handles the model-specific wiring for you. Without model, the extend runs the template’s recommended model, or seedance-2-0-pro when there is no template.

resolutionstringOptional
Output resolution. The supported values depend on the model.
aspect_ratiostringOptional

Output aspect ratio, for example 16:9 or 9:16.

durationintegerOptional
Video length in seconds. The supported values depend on the model.
generate_audiobooleanOptionalDefaults to true
Also create an audio track, on models that support it.
imagestringOptionalformat: "uri"

Reference image URL for image-to-video modes.

image_urlstringOptionalformat: "uri"

Alias for image. Accepted on any image-to-video model.

imageslist of stringsOptional

Multiple input images. On a model that supports reference-to-video, two or more images are treated as reference images; a single image behaves like image.

reference_imageslist of stringsOptional

Reference images for reference-to-video, on models that support it. The subjects are carried into a new scene rather than used as the first frame, so this cannot be combined with image. Per-model limits (how many references, and the maximum resolution when references are used) are listed on the model page and in GET /v1/models/{model}.

modestringOptional

Generation mode on models that expose one, for example t2v, i2v, or r2v. Defaults to auto, which picks the mode from the inputs you send. See the model page for the values a given model accepts.

Response

Job created. Poll the jobs endpoint for the result.
job_idstringformat: "uuid"
statusenum
Allowed values:
poll_urlstring

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error