v2-master/image-to-video
Last updated
Was this helpful?
Last updated
Was this helpful?
Compared to , this Kling model better aligns with the prompt and delivers more dynamic and visually appealing results.
If you don’t have an API key for the AI/ML API yet, feel free to use our .
Generating a video using this model involves making two sequential API calls:
The first one is for creating and sending a video generation task to the server (returns a generation ID).
The second one is for requesting the generated or extended video from the server using the generation ID received from the first endpoint.
Below, you can find both corresponding API schemas.
After sending a request for video generation, this task is added to the queue. Based on the service's load, the generation can be completed in seconds or take a bit more.
The code below creates a video generation task, then automatically polls the server every 10 seconds until it finally receives the video URL.
This model produces highly detailed and natural-looking videos, so generation may take around 5–6 minutes.
Original:
"prompt": "Mona Lisa puts on glasses with her hands."
The text prompt to guide video generation
The duration of the generated video in seconds. Possible values: 5, 10
The description of elements to avoid in the generated video
The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt
No content
No content