Video / Gemini Omni

Gemini Omni Video Video Generation

Overview

Gemini Omni Video Video Generationendpoint, supported video, Reference image, video, character, etc. use Method.

Base URL: https://mm-internal-cn.leonecloud.com

endpoint:
- character:POST /api/v2/open/aigc/gemini-omni-character, returncharacterId, can in endpointcharacterIds in.
-:POST /api/v2/open/aigc/gemini-omni-audio, returnaudioId, can in endpointaudioIds in.
- endpoint.

Authentication

All endpoints require a token in the request header for authentication:

Authorization: Bearer {YOUR_AUTH_TOKEN}

Quick Start

cURL Example

1. Text-to-Video

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/gemini-omni-video" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "A futuristic city skyline at sunset, cinematic, slow camera push-in",
 "resolution": "1080p",
 "duration": 6
 }'

2. Reference image(up to 7 images Reference image)

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/gemini-omni-video" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "The character walks out from the neon-lit alley, slow motion",
 "imageUrls": [
 "https://example.com/scene-1.png",
 "https://example.com/scene-2.png"
 ],
 "resolution": "720p",
 "duration": 8
 }'

3. video ( provide video after duration )

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/gemini-omni-video" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "Restyle the scene with cyberpunk lighting",
 "videoList": [
 { "url": "https://example.com/source.mp4", "start": 0, "ends": 8 }
 ],
 "resolution": "1080p"
 }'

4. video and Reference image use

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/gemini-omni-video" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "Restyle the source clip with cyberpunk lighting, keep the character",
 "imageUrls": ["https://example.com/character-ref.png"],
 "videoList": [
 { "url": "https://example.com/source.mp4", "start": 0, "ends": 6 }
 ],
 "resolution": "1080p"
 }'

5. use character ID+ ID+ Aspect ratio and

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/gemini-omni-video" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "prompt": "The character walks into a neon-lit street and starts narrating",
 "characterIds": ["char_xxx"],
 "audioIds": ["audio_xxx"],
 "resolution": "1080p",
 "duration": 8,
 "aspectRatio": "9:16",
 "seed": 12345
 }'

Query Task Status

curl -X GET "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/task_abc123" \
 -H "Authorization: Bearer your_auth_token_here"

Endpoints

1. create Gemini Omni Video task**POST** /api/v2/open/aigc/gemini-omni-video

Content-Type: application/json

Request Parameters

ParameterTypeRequiredDescription
promptstringYesvideo(recommended,, )
imageUrlsstring[]NoReference image URL list, up to 7 images, each exceeds 20MB
audioIdsstring[]NoID list (endpoint), up to 3
videoListobject[]Novideo, up to 1, see below
characterIdsstring[]Nocharacter ID list (characterendpoint), up to 7; whenvideoList when up to 3
resolutionstringNoOutput resolution:720p(default) / 1080p / 4k
durationintNoDuration (seconds):4 / 6(default) / 8 / 10; providevideoList when
aspectRatiostringNoAspect ratio:16:9(landscape) / 9:16(portrait)
seedintNorandom seed, value range [0, 2147483647], seed can height can
callbackUrlstringNoCallback notification URL after the task is complete

videoList localized example text

ParameterTypeRequiredDescription
urlstringYesvideo, file exceeds 100MB, Duration exceeds 30 seconds
startintYeswhen (seconds),start >= 0
endsintYeswhen (seconds),ends > start localized example textends - start exceeds 10
localized example text:
reference asset, can use as7:
- eachimageUrls 1> - localized example textvideoList (Includes video inputwhen ) 2, up to 1> - localized example textcharacterIds 1>
:imageUrls localized example text+ videoList localized example text× 2 + characterIds localized example text≤ 7

:> - 1 video ( 2)+ 3 character (3), 2 images image> - video and character, up to can 7 images image> Description:
- localized example textvideoList as when, as"Includes video input",,duration localized example text.
- imageUrls / videoList / characterIds / audioIds can or use.
- Create Taskwhen will, Insufficient balance will return Error.

Response Parameters

ParameterTypeDescription
codeintStatus Code, 0 indicates success
msgstringMessage
data.taskIdstringTask ID
data.statusstringTask Status, fixed to processing
data.createdAtstringCreated Time

Response Example

Success

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260521150000_abc12345",
 "status": "processing",
 "createdAt": "2026-05-21 15:00:00"
 }
}

Insufficient balance

{
 "code": 40001,
 "msg": "Insufficient balance: first 0.0100, 0.4500",
 "data": null
}

ParameterError

{
 "code": 10002,
 "msg": "duration onlysupported 4/6/8/10 seconds",
 "data": null
}

2. Query Task Status

GET /api/v2/open/aigc/{taskId}

Response Example

{
 "code": 0,
 "msg": "success",
 "data": {
 "taskId": "task_20260521150000_abc12345",
 "status": "success",
 "result": [
 "https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/2026/05/21/output_001.mp4"
 ],
 "createdAt": "2026-05-21 15:00:00",
 "updatedAt": "2026-05-21 15:02:30"
 }
}

3. Batch Query Task Status

POST /api/v2/open/aigc/batch

query task execute Status (up to 100 ).


4. Query Account Balance

GET /api/v2/open/balance


Callback Notification

task complete (Success or Failure) when, if Create Task when providecallbackUrl, was provided when creating the task, the system sends a POST request to that URL.

Callback Request

Headers

Content-Type: application/json
X-Funcloud-Event: task.completed
X-Funcloud-Signature: {localized example text}

Body

{
 "event": "task.completed",
 "taskId": "task_20260521150000_abc12345",
 "status": "success",
 "result": ["https://fc-gw-sh.oss-accelerate.aliyuncs.com/videos/output_001.mp4"],
 "errorMsg": "",
 "timestamp": "2026-05-21T15:02:30+08:00",
 "signature": "a1b2c3d4e5f6..."
}

Error Codes

codeDescription
0Success
10002Parametermissing or malformed
10005API Key invalid or missing
30003Task not found
40001Insufficient balance
90003Internal server error

Pricing

Pricing:USD / videoIncludes video input (RequestinvideoList, and Duration no )ResolutionPricing
720p1.20
1080p1.20
4k1.80

no video input

Resolution \ Duration4s6s8s10s
720p0.450.600.750.90
1080p0.450.600.750.90
4k1.051.201.351.50

Best Practices

1. Polling Strategy

recommendedPolling:
- first 60 seconds:query every 5 seconds
- 60 seconds after:query every 10 seconds### 2. Use Callback

recommended use Callback NotificationPolling.

3. Prompt Tips

-, Scenario,,
- useimageUrls when, Prompt can Reference image
- usevideoList when, Promptvideo /
- usecharacterIds when, can in Prompt in and character//, Model will character
- useaudioIds when, can, or, Model will Audio Generation### 4. Asset Preparation

localized example textLimit
Reference imagesingle image ≤ 20MB, up to 7 images
Videofile≤ 100MB, Duration ≤ 30 seconds, localized example text≤ 10 seconds
character IDcharacterendpoint, up to 7, video when up to 3
IDendpoint, up to 3

5. Balance Management

  • Create Taskfirst recommended query
  • taskSuccessdeducts from the frozen balance after success
  • taskFailure after the frozen amount is automatically returnedto available balance
Updated 2026-09-02