Video

Generate a video

Changed on

Submits 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.

post/videos/generate

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

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

VideoGenerateRequest required
model, string required

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.

input, object required

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

ProviderJob required
id, string required
object, string required
type, string required
status, 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled' required
model, string required
progress, integer required
input, object required
result, object nullable required
error, string nullable required
error_code, string nullable required
credits_used, integer nullable required
provider_request_id, string nullable required
created_at, string date-time required
started_at, string date-time nullable required
completed_at, string date-time nullable required

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