Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Google · Gemini Omni

gemini-omni-1.2-flash API

Generate, edit, and extend videos from text, images, or clips with gemini-omni-1.2-flash on APISea.

إنشاء الفيديوالفيديومهمة غير متزامنة
معرّف النموذج
gemini-omni-1.2-flash

تسعير API لنموذج gemini-omni-1.2-flash

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

الخيارAPISeaرسميوفّر
افتراضيافتراضي$0.066$0.07−6%
1080P$0.09944$0.104−4%
360P$0.022$0.023−4%
4K$0.1989$0.209−5%
720P$0.066$0.07−6%

الأسعار لكل ثانية.

ما هو gemini-omni-1.2-flash؟

gemini-omni-1.2-flash is Google's Gemini Omni video model for generating clips from text or images, using subject references, and editing or extending existing videos. On APISea, it supports output up to 4K at 24fps with audio. Developers can guide generation with a starting frame, paired first and last frames, or multiple reference images, and choose landscape or portrait output. Text-to-video and image-to-video support 3–15 whole seconds; frame interpolation and extension segments support 3–10 seconds.

Call the model through APISea's video generation endpoint with your API key and a required prompt. Pricing is pay-as-you-go, with billing only for successful requests. The Default configuration costs $0.066 per second, about 6% below the provider list price. Resolution-specific rates range from $0.022 per second for 360P to $0.1989 per second for 4K. The 1080p and 4k outputs are upsampled, so choose resolution according to your delivery requirements and budget.

أبرز مزايا gemini-omni-1.2-flash

Text and Image Generation

Generate videos from text instructions or animate an input image. Output supports 24fps with audio.

Reference and Frame Controls

Use multiple images as subject references or supply first and last frames for interpolation. Up to 10 images are supported in total, including frame inputs.

Video Editing and Extension

Edit or extend one input clip of up to 15 seconds. Editing preserves the source length, while extension adds a 3–10 second segment.

Resolution and Aspect Options

Choose 360p, 720p, 1080p, or 4k output in 16:9 or 9:16. The 1080p and 4k options are upsampled.

كيفية استدعاء API الخاص بـ gemini-omni-1.2-flash في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/videos/generations مع "model": "gemini-omni-1.2-flash" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    تتضمن الاستجابة task_id. أرسل طلبات GET /v1/tasks/{task_id} دوريًا حتى تصبح الحالة completed، ثم نزّل روابط النتائج.

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gemini-omni-1.2-flash",
    "prompt": "A marble rolling fast on a chain reaction style track, continuous smooth shot.",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 15
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوب—Must be `gemini-omni-1.2-flash`.
nsfw_checkbooleanاختياريfalseWhether to run content moderation before submitting the video task.
promptstringمطلوب—Required text instructions: describe the scene for text-to-video, or the motion, style, or changes for image-to-video, editing, and extension. You must provide `prompt` even when supplying reference images, first/last frames, video, or `extend_from_task_id`. Omitting it returns HTTP 400.
durationintegerاختياري10Output duration for text-to-video and image-to-video as an integer from `3` to `15`, default `10`. First/last-frame interpolation and extension support only `3`–`10` seconds. For extension, this is the added segment length; the returned video includes both the original and added segments. Editing ignores `duration` and preserves the source video length. Parameter values outside the allowed range fail the task with `invalid_duration`.
resolutionstringاختياري720p
aspect_ratiostringاختياري16:9Only `16:9` (landscape, default) and `9:16` (portrait). Other values are treated as `16:9`.
image_urlsstring[]اختياري—Reference images as publicly accessible HTTP(S) direct image URLs only. Data URLs and Base64 are not supported. One image defaults to the starting frame; multiple images act as subject references. Up to 10 images in total, including first/last frames. For character references, use at most 2 characters with up to 3 images each, preferably no more than 6 images overall.
first_frame_imagestringاختياري—Starting frame. Used alone, generation starts from this image; with `last_frame_image`, it enables first/last-frame interpolation. Only publicly accessible HTTP(S) direct image URLs are supported.
last_frame_imagestringاختياري—Ending frame; requires `first_frame_image`, otherwise the task fails with `invalid_frame_images`. Use the same ratio for both frames and match `aspect_ratio`. Only publicly accessible HTTP(S) direct image URLs are supported.
image_with_rolesobject[]اختياري—Images with roles, an alternative to the direct first/last-frame fields. Choose one way to specify the frames. All images used count toward the total limit of 10.
urlstringمطلوب—Only publicly accessible HTTP(S) direct image URLs are supported.
rolestringمطلوب—
video_urlsstring[]اختياري—Video to edit or extend: at most 1 clip, no longer than 15 seconds. Only publicly accessible HTTP(S) direct video URLs are supported. Data URLs and Base64 are not supported. Video input defaults to editing.
omni_reference_task_typestringاختياريautoTask type: `auto` (default, inferred from the input) / `edit` (editing) / `extend` (extension) / `reference` (multiple image references). Also accepts `text_to_video` / `image_to_video` / `reference_to_video`. When omitted or set to `auto`, both `video_urls` and `extend_from_task_id` default to editing; extension requires an explicit `extend` value.
extend_from_task_idstringاختياري—Reference your own previous generation task ID to reuse its video without uploading it again. Defaults to editing. With `"omni_reference_task_type": "extend"`, adds a segment of up to 10 seconds at the end.

ما الذي يمكنك إنشاؤه باستخدام gemini-omni-1.2-flash

Prompt-to-Video Tools

Build a tool that turns scene descriptions into short videos with audio, with duration and aspect-ratio controls.

Image Animation Workflows

Let users supply a starting image and describe the motion or style they want for an animated clip.

Frame Transition Builders

Generate a video between supplied starting and ending frames for storyboard or visual transition workflows.

Clip Revision Interfaces

Build an interface for prompt-driven edits to existing clips or for adding a new segment through explicit extension mode.

نصائح للحصول على نتائج أفضل

  • 01

    Always Include a Prompt

    Provide prompt instructions even when using images, frames, video, or a previous task ID. Omitting the prompt returns HTTP 400.

  • 02

    Select Extension Explicitly

    Set omni_reference_task_type to extend when adding footage. Video inputs and previous task references otherwise default to editing; duration controls only the added segment in extension mode.

  • 03

    Match Frames and Ratios

    Use the same ratio for starting and ending frames and match aspect_ratio. A last frame requires a first frame; choose either the direct frame fields or image_with_roles.

  • 04

    Budget by Resolution

    360P costs $0.022 per second, 720P costs $0.066 per second, 1080P costs $0.09944 per second, and 4K costs $0.1989 per second. The default resolution is 720p; 1080p and 4k are upsampled.

القيود ومعلومات مهمة

  • Image and video inputs must be publicly accessible HTTP(S) direct URLs; Data URLs and Base64 are unsupported.

  • Inputs are limited to 10 images total and at most one video clip no longer than 15 seconds.

  • Only 16:9 and 9:16 aspect ratios are supported; other values are treated as 16:9.

الأسئلة الشائعة حول API الخاص بـ gemini-omni-1.2-flash

How much does gemini-omni-1.2-flash cost on APISea?

The Default and 720P rates are $0.066 per second; 360P is $0.022 per second, 1080P is $0.09944 per second, and 4K is $0.1989 per second. The Default configuration is about 6% below the provider list price, and APISea bills only for successful requests.

How do I call gemini-omni-1.2-flash through the API?

Send a POST request to https://api.apisea.ai/v1/videos/generations with Bearer token authentication and Content-Type: application/json. Set model to gemini-omni-1.2-flash and include the required prompt.

What video durations does the model support?

Text-to-video and image-to-video accept integer durations from 3 to 15 seconds, defaulting to 10. First/last-frame interpolation and extension segments accept 3–10 seconds; editing ignores duration and preserves the source video length.

Does it support 4K video and audio?

Yes, the documentation specifies output up to 4K at 24fps with audio. Available resolutions are 360p, 720p, 1080p, and 4k, with 1080p and 4k produced through upsampling.

Can I edit or extend an existing video?

Yes, supply one publicly accessible direct video URL for a clip no longer than 15 seconds. Video input defaults to editing; set omni_reference_task_type to extend to add a segment instead.

Can I use generated videos commercially?

Commercial use is subject to the provider's terms. Check the applicable terms for your intended use before publishing or distributing generated videos.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام gemini-omni-1.2-flash

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.