start_video
Start asynchronous AI video generation and get a job_id immediately; then call get_video every ~30 seconds until ready. Supports prompts, images, references, and audio.
Instructions
Start an asynchronous AI Gateway video and return a job_id immediately. Then call get_video with that job_id every ~30 seconds until it is done (usually 1–5 minutes). Text-to-video needs only a prompt. image_url animates a picture (i2v models); add end_image_url to move from the first picture to the last (Veo, Kling, Seedance). reference_urls (pictures or videos of characters or objects) makes a new scene with them (r2v models such as "alibaba/wan-v2.6-r2v": call them character1, character2… in the prompt). For dialogue, write the lines in the prompt and set sound (models with audio, e.g. Veo 3.1, HeyGen). Links must be https; links returned by this server work. If this call times out or returns no answer, do not call it again on your own: the job may already be running and a retry pays twice. Tell the user and let them decide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Video model id from list_models with type "video", e.g. "google/veo-3.1-fast-generate-001" | |
| sound | No | Generate audio with the video (models that support it). Costs more on some models. | |
| prompt | Yes | ||
| duration | No | Length in seconds; supported values vary by model | |
| image_url | No | Start image for image-to-video (i2v) | |
| aspect_ratio | No | e.g. "16:9" or "9:16" | |
| end_image_url | No | Last frame to end on; needs image_url too | |
| estimate_only | No | Only return the estimated price from AI Gateway's list prices. Nothing is started or charged. | |
| reference_urls | No | Reference pictures or videos for reference-to-video (r2v) |