krea-wan-14b/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.
num_framesinteger · min: 18 · max: 162OptionalDefault:
Number of frames to generate. Must be a multiple of 12 plus 6, for example 18, 30, 42, etc.
78enable_prompt_expansionbooleanOptionalDefault:
Whether to enable prompt expansion.
trueseedintegerOptional
Varying the seed integer is a way to get different results for the same other request parameters. Using the same value for an identical request will produce similar results. If unspecified, a random number is chosen.
Responses
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?