Video / Gemini Omni

Gemini Omni Audio Audio Generation

Overview

Gemini Omni Audio Audio Generationendpoint, Create a can in Video Generation in use character ().This endpoint is asynchronous endpoint, Success after returnaudioId, can Gemini Omni Video video generationendpointaudioIds Parameter.

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

first endpoint as public betaCapability,No billing currently.

Authentication

Authorization: Bearer {YOUR_AUTH_TOKEN}

Quick Start

cURL Example

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/aigc/gemini-omni-audio" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{
 "audioId": "achernar",
 "name": "Adam Narrator",
 "voiceDescription": ",, with and, and.",
 "exampleDialogue": ", Adam"
 }'

Endpoints

1. create**POST** /api/v2/open/aigc/gemini-omni-audio

Content-Type: application/json

Request Parameters

ParameterTypeRequiredDescription
audioIdstringYes, see below"list"
namestringYes(≤ 210 characters)
voiceDescriptionstringNo,,,, etc. (≤ 20000 characters)
exampleDialoguestringNo(≤ 120 characters)

Response Parameters

ParameterTypeDescription
codeintStatus Code, 0 indicates success
msgstringMessage
data.audioIdstringID, can use video generationendpointaudioIds Parameter
data.namestringlocalized example text

Response Example

Success

{
 "code": 0,
 "msg": "success",
 "data": {
 "audioId": "a8f1c2d3e4f5...",
 "name": "Adam Narrator"
 }
}

ParameterError

{
 "code": 10002,
 "msg": "name exceeds 210 characters",
 "data": null
}
create Success after, willasset, can asset endpoint query and.

2. query asset list**GET** /api/v2/open/omni/audio/list

query first create asset (Created Time).

Request Parameters (Query)

ParameterTypeRequiredDescription
pageintYes, 1
pageSizeintYes, 1-100
keywordstringNolocalized example text

cURL Example

curl -X GET "https://mm-internal-cn.leonecloud.com/api/v2/open/omni/audio/list?page=1&pageSize=20" \
 -H "Authorization: Bearer your_auth_token_here"

Response Parameters

ParameterTypeDescription
data.listobject[]asset list
data.list[].audioIdstringID, can use video generationendpointaudioIds Parameter
data.list[].namestringlocalized example text
data.list[].presetIdstringcreate when use
data.list[].voiceDescriptionstringlocalized example text
data.list[].exampleDialoguestringlocalized example text
data.list[].createdTimestringCreated Time
data.totalintlocalized example text
data.pageintfirst
data.pageSizeintlocalized example text

Response Example

{
 "code": 0,
 "msg": "success",
 "data": {
 "list": [
 {
 "audioId": "a8f1c2d3e4f5...",
 "name": "Adam Narrator",
 "presetId": "achernar",
 "voiceDescription": ",, with and",
 "exampleDialogue": ", Adam",
 "createdTime": "2026-06-10T15:00:00+08:00"
 }
 ],
 "total": 1,
 "page": 1,
 "pageSize": 20
 }
}

3. asset**POST** /api/v2/open/omni/audio/delete

asset in (only asset, create videotask).

Request Parameters

ParameterTypeRequiredDescription
audioIdstringYesID

cURL Example

curl -X POST "https://mm-internal-cn.leonecloud.com/api/v2/open/omni/audio/delete" \
 -H "Authorization: Bearer your_auth_token_here" \
 -H "Content-Type: application/json" \
 -d '{ "audioId": "a8f1c2d3e4f5..." }'

Response Example

Success

{
 "code": 0,
 "msg": "success",
 "data": null
}

asset in

{
 "code": 90003,
 "msg": "asset in or no",
 "data": null
}

listaudioId Parameteronlysupported:| audioId | localized example text| |---------|----------| | achernar |, and, height| | achird |,, in| | algenib |,,| | algieba |, and, in| | alnilam |,, in| | aoede |,, in| | autonoe |,, in| | callirrhoe |, and, in| | charon |,,| | despina |,, in| | enceladus |,,| | erinome |,, in| | fenrir |,,| | gacrux |,, in| | iapetus |,, in| | kore |,, in| | laomedeia |,, in height| | leda |,, in height| | orus |,, in| | puck |,, in| | pulcherrima | no, first, in height| | rasalgethi |,, in| | sadachbia |,,| | sadaltager |,, in| | schedar |,, in| | sulafat |,, in| | umbriel |,,| | vindemiatrix |,, in| | zephyr |,, in height| | zubenelgenubi |,, in|


Error Codes

codeDescription
0Success
10002Parametermissing or malformed
10005API Key invalid or missing
30002Failure
90003Internal server error

Best Practices

  1. audioId:create after returnaudioId, can Video Generationtask; ID when can asset listendpoint.
  2. voiceDescription:invoiceDescription in use Scenario ("localized example text", "localized example text"), with in video generation when.
  3. characterendpoint:can in characterendpointaudioIds in endpoint returnaudioId, character.
  4. asset:endpoint use asset, list.
Updated 2026-09-02