curl --request POST \
--url https://toapis.com/v1/videos/generations \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-omni-flash",
"prompt": "A blue pump bottle slowly rotates in a clean white studio, commercial product video",
"duration": 6,
"aspect_ratio": "9:16",
"resolution": "720p",
"image_urls": ["https://example.com/reference.jpg"]
}'
{
"id": "video_01JZEXAMPLE",
"object": "generation.task",
"model": "gemini-omni-flash",
"status": "queued",
"created_at": 1779247407
}
Gemini Omni Flash
Gemini Omni Flash 動画生成
非公式の Gemini Omni Flash チャネルでテキストまたは最大 3 枚の参照画像から動画を生成
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://toapis.com/v1/videos/generations \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-omni-flash",
"prompt": "A blue pump bottle slowly rotates in a clean white studio, commercial product video",
"duration": 6,
"aspect_ratio": "9:16",
"resolution": "720p",
"image_urls": ["https://example.com/reference.jpg"]
}'
{
"id": "video_01JZEXAMPLE",
"object": "generation.task",
"model": "gemini-omni-flash",
"status": "queued",
"created_at": 1779247407
}
中国本土のユーザー向け: 中国本土のユーザーは
https://toapis.cn を API エンドポイント(Base URL)としてご利用ください。本ドキュメント内の例では https://toapis.com を https://toapis.cn に置き換えてください。- Use
gemini-omni-flash(or the configuredgemini_omni_flashalias) in themodelfield - Supports text-to-video and reference-image-to-video
- Supports 4 / 6 / 10 second durations
- Supports
720pand1080p;1080pis landscape-only - Async task API: submit a task, then query by task ID
This page documents the non-official legacy
gemini-omni-flash model. It does not use the Vertex AI Interactions API. Other legacy channel implementations may have different limits. See the separate gemini-omni-flash-preview-official page for official Vertex AI access.Upload local images with the Upload 画像API first, then pass the returned URLs in
image_urls. Do not pass base64 image data directly.Authorizations
string
必須
Use Bearer Token authentication:
Authorization: Bearer YOUR_API_KEY
Body
string
デフォルト:"gemini-omni-flash"
必須
モデル name. Use
gemini-omni-flash; some channels expose the gemini_omni_flash alias.string
必須
Text prompt for video generation.
integer
デフォルト:"6"
Video duration. Supported values:
4, 6, or 10 seconds.string
デフォルト:"16:9"
Video aspect ratio:
16:9landscape9:16portrait
string
デフォルト:"720p"
Video resolution:
720p or 1080p; 1080p is landscape-only.string[]
Optional public reference image URL array with up to
3 items. Omit it for text-to-video. Base64/data URIs and video inputs are not supported by this channel.レスポンス
string
Task ID for status polling.
string
Object type, usually
generation.task.string
モデル name used for the request.
string
Task status:
queued, in_progress, completed, or failed.integer
Task creation timestamp.
string
Generated video URL when the task completes.
Examples
curl --request POST \
--url https://toapis.com/v1/videos/generations \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-omni-flash",
"prompt": "A blue pump bottle slowly rotates in a clean white studio, commercial product video",
"duration": 6,
"aspect_ratio": "9:16",
"resolution": "720p",
"image_urls": ["https://example.com/reference.jpg"]
}'
{
"id": "video_01JZEXAMPLE",
"object": "generation.task",
"model": "gemini-omni-flash",
"status": "queued",
"created_at": 1779247407
}
Query Task
The generation endpoint returns a task ID. Use the common video task status endpoint to fetch status and results:curl --request GET \
--url https://toapis.com/v1/videos/generations/{task_id} \
--header "Authorization: Bearer YOUR_API_KEY"