Skip to main content
POST
/
api
/
open-api
/
v1
/
gemini
/
omni
/
videos
Create Gemini Omni Video Task
curl --request POST \
  --url https://www.jimmyai.cn/api/open-api/v1/gemini/omni/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "Gemini-Omini",
  "prompt": "A cat running through a neon rainy street, cinematic low-angle tracking shot",
  "duration": 6,
  "resolution": "720p",
  "aspect_ratio": "16:9",
  "generation_type": "reference",
  "image_urls": [],
  "video_urls": []
}
'
{
  "code": "20000",
  "msg": "ok",
  "data": {
    "task_id": "<string>",
    "status": "<string>",
    "model": "<string>",
    "created_at": 123
  }
}
After creation, the response returns a task_id. Use the Query Video Task endpoint to poll task status and read the final video URL from result.video_url.

Supported models

modelNotes
Gemini-OminiStandard Gemini Omni — 4/6/8/10s with 720p/1080p/4k
omni-10sFixed 10s, 720p, up to 7 reference images (image or video URLs)
Aliases such as Omni-Flash-Ext and gemini-omni normalize to Gemini-Omini.

Reference Video & Generation Modes

The standard version of Gemini-Omini supports the following advanced parameters to enable video reference and custom modes:
  • generation_type (string): Generation mode, supporting frame (first-frame mode, where image_urls can only take 1 image as the first frame of the video) or reference (reference mode, where image_urls can accept 1 or 3 reference images). Defaults to reference.
  • video_urls (array): A list of reference video URLs (currently supports up to 1 video). Note: duration is not required when uploading a reference video, and duration and video_urls cannot be passed at the same time.

omni-10s example

curl -X POST 'https://www.jimmyai.cn/api/open-api/v1/gemini/omni/videos' \
  -H 'Authorization: Bearer sk_xxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "omni-10s",
    "prompt": "Character from the reference runs through a cyberpunk street, cinematic tracking shot",
    "aspect_ratio": "16:9",
    "image_urls": ["https://example.com/ref1.jpg"]
  }'
For omni-10s, duration and resolution in the request are ignored; billing uses the omni-10s model config (10s, 720p).

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

Model name. Gemini-Omini, Omni-Flash-Ext, and gemini-omni normalize to Gemini-Omini; omni-10s is a fixed 10s model (720p, up to 7 reference images).

Available options:
Gemini-Omini,
Omni-Flash-Ext,
gemini-omni,
omni-10s
prompt
string
required

Text prompt for video generation

duration
integer
default:6

Video duration in seconds. Default: 6. Only supports: 4, 6, 8, 10. Note: duration is not required when uploading a reference video, and duration and video_urls cannot be passed at the same time.

resolution
enum<string>
default:720p

Video resolution. Defaults to 720p.

Available options:
720p,
1080p,
4k
aspect_ratio
string

Video aspect ratio, for example 16:9 or 9:16. Takes precedence over orientation.

orientation
enum<string>

Video orientation. Used only when aspect_ratio is empty: landscape maps to 16:9, portrait maps to 9:16.

Available options:
landscape,
portrait
image_urls
string[]

Reference image URL list. omni-10s supports up to 7 images.

images
string[]

Compatibility field for common OpenAPI image inputs; used when image_urls is empty. omni-10s supports up to 7 images.

generation_type
enum<string>
default:reference

Generation type. frame: first frame mode (image_urls can only accept 1 image as the first frame of the video); reference: reference mode (image_urls can accept 1 or 3 images as style/subject reference). Defaults to reference.

Available options:
frame,
reference
video_urls
string[]

Reference video URL list (currently supports up to 1 video). Note: duration is not required when uploading a reference video, and duration and video_urls cannot be passed at the same time.

Response

200 - application/json

Task created successfully

code
string
Example:

"20000"

msg
string
Example:

"ok"

data
object