If you do not have an API Key yet, read Get API Key first.
View video generation model pricing: International site.
Integration order
- Call Video generation models to retrieve the video models available on the current site.
- Copy the model name from
data[n].nameand pass it asmodelto the generation endpoint. - Select the resolution, aspect ratio, duration, and reference assets from the same model item’s
resolutions,aspectRatios,durations,modes, andinputConstraintsfields. - Call Generate video with
model,prompt, and any optional parameters. - The generation endpoint returns
data.id. Use it to call Video task status and retrieve the result.
Model list and modes
GET /api/ai/models/video/generation returns the currently available video models. Do not hard-code model parameters when creating a generation task. Use the model item’s name as model, and select mode, resolution, ratio, and duration from the values supported by that same model item.
modes constants
A model may support only some of the modes below. When calling the generation endpoint,mode must be one of the values in the selected model’s modes array.
If
mode is omitted, the backend infers it from the supplied reference assets. For API integrations, explicitly passing mode is recommended so you can validate that the model supports the requested input type before sending the request. Pricing is determined by the pricing page, the model list endpoint’s pricing field, and the generation endpoint’s data.points value.
Minimal request
First, request the model list:Query the result
{taskId} with the data.id returned by the generation endpoint. When the task is complete, the response includes data.videoUrl and data.coverUrl. To view previous tasks, call Video task list.
Current model support
Updated at 07/10/2026, 16:21:07 (Beijing Time).

