灵活的参数配置
可配置文档中列出的 4 个参数,包括 audio_id, example_dialogue, name, voice_description。
curl -X POST https://runapi.ai/api/v1/gemini_omni/create_audio \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"audio_id": "achernar",
"name": "Acher Narrator",
"voice_description": "生成一段 1080p 霓虹城市跟拍视频:可复用角色在雨中前行,并配合稳定旁白。",
"example_dialogue": "Hello, I am achernar"
}'
import { GeminiOmniClient } from "@runapi.ai/gemini-omni";
const client = new GeminiOmniClient();
const result = await client.createAudio.run({
audio_id: "achernar",
name: "Acher Narrator",
voice_description: "生成一段 1080p 霓虹城市跟拍视频:可复用角色在雨中前行,并配合稳定旁白。",
example_dialogue: "Hello, I am achernar",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/gemini_omni/create_audio",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"audio_id":"achernar","name":"Acher Narrator","voice_description":"生成一段 1080p 霓虹城市跟拍视频:可复用角色在雨中前行,并配合稳定旁白。","example_dialogue":"Hello, I am achernar"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/gemini_omni/create_audio");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'audio_id' => 'achernar',
'name' => 'Acher Narrator',
'voice_description' => '生成一段 1080p 霓虹城市跟拍视频:可复用角色在雨中前行,并配合稳定旁白。',
'example_dialogue' => 'Hello, I am achernar',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.createAudio().run({"audio_id":"achernar","name":"Acher Narrator","voice_description":"生成一段 1080p 霓虹城市跟拍视频:可复用角色在雨中前行,并配合稳定旁白。","example_dialogue":"Hello, I am achernar"});
task.waitForResult();
require "runapi/gemini_omni"
client = RunApi::GeminiOmni::Client.new
result = client.create_audio.run(
audio_id: "achernar",
name: "Acher Narrator",
voice_description: "生成一段 1080p 霓虹城市跟拍视频:可复用角色在雨中前行,并配合稳定旁白。",
example_dialogue: "Hello, I am achernar"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.createAudio.Run({"audio_id":"achernar","name":"Acher Narrator","voice_description":"生成一段 1080p 霓虹城市跟拍视频:可复用角色在雨中前行,并配合稳定旁白。","example_dialogue":"Hello, I am achernar"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model gemini-omni-audio \
--endpoint create_audio \
--wait
5 个版本可用
选择任意模型,几秒内开始生成。
| 提供商 | |
| 模型 ID | gemini-omni-audio |
| 模态 | 音频与音乐 |
| 任务类型 | Synchronous |
| API 端点 | /api/v1/gemini_omni/create_audio |
| 计费单位 | 次调用 |
| 输入参数 | audio_id, example_dialogue, name, voice_description |
| 目录状态 | 运行中 |
免费注册后,在控制台创建用于 gemini-omni-audio 的 API 密钥。
向 /api/v1/gemini_omni/create_audio 发送 POST 请求,并传入 gemini-omni-audio 模型 ID 和参数。
直接从端点读取已完成的 gemini-omni-audio 响应。
可配置文档中列出的 4 个参数,包括 audio_id, example_dialogue, name, voice_description。
提供 1 个公开 endpoint:create_audio。
按 次调用 计量,无需订阅。
nameAudio preset display name.
audio_idVoice identity used for the audio preset.
example_dialogueExample dialogue demonstrating the voice style.
voice_descriptionVoice characteristics such as pitch, tone, or accent.
生成与节目氛围匹配的免版税背景音乐,无需授权费用。
为程序化生成的关卡生成自适应环境音效和配乐。
无需录音棚即可为客户广告生成定制配音和音效。
传入 quickstart 中显示的模型 ID。
Key 级限流随使用层级伸缩。当前限制见定价页。
可以——变体只是参数,改 model 字段即可。
模型支持流式时,RunAPI 端到端流式。
在公共 GitHub 仓库提 issue 或邮件联系 support。
不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。