Skip to main content

audio models

Udio API

通过 PiAPI 接入 Udio API,开发者可以利用统一的 API 平台将 AI 音乐与歌曲生成工作流集成到自己的产品中。

立即开始!

Udio API Pricing

Pay-as-you-go access through PiAPI.

Udio Music Generationper song

$0.05

AI music and song-generation API access through PiAPI.

Udio API 功能

Capabilities from the production model page.

音乐生成

通过 PiAPI 已发布的音乐 API 集成,使用文本指令构建音乐生成工作流。

按量计费

PiAPI 产品目录中列出的 Udio API 起价为每首歌曲 0.05 美元。

开发者集成

请使用音乐 API 文档了解当前请求格式、任务生命周期和结果处理方式。

Get started

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

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" }

常见问题

什么是 Udio API?

通过 PiAPI 接入 Udio API,开发者可以将 AI 音乐与歌曲生成工作流集成到自己的产品中。

如何通过 PiAPI 集成 Udio?

请从 PiAPI 的音乐 API 文档开始:创建 API 密钥、提交任务,并在应用中处理异步任务结果。

这个页面是否提供实时 Udio Playground?

暂未提供。当前 PiAPI 后端模型 schema 中尚未发布 Udio 模型 key,因此本页面不会猜测 Playground 控件或请求体。

More questions? See the API docs.