Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Body

application/json
model
string
required

Model identifier in format provider/model

prompt
string
required

Text prompt describing the video to generate

input_reference
string

Optional reference image for image-to-video. OpenAI and Gemini require a base64 data URL (e.g., data:image/png;base64,...). Runway and Replicate accept both data URLs and plain URLs.

seconds
string

Duration of the video in seconds as a string (e.g., "4")

size
string

Resolution of the generated video (e.g., 1280x720, 720x1280, 1920x1080)

negative_prompt
string

Text describing what to avoid in the generated video

seed
integer

Seed for reproducible generation

video_uri
string

Source video URI for video-to-video generation (provider-specific, e.g. GCS URI)

audio
boolean

Enable audio generation in the video (supported by select providers/models)

fallbacks
object[]

Fallback models to try if primary model fails

Response

Successful response. Returns a video generation job object with status information. Poll the retrieve endpoint to check completion status.

id
string

Provider-native job ID. To use in path parameters (retrieve/delete/download), combine as {id}:{provider} (e.g., task_abc123:runway)

object
enum<string>

Object type, always "video"

Available options:
video
model
string

Model used for video generation

status
enum<string>

Current lifecycle status of the video generation job:

  • queued: Job is waiting to be processed
  • in_progress: Video is currently being generated
  • completed: Video generation completed successfully
  • failed: Video generation failed
Available options:
queued,
in_progress,
completed,
failed
progress
number<float>

Approximate completion percentage (0-100)

Required range: 0 <= x <= 100
prompt
string

Prompt used to generate the video

remixed_from_video_id
string

Source video ID if this is a remix

seconds
string

Duration of the generated video in seconds as a string (e.g., "4")

size
string

Resolution of the generated video (e.g., "1920x1080")

created_at
integer<int64>

Unix timestamp (seconds) when the job was created

completed_at
integer<int64>

Unix timestamp (seconds) when the job completed

expires_at
integer<int64>

Unix timestamp (seconds) when downloadable assets expire

videos
object[]

Generated video outputs (only present when status is "completed")

error
object
content_filter
object

Information about content that was filtered due to safety policies

extra_fields
object

Additional fields included in responses