> For the complete documentation index, see [llms.txt](https://bountyv.gitbook.io/vdocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bountyv.gitbook.io/vdocs/frontier-passthrough/frontier-omni-flash.md).

# Omni Flash

Google's `gemini-omni-flash-preview` text-to-video, via the Gemini Interactions API. **Synchronous** — the finished mp4 comes back in a single call, no polling.

```
POST /api/v1/frontier/omni-flash
```

That's the reason to reach for this lane: every other video endpoint on the platform is submit-and-poll.

## Authentication

```
Authorization: Bearer sk_live_...
```

## Request

**Content-Type:** `application/json`

| Field          | Type   | Required | Default  | Description           |
| -------------- | ------ | -------- | -------- | --------------------- |
| `prompt`       | string | ✅        | —        | The scene to generate |
| `aspect_ratio` | string | —        | `"16:9"` | `"16:9"` \| `"9:16"`  |

Text-to-video only — Omni Flash takes no reference image on this API.

The model chooses its own clip length, **3–10 seconds at 720p**; there is no duration parameter to pass through. Budget for the upper end: a 10s clip costs us roughly 3× a 3s one, which the flat price already absorbs.

Because the call is synchronous, expect the request to stay open for the length of the render. Set your client timeout generously.

## Response

```json
{
  "video": "https://.../generations/<id>.mp4?token=...",
  "generation_id": "gJ8nP3kQ2m",
  "model": "gemini-omni-flash-preview",
  "aspect_ratio": "16:9",
  "charged_cents": 249,
  "balance_cents": 4551,
  "elapsed_ms": 48210
}
```

| Field           | Type           | Description                                                        |
| --------------- | -------------- | ------------------------------------------------------------------ |
| `video`         | string         | Signed URL when the clip persists, otherwise an inline `data:` URL |
| `generation_id` | string \| null | Generation record ID                                               |
| `charged_cents` | integer        | Amount deducted                                                    |
| `elapsed_ms`    | integer        | Render time                                                        |

## Example

```bash
curl -X POST https://substance-api.com/api/v1/frontier/omni-flash \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Slow dolly through a neon-lit Tokyo alley in the rain, reflections on wet asphalt",
    "aspect_ratio": "16:9"
  }'
```

## Errors

| Status | Meaning                                                                                                     |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| `400`  | Missing `prompt`, or an `aspect_ratio` other than `16:9` / `9:16`                                           |
| `402`  | Balance below the call price                                                                                |
| `403`  | Your account doesn't have the `video` product enabled                                                       |
| `502`  | Gemini failed, refused the prompt, or returned no video. The charge is refunded — `refunded_cents` included |
| `503`  | The pipeline is disabled                                                                                    |

## Pricing

$2.49 per clip. Omni Flash bills per output second upstream and the model picks the length, so this rate covers a full 10-second worst case. Bills on `images.img2video.omniflash`. See [Credits & pricing](/vdocs/account/credits.md).

SFW only — Gemini enforces its own safety filter.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bountyv.gitbook.io/vdocs/frontier-passthrough/frontier-omni-flash.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
