Gemini Omni Flash Preview
google/gemini-omni-flash-previewGemini Omni Flash Preview is Google's natively multimodal Omni model, served through the Gemini Interactions API (/v1beta/interactions). It accepts text, image, audio and video input and returns multimodal output, including video generation and editing.
仕様
- モダリティ
- テキスト動画
- 入力 / 出力価格
- $1.50USD / 100万トークン$9.00USD / 100万トークン/M
- コンテキスト / 最大出力
- N/A
- 公開日
- 2026年6月30日
モデルを試す
Gemini ネイティブ API
このモデルは Gemini Interactions API を通じて動画を生成します。Chat Completions や Playground では利用できません。以下のリクエスト例を SandBase API key で使用してください。
このモデルは Gemini Interactions API を通じて動画を生成します。Chat Completions や Playground では利用できません。以下のリクエスト例を SandBase API key で使用してください。
開発を始める
最初のリクエストを送信
SandBase APIキー認証と使用状況の追跡を備えたGeminiネイティブのエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1beta/interactions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-omni-flash-preview",
"input": "A five-second video of ocean waves at sunset"
}'出力スキーマ
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 完了の一意な識別子 |
object | string | オブジェクト型。例: "chat.completion" |
model | string | 完了に使用されたモデル |
choices | array | 完了候補の一覧 |
choices[].message.content | string | 生成されたテキスト内容 |
choices[].finish_reason | string | 生成が停止した理由 |
usage.prompt_tokens | integer | プロンプト内のトークン数 |
usage.completion_tokens | integer | 完了で使用されたトークン数 |
usage.total_tokens | integer | 使用されたトークンの合計 |
Gemini Omni Flash Preview
Gemini Omni Flash Preview is Google's natively multimodal Omni model. It takes text, images and video as input and returns video with synchronized audio, plus text. Google model ID: gemini-omni-flash-preview.
Status: Preview. Google deprecated this model on 2026-11-06; new integrations should use google/.
Endpoint
This model is only available on the Gemini Interactions API. It does not accept /v1/chat/completions or generateContent.
POST https://api.sandbase.ai/v1beta/interactions
Authorization: Bearer $SANDBASE_API_KEY
Content-Type: application/json
Request and response bodies follow Google's Interactions API, so the official Google SDK works when pointed at the SandBase base URL.
Generate a video from text
curl -sS --max-time 600 https://api.sandbase.ai/v1beta/interactions \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-omni-flash-preview",
"input": "A red paper boat floating on a calm pond, gentle ripples.",
"response_format": {
"type": "video",
"aspect_ratio": "16:9",
"duration": "8s"
}
}'
response_format field | Values |
|---|---|
aspect_ratio | 16:9, 9:16 |
resolution | 720p only |
duration | 3–10 seconds (default 8), written as a string such as "8s" |
Use images or a video as input
Put media parts before the text prompt in input. Send files as base64 without line breaks.
{
"model": "google/gemini-omni-flash-preview",
"input": [
{"type": "image", "data": "<base64>", "mime_type": "image/jpeg"},
{"type": "text", "text": "Animate this scene with a slow camera push-in."}
]
}
For editing, send the source video as {"type": "video", "data": "<base64>", "mime_type": "video/mp4"}. Large videos produce large request bodies; build the JSON in a file and send it with curl --data-binary @request.json rather than as a command-line argument.
Supported tasks (per Google's model page): text to video, subject references and video editing. To force a task, set "generation_config": {"video_config": {"task": "image_to_video"}} (text_to_video, image_to_video, reference_to_video, edit).
Response
The request waits for the result and returns an Interaction object. Always check status:
completed: the video is insteps[], in the step with"type": "model_output", as{"type": "video", "mime_type": "video/mp4", "data": "<base64>"}. Decodedatato get the MP4.in_progress: the generation is still running. Fetch it later withGET /v1beta/interactions/{id}, using theidfrom the response.
Example of decoding the result in Python:
import base64, json
resp = json.load(open("response.json"))
for step in resp["steps"]:
for part in step.get("content") or []:
if part.get("type") == "video":
open("output.mp4", "wb").write(base64.b64decode(part["data"]))
Run in the background
To return immediately and poll, add "background": true and "store": true. The response has "status": "in_progress" and an id; poll until status is no longer in_progress:
curl -sS https://api.sandbase.ai/v1beta/interactions/$INTERACTION_ID \
-H "Authorization: Bearer $SANDBASE_API_KEY"
Billing
You pay per token, using the counts in the response usage:
| Token type | Price per 1M tokens |
|---|---|
| Input (text, image, video) | $1.50 |
| Text output | $9.00 |
Thinking (total_thought_tokens) | $9.00 |
| Video output | $17.50 |
Google counts output video at a fixed number of tokens per second: 5,792 at 720p. Approximate video cost:
| 720p | |
|---|---|
| Per second | $0.101 |
| 8 seconds | $0.81 |
Thinking and input tokens are added on top. The model may return a video even when the prompt only asks for text, so budget for a video-length charge on every request. Failed requests are not charged.
Also on SandBase
For single generations without multi-turn editing, the same model is available as task models on /v1/run, for example google/.
質問
FAQ
SandBase 経由で Google Gemini Omni Flash Preview を呼び出すにはどうすればよいですか?
SandBase API key を作成し、モデル ID「google/gemini-omni-flash-preview」を使用して https://api.sandbase.ai の Gemini Interactions API (/v1beta/interactions) にリクエストを送信してください。このページのリクエスト例に、正確なペイロードが示されています。
Google Gemini Omni Flash Preview の料金はいくらですか?
$1.50(入力トークン100万件あたり)と $9(出力トークン100万件あたり)です。リクエストごとに SandBase 残高から課金されます。割引がある場合は、このページの料金に表示されます。
別途 Google アカウントは必要ですか?
いいえ。SandBase の API key と残高が 1つあれば、Google Gemini Omni Flash Preview とカタログ内の他のモデルを利用できます。Google に別途登録する必要はありません。
