Video Projects
Image-to-Video
What this API does
Create the same Image To Video you can make in the browser, but programmatically, so you can automate it, run it at scale, or connect it to your own app or workflow.
Good for
- Automation and batch processing
- Adding image to video into apps, pipelines, or tools
How it works (3 steps)
- Upload your inputs (video, image, or audio) with Generate Upload URLs and copy the file_path.
- Send a request to create a image to video job with the basic fields.
- Check the job status until it's complete, then download the result from downloads.
Key options
- Inputs: see the request schema for endpoint-specific assets
- Resolution: free users default to 480p; higher plans unlock HD and larger sizes
- Extra fields: see the request schema for endpoint-specific options
Cost
Credits are only charged for the frames that actually render. You'll see an estimate when the job is queued, and the final total after it's done.
For detailed examples, see the product page.
post/v1/image-to-video
Request body
Example request
{
"name": "My Image To Video video",
"end_seconds": 5,
"model": "kling-3.0",
"resolution": "720p",
"audio": true,
"style": {
"prompt": "a dog running"
},
"assets": {
"image_file_path": "api-assets/id/1234.png",
"end_image_file_path": "api-assets/id/1234.png"
}
}Response
Success
Example response
{
"id": "cuid-example",
"credits_charged": 450
}