Skip to main content
POST

Introduction

The video task submission endpoint creates asynchronous video generation tasks. MixRoute provides one unified entry point for video models such as Sora 2, Veo, and Dreamina Seedance.
Video generation is asynchronous. After submitting a task, poll the task status with the task ID, then retrieve the video result after the task succeeds.

API Base URL

Authentication

Use a Bearer Token:

Workflow

  1. Submit a task: POST /v1/video/generations
  2. Poll the status: GET /v1/video/generations/{task_id}
  3. Retrieve the result: after the task succeeds, get the video URL or result object from the query endpoint response

Supported Models

Pass the full model ID exactly as shown in the table. Do not use shortened aliases such as seedance-1.0, seedance-1.0-pro, or seedance-1.5-pro.

Request Body

Parameter names differ by model. model and prompt are top-level request fields. Pass all other parameters according to the selected model.

Common Fields

string
required
The model ID to call.
string
required
The video description prompt.

Sora 2 Parameters

integer
Video duration in seconds: 5, 10, 15, or 20. Defaults to 5.
string
Resolution: 480p, 720p, or 1080p. Defaults to 720p.
string
Aspect ratio: 16:9, 9:16, or 1:1. Defaults to 16:9.
string
Reference image URL for image-to-video mode.
string
Source video URL for Remix mode.

Veo Parameters

integer
Video duration in seconds: 4, 6, or 8.
string
Aspect ratio: 16:9 or 9:16.
string
Resolution: 720p or 1080p.
string
First-frame reference image, as an image URL or Base64 string.
string
Last-frame reference image. Supported only by the veo-3.1 series.
boolean
Whether to generate synchronized audio. Defaults to false.

Dreamina Seedance Parameters

When calling Seedance through MixRoute, only model, prompt, and asset are placed at the top level of the JSON body. Official Seedance parameters such as content, duration, generate_audio, resolution, ratio, and watermark are placed inside the metadata object.
Seedance on MixRoute uses metadata.ratio, not aspect_ratio; it uses metadata.content to describe text, image, video, and audio inputs. Do not use top-level first_frame, last_frame, or reference_image.
boolean
Whether to enable the human asset library or authorized asset capability. Set this to true when using the asset library, virtual human assets, or authorized real-person assets.
object
required
The container for official Seedance parameters. Except for model, prompt, and asset, all Seedance parameters go inside this object.
object[]
required
The content array passed to Seedance. It is recommended to always include one text object whose text matches the top-level prompt.
integer
Video duration in seconds. Seedance 1.0 Pro / 1.0 Pro Fast supports [2, 12]; Seedance 1.5 Pro supports [4, 12] or -1; Seedance 2.0 series supports [4, 15] or -1. -1 lets the model automatically choose an appropriate duration.
boolean
Whether to generate audio synchronized with the visuals. Supported by Seedance 2.0 series and Seedance 1.5 Pro. Defaults to true.
string
Resolution: 480p, 720p, 1080p, or 4k. Seedance 2.0 Fast and 2.0 Mini do not support 1080p; 4k is supported only by the standard Seedance 2.0 model.
string
Aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, or adaptive. Seedance 2.0 series and Seedance 1.5 Pro default to adaptive.
boolean
Whether to add an AI generated watermark in the lower-right corner of the generated video. Defaults to false.

metadata.content Types

Images and audio can use public URLs, Base64 strings, or asset IDs. Videos can use public URLs or asset IDs. Asset IDs use the format asset://<ASSET_ID>.

Seedance Capability Constraints


Examples


Response Examples

Task Submission Response

Task Query Response

Status fields can vary by model and upstream platform. Clients should handle queued, running, succeeded, failed, expired, and upstream status values returned by the query endpoint, such as NOT_START and SUCCESS. After success, the video URL is usually available from the outer data.result_url field or the nested data.data.content.video_url field.

Python Example


Model Comparison

Notes

  • Video generation is asynchronous and requires polling for status.
  • Parameter names differ by model: Sora uses aspect_ratio, Veo uses aspectRatio, and Seedance uses ratio inside metadata.
  • For Seedance on MixRoute, all Seedance parameters except model, prompt, and asset should be placed inside metadata.
  • Seedance 2.0 Fast and 2.0 Mini do not support 1080p; use 720p or another supported resolution.
  • Audio in metadata.content cannot be the only input. Provide at least one reference image or video together with the audio.
  • Generated videos have a limited retention period. Download and store them promptly after the task succeeds.
  • Follow the content policy and avoid generating prohibited content.