gemini-omni-flash-preview API
Generate and edit short videos with audio from text, images, or video using Gemini Omni Flash on APISea.
gemini-omni-flash-previewתמחור API של gemini-omni-flash-preview
כל המחירים נקובים ב-USD. תעריפי APISea בהשוואה למחירון הרשמי עבור אותה יחידה.
| אפשרות | APISea | רשמי | חיסכון |
|---|---|---|---|
| 720P | $0.0968 | $0.10 | −3% |
המחירים הם לכל שנייה.
מהו gemini-omni-flash-preview?
Google's gemini-omni-flash-preview is an all-in-one multimodal video generation model for creating short clips and editing existing footage. On APISea, it supports Text-to-Video, Image-to-Video, and Video-to-Video workflows, including mixed text, image, and video input. Outputs are 720p at 24fps, run 3–10 seconds, and include audio. You can supply up to 16 reference images or one reference video, select landscape or portrait orientation for generation, and use conversational multi-turn editing to refine a previous task.
Submit requests to APISea's asynchronous video generation endpoint, then query progress and results using the returned task ID. APISea provides one API key and the base URL https://api.apisea.ai/v1. Pricing is pay-as-you-go, with billing only for successful requests: APISea 720P costs $0.0968 per second, compared with the provider list price of $0.1 per second. The default configuration is about 3% below the provider list price.
המאפיינים הבולטים של gemini-omni-flash-preview
Mixed Input Generation
Create videos from text, reference images, or an existing video. Mixed text, image, and video input is supported.
Short Videos With Audio
Generate 3–10-second videos at 720p and 24fps, with audio included.
Conversational Video Editing
Refine a previous generation through multi-turn editing using its task ID in extend_from_task_id.
Output Orientation Controls
Choose 16:9 landscape or 9:16 portrait with aspect_ratio. This parameter has no effect when video_urls is supplied.
איך לקרוא ל-API של gemini-omni-flash-preview ב-4 שלבים
- 01
יצירת מפתח API
יש להתחבר ל-APISea, להוסיף יתרה החל מ-$50 וליצור מפתח sk-sea במסוף.
- 02
הגדרת כתובת הבסיס
יש להשתמש ב-https://api.apisea.ai/v1 ככתובת הבסיס ב-SDK או בלקוח HTTP.
- 03
שליחת הבקשה
יש לקרוא ל-POST /v1/videos/generations עם "model": "gemini-omni-flash-preview" והפרמטרים שלהלן.
- 04
טיפול בתגובה
התגובה מכילה task_id. יש לשלוח בקשות GET אל /v1/tasks/{task_id} עד שהסטטוס יהיה completed, ואז להוריד את כתובות ה-URL של התוצאות.
דוגמאות לבקשות
תיעוד: Gemini Omni Flash Video Generationcurl --request POST \
--url https://api.apisea.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-omni-flash-preview",
"prompt": "a red apple on a wooden table, short cinematic clip",
"aspect_ratio": "16:9"
}'פרמטרים
| פרמטר | סוג | נדרש | ברירת מחדל | תיאור |
|---|---|---|---|---|
model | string | נדרש | — | Video generation model name. Must be `gemini-omni-flash-preview`. |
nsfw_check | boolean | אופציונלי | false | Whether to run content moderation before submitting the video task. |
prompt | string | נדרש | — | Text instruction. For Text-to-Video, it is a scene description; for Image/Video-to-Video, it is an action / style / editing instruction. |
image_urls | array\<string\> | אופציונלי | — | Reference images, up to **16**. Each item is an `http(s)://` URL. |
video_urls | array\<string\> | אופציונלי | — | Reference / video to be edited, **at most 1** (multiple video references are not supported). Can be an `http(s)://` direct link or `data:video/...`. |
aspect_ratio | string | אופציונלי | 16:9 | Video aspect ratio, which actually controls the output frame orientation. |
resolution | string | אופציונלי | 720p | Video resolution. Currently only `720p` is supported. |
extend_from_task_id | string | אופציונלי | — | Previous task ID: fill in the \*\* `task_id`\*\* of the previous generation task. |
מה אפשר לבנות עם gemini-omni-flash-preview
Prompt-to-Clip Tools
Build a tool that turns scene descriptions into short videos with audio for creative concept exploration.
Reference-Based Animation
Let users upload JPEG or PNG reference images and describe how subjects should move or interact in a generated clip.
Video Editing Workflows
Accept one reference video and a text instruction describing the desired action, style, or edit.
Iterative Creative Review
Build a review interface where users refine generated clips across multiple turns by referencing a previous task ID.
טיפים לקבלת תוצאות טובות יותר
- 01
Describe Subject Interactions
When supplying multiple reference images, explain in the prompt how their subjects should interact. You can provide up to 16 image URLs.
- 02
Keep Video References Short
Reference videos can be 1–24 seconds, but the official recommendation is 3 seconds or less. Supply no more than one video reference.
- 03
Track Each Task
Store the task_id returned after submission and query the task status endpoint for progress and results. Submission initially returns a submitted status, not a finished video.
- 04
Choose Moderation Explicitly
Set nsfw_check to true to review prompts and input images with omni-moderation-latest before submission. False or omitted skips that moderation request, adding no moderation cost or latency.
מגבלות ודברים שכדאי לדעת
Only 720p output is supported, with generated clips lasting 3–10 seconds.
video_urls and extend_from_task_id are mutually exclusive.
Generation is asynchronous; query the returned task ID to retrieve progress and results.
שאלות נפוצות על API של gemini-omni-flash-preview
How much does gemini-omni-flash-preview cost on APISea?
APISea 720P costs $0.0968 per second, compared with the provider list price of $0.1 per second. The default configuration is about 3% below list price, with pay-as-you-go billing only for successful requests.
How do I call gemini-omni-flash-preview?
Send a Bearer-authenticated POST request to https://api.apisea.ai/v1/videos/generations with model set to gemini-omni-flash-preview. Include a prompt describing the scene or edit, then use the returned task_id to query progress and results.
Does it support images and video as inputs?
Yes, it supports Text-to-Video, Image-to-Video, and Video-to-Video, including mixed inputs. You can supply up to 16 JPEG or PNG image URLs and at most one reference video.
What output settings are supported?
Outputs are 720p at 24fps, last 3–10 seconds, and include audio. aspect_ratio supports 16:9 and 9:16, but has no effect when video_urls is provided.
Can I continue editing a generated video?
Yes, conversational multi-turn editing is supported. Pass the previous generation's task_id as extend_from_task_id, without also supplying video_urls.
Can I use generated videos commercially?
Commercial use is subject to the provider's terms. Review the applicable Google terms before using generated videos in a commercial product or campaign.
מודלים קשורים
gemini-omni-1.1-flash-ext
Omni-Flash-Extgemini-omni-1.1-flash
gemini-omni-1.2-flash
gemini-omni-1.2-flash-ext
Veo 3.1
veo3.1-fastveo3.1-fast-official
veo3.1-lite
Veo 3.1 Quality
veo3.1-qualityמתחילים לבנות עם gemini-omni-flash-preview
מפתח אחד, תשלום לפי שימוש החל מ-$50, וחיוב רק על בקשות שהצליחו.