Generate a video
Changed onSubmits an asynchronous video generation job to the fal.ai queue and returns the queued job immediately. A tier routes on the inputs sent: input.image_url starts the clip on a still, input.end_image_url adds the last frame, input.image_urls keep subjects consistent, input.video_urls and input.audio_urls are references to follow, and input.audio_url lip-syncs speech onto a clip or still. input.mode (generate, motion, edit or extend) copies a clip's moves onto a photo, edits a clip or extends it, and is required when the inputs fit more than one mode. Poll GET /v1/jobs/{id} or GET /v1/videos/{id} for status and results. Credits are charged only when the job completes successfully.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
A quality tier (fast, balanced, quality) or any fal.ai video endpoint id. Prefer a tier — it tracks the best current model for that price point. Required: video bills per second, so there is no default. GET /v1/videos/models maps tiers to ids with live pricing.
Model-specific input. With a tier, the fields sent (and mode) pick the endpoint, and Crevio renames them to that endpoint's own names. prompt is required, except when lip-syncing audio_url onto a video_url or an image_url, and in motion mode. Inputs that fit more than one mode without mode return 400 with param: input.mode.
Example request
{
"model": "fast"
}Response
Generation job queued
Changes
- info
added the new optional request property
input/audio_url - info
added the new optional request property
input/audio_urls - info
added the new optional request property
input/background_from
6 more changes in this revision
- info