Kandinsky 5 Distill (Text-to-Video)
Setup your API Key
How to Make a Call
API Schemas
Create a video generation task and send it to the server
post
Body
modelstring · enumRequiredPossible values:
promptstringRequired
The text description of the scene, subject, or action to generate in the video.
aspect_ratiostring · enumOptionalDefault:
The aspect ratio of the generated video.
3:2Possible values: durationinteger · enumOptionalDefault:
The length of the output video in seconds.
5Possible values: num_inference_stepsintegerOptionalDefault:
Number of inference steps for sampling. Higher values give better quality but take longer.
30Responses
200Success
application/json
idstringRequiredExample:
The ID of the generated video.
60ac7c34-3224-4b14-8e7d-0aa0db708325statusstring · enumRequiredExample:
The current status of the generation task.
completedPossible values: post
/v2/video/generations200Success
Retrieve the generated video from the server
get
Query parameters
generation_idstringRequired
Responses
200
Successfully generated video
application/json
idstringRequiredExample:
The ID of the generated video.
60ac7c34-3224-4b14-8e7d-0aa0db708325statusstring · enumRequiredExample:
The current status of the generation task.
completedPossible values: durationnumber · nullableOptionalExample:
The duration of the video.
8errorany · nullableOptional
Description of the error, if any.
get
/v2/video/generations200
Successfully generated video
Full Example: Generating and Retrieving the Video From the Server
Last updated
Was this helpful?