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 endpointcharacterIdsin.
-:POST /api/v2/open/aigc/gemini-omni-audio, returnaudioId, can in endpointaudioIdsin.
- 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| prompt | string | Yes | video(recommended,, ) |
| imageUrls | string[] | No | Reference image URL list, up to 7 images, each exceeds 20MB |
| audioIds | string[] | No | ID list (endpoint), up to 3 |
| videoList | object[] | No | video, up to 1, see below |
| characterIds | string[] | No | character ID list (characterendpoint), up to 7; whenvideoList when up to 3 |
| resolution | string | No | Output resolution:720p(default) / 1080p / 4k |
| duration | int | No | Duration (seconds):4 / 6(default) / 8 / 10; providevideoList when |
| aspectRatio | string | No | Aspect ratio:16:9(landscape) / 9:16(portrait) |
| seed | int | No | random seed, value range [0, 2147483647], seed can height can |
| callbackUrl | string | No | Callback notification URL after the task is complete |
videoList localized example text
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | video, file exceeds 100MB, Duration exceeds 30 seconds |
| start | int | Yes | when (seconds),start >= 0 |
| ends | int | Yes | when (seconds),ends > start localized example textends - start exceeds 10 |
localized example text:
reference asset, can use as7:
- eachimageUrls1> - localized example textvideoList(Includes video inputwhen ) 2, up to 1> - localized example textcharacterIds1>
: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 textvideoListas when, as"Includes video input",,durationlocalized example text.
-imageUrls/videoList/characterIds/audioIdscan or use.
- Create Taskwhen will, Insufficient balance will return Error.
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | Status Code, 0 indicates success |
| msg | string | Message |
| data.taskId | string | Task ID |
| data.status | string | Task Status, fixed to processing |
| data.createdAt | string | Created 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
| code | Description |
|---|---|
| 0 | Success |
| 10002 | Parametermissing or malformed |
| 10005 | API Key invalid or missing |
| 30003 | Task not found |
| 40001 | Insufficient balance |
| 90003 | Internal server error |
Pricing
Pricing:USD / videoIncludes video input (RequestinvideoList, and Duration no ) | Resolution | Pricing |
|---|---|---|
| 720p | 1.20 | |
| 1080p | 1.20 | |
| 4k | 1.80 |
no video input
| Resolution \ Duration | 4s | 6s | 8s | 10s |
|---|---|---|---|---|
| 720p | 0.45 | 0.60 | 0.75 | 0.90 |
| 1080p | 0.45 | 0.60 | 0.75 | 0.90 |
| 4k | 1.05 | 1.20 | 1.35 | 1.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 text | Limit |
|---|---|
| Reference image | single image ≤ 20MB, up to 7 images |
| Video | file≤ 100MB, Duration ≤ 30 seconds, localized example text≤ 10 seconds |
| character ID | characterendpoint, up to 7, video when up to 3 |
| ID | endpoint, 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