google/gemini-omni-flash-1.1
Video · Typically $1.063281 per request
Endpoint
POST /v1/videos — answers 202 with a job. Poll GET /v1/jobs/{id}, or receive it by webhook, until its state is final.
Dependencies
- first_frame cannot be sent with reference_images, reference_videos or video.
- height needs width sent with it.
- last_frame needs first_frame sent with it.
- last_frame cannot be sent with reference_images, reference_videos or video.
- resolution cannot be sent with height or width.
- video cannot be sent with height, reference_images, reference_videos or width.
- width needs height sent with it.
Request
curl https://api.opinference.com/v1/videos \
-H "Authorization: Bearer $OP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-omni-flash-1.1",
"prompt": "a paper boat drifting down a rain gutter"
}'Response
The job resource once it has succeeded.
{
"id": "job_01J9K2…",
"generation_id": "gen_01J9K2…",
"object": "job",
"state": "succeeded",
"modality": "video",
"model": "google/gemini-omni-flash-1.1",
"created_at": "2026-09-30T08:00:00Z",
"started_at": "2026-09-30T08:00:04Z",
"completed_at": "2026-09-30T08:01:12Z",
"output": [
{
"url": "https://…?X-Amz-Signature=…",
"url_expires_at": "2026-09-30T09:01:12Z",
"type": "video/mp4",
"bytes": 18432011,
"checksum_sha256": "…"
}
],
"usage": {
"units": {
"video_second": 8
}
}
}Input
A JSON body. A key not listed here is refused, and the error names it.
| Field | Description |
|---|---|
| modelstring · required | The id of this model. |
| promptstring · required | What the video should show.Up to 40000 characters |
| duration_secondsinteger | Length of the video in seconds.From 3 to 10 · Default: 6 |
| first_frameURL (image) | An image the video starts from. |
| heightinteger | Output height in pixels. |
| last_frameURL (image) | An image the video ends on. |
| ninteger | How many videos to generate.From 1 to 4 · Default: 1 |
| reference_imagesURL[] (image) | Images that guide subject or style.Up to 7 items |
| reference_videosURL[] (video) | Videos that guide motion or style.Up to 3 items |
| resolutionenum | Output size tier.One of: 360p, 720p, 1080p, 4K |
| videoURL (video) | A video to edit, extend or transform. |
| widthinteger | Output width in pixels. |
| modelsstring[] | Other model ids to try, in order, if this one is unavailable. Up to 5. |
| providerobject | Routing preferences: region, zdr, data_collection, sort, max_price. |
| opobject | Gateway options: retention (may only tighten), tags, session_id. |
Output
A job resource.
| Field | Description |
|---|---|
| id | The job id. Poll GET /v1/jobs/{id} with it. |
| generation_id | The generation this job belongs to. |
| object | Always "job". |
| state | queued, processing, succeeded, failed or canceled. The last three are final. |
| modality | The kind of output. |
| model | The model id that was asked for. |
| created_at | When the job was accepted. |
| started_at | When work began. Absent while queued. |
| completed_at | When the job reached a final state. |
| progress.percent | Percent complete, 0 to 100, or null when not reported. |
| progress.phase | queued, running or done. |
| progress.queue_position | Always null today. |
| output[] | The files produced: url (signed, re-issued on every read), url_expires_at, type, bytes, checksum_sha256. |
| usage | The billable units the job consumed. |
| usage.cost | An estimate from the published price: billing_usd, cost_source, cost_status ("estimated") and price_version. Your balance is charged the settled amount. |
| op_metadata | What applied when the job was accepted: generation_id, requested_model, retention_class, region and policy[]. |
| error | On failure: code, kind and a fixed message for the code. |