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
How it works (3 steps)
file_path.complete, then download the result from downloads.Key options
face_swap_mode, start_seconds/end_seconds, or a text promptCost
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.
Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".
Body
The total duration of the output video in seconds.
Supported durations depend on the chosen model:
2 <= x <= 605
Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of 9:16 or 16:9.
Give your video a custom name for easy identification.
"My Image To Video video"
The AI model to use for video generation.
default: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.seedance: Great for fast iteration and start/end framekling-2.5-audio: Great for motion, action, and camera controlsora-2: Great for story-telling, dialogue & creativityveo3.1-audio: Great for dialogue + SFX generated nativelyveo3.1: Great for realism, polish, & prompt adherencekling-1.6: Great for dependable clips with smooth motiondefault, seedance, kling-2.5-audio, veo3.1, veo3.1-audio, sora-2, kling-1.6 "kling-2.5-audio"
Controls the output video resolution. Defaults to 720p if not specified.
480p, 720p, and 1080p.480p, 720p, 1080p.720p, 1080p.720p.720p, 1080p.720p, 1080p.720p, 1080p.480p, 720p, 1080p "720p"
Attributed used to dictate the style of the output
Success
Success
Unique ID of the video. Use it with the Get video Project API to fetch status and downloads.
"cuid-example"
The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
If video generation fails, credits will be refunded, and this field will be updated to include the refund.
450