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
| Parameter | Type | Required | Description |
|---|---|---|---|
| audioId | string | Yes | , see below"list" |
| name | string | Yes | (≤ 210 characters) |
| voiceDescription | string | No | ,,,, etc. (≤ 20000 characters) |
| exampleDialogue | string | No | (≤ 120 characters) |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | Status Code, 0 indicates success |
| msg | string | Message |
| data.audioId | string | ID, can use video generationendpointaudioIds Parameter |
| data.name | string | localized 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)
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | int | Yes | , 1 |
| pageSize | int | Yes | , 1-100 |
| keyword | string | No | localized 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
| Parameter | Type | Description |
|---|---|---|
| data.list | object[] | asset list |
| data.list[].audioId | string | ID, can use video generationendpointaudioIds Parameter |
| data.list[].name | string | localized example text |
| data.list[].presetId | string | create when use |
| data.list[].voiceDescription | string | localized example text |
| data.list[].exampleDialogue | string | localized example text |
| data.list[].createdTime | string | Created Time |
| data.total | int | localized example text |
| data.page | int | first |
| data.pageSize | int | localized 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| audioId | string | Yes | ID |
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
| code | Description |
|---|---|
| 0 | Success |
| 10002 | Parametermissing or malformed |
| 10005 | API Key invalid or missing |
| 30002 | Failure |
| 90003 | Internal server error |
Best Practices
- audioId:create after return
audioId, can Video Generationtask; ID when can asset listendpoint. - voiceDescription:in
voiceDescriptionin use Scenario ("localized example text", "localized example text"), with in video generation when. - characterendpoint:can in characterendpoint
audioIdsin endpoint returnaudioId, character. - asset:endpoint use asset, list.