彈性參數
可設定 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 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。