灵活的参数配置
可配置文档中列出的 4 个参数,包括 lyrics, prompt, title, vocal_mode。
curl -X POST https://runapi.ai/api/v1/producer/text_to_music \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "fuzz-1.0",
"prompt": "根据这些指定歌词创作一首温暖的原声流行歌曲,要求人声清晰。"
}'
import { ProducerClient } from "@runapi.ai/producer";
const client = new ProducerClient();
const result = await client.textToMusic.run({
model: "fuzz-1.0",
prompt: "根据这些指定歌词创作一首温暖的原声流行歌曲,要求人声清晰。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/producer/text_to_music",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"fuzz-1.0","prompt":"根据这些指定歌词创作一首温暖的原声流行歌曲,要求人声清晰。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/producer/text_to_music");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'fuzz-1.0',
'prompt' => '根据这些指定歌词创作一首温暖的原声流行歌曲,要求人声清晰。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToMusic().run({"model":"fuzz-1.0","prompt":"根据这些指定歌词创作一首温暖的原声流行歌曲,要求人声清晰。"});
task.waitForResult();
require "runapi/producer"
client = RunApi::Producer::Client.new
result = client.text_to_music.run(
model: "fuzz-1.0",
prompt: "根据这些指定歌词创作一首温暖的原声流行歌曲,要求人声清晰。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToMusic.Run({"model":"fuzz-1.0","prompt":"根据这些指定歌词创作一首温暖的原声流行歌曲,要求人声清晰。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model fuzz-1.0 \
--endpoint text_to_music \
--wait
8 个版本可用
选择任意模型,几秒内开始生成。
| 提供商 | Producer |
| 模型 ID | fuzz-1.0 |
| 模态 | 音频与音乐 |
| 任务类型 | Asynchronous |
| API 端点 | /api/v1/producer/text_to_music |
| 计费单位 | 次调用 |
| 输入参数 | callback_url, lyrics, model, prompt, title, vocal_mode |
| 目录状态 | 运行中 |
免费注册后,在控制台创建用于 fuzz-1.0 的 API 密钥。
向 /api/v1/producer/text_to_music 发送 POST 请求,并传入 fuzz-1.0 模型 ID 和参数。
轮询任务或按照回调获取已完成的 fuzz-1.0 结果。
可配置文档中列出的 4 个参数,包括 lyrics, prompt, title, vocal_mode。
提供 1 个公开 endpoint:text_to_music。
异步任务支持回调 URL,任务完成时发送通知。
按 次调用 计量,无需订阅。
titleMusic title.
lyricsExact lyrics to sing.
promptMusic style and production brief.
vocal_modeVocal generation mode. (exact_lyrics, instrumental)
callback_urlWebhook URL for async notifications.
生成与节目氛围匹配的免版税背景音乐,无需授权费用。
为程序化生成的关卡生成自适应环境音效和配乐。
无需录音棚即可为客户广告生成定制配音和音效。
传入 quickstart 中显示的模型 ID。
Key 级限流随使用层级伸缩。当前限制见定价页。
可以——变体只是参数,改 model 字段即可。
模型支持流式时,RunAPI 端到端流式。
在公共 GitHub 仓库提 issue 或邮件联系 support。
不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。