inferenceClient.videos.create()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
inferenceClient.videos.create(params: Record<string, any>): Promise<any>Description
Start an asynchronous video generation job from a text prompt. Poll GET /v1/videos/{video_id} until the job reaches a terminal status, then download the MP4 with GET /v1/videos/{video_id}/content or from output.url when present.
Parameters
modelstring requiredExample:
wan2-2-t2v-a14bThe video generation model to use.
promptstring requiredExample:
Two anthropomorphic cats in boxing gear fight intensely on a spotlighted stageA text description of the desired video.
sizestring optionalExample:
1280x720The output resolution, for example
1280x720.fpsinteger optionalExample:
16Frames per second for the generated video.
Request Sample
Response Example
More Information
See /v1/videos in the API reference for additional detail on responses, headers, parameters, and more.