Udio Music Generationper song
$0.05
AI music and song-generation API access through PiAPI.
通过 PiAPI 接入 Udio API,开发者可以利用统一的 API 平台将 AI 音乐与歌曲生成工作流集成到自己的产品中。
Pay-as-you-go access through PiAPI.
$0.05
AI music and song-generation API access through PiAPI.
Capabilities from the production model page.
通过 PiAPI 已发布的音乐 API 集成,使用文本指令构建音乐生成工作流。
PiAPI 产品目录中列出的 Udio API 起价为每首歌曲 0.05 美元。
请使用音乐 API 文档了解当前请求格式、任务生命周期和结果处理方式。
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "music-u",
"task_type": "generate_music",
"input": {
"gpt_description_prompt": "",
"lyrics": "",
"negative_tags": "",
"lyrics_type": "instrumental",
"seed": -1
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"audio_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run udio-api \ gpt_description_prompt= \ lyrics= \ negative_tags= \ lyrics_type=instrumental \ seed=-1 ✓ Task completed! https://img.theapi.app/ephemeral/…
通过 PiAPI 接入 Udio API,开发者可以将 AI 音乐与歌曲生成工作流集成到自己的产品中。
请从 PiAPI 的音乐 API 文档开始:创建 API 密钥、提交任务,并在应用中处理异步任务结果。
暂未提供。当前 PiAPI 后端模型 schema 中尚未发布 Udio 模型 key,因此本页面不会猜测 Playground 控件或请求体。
More questions? See the API docs.