curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "generate-persona",
"callback_url": "https://your-domain.com/callback",
"input": {
"task_id": "5c79xxxxbe8e",
"audio_id": "e231xxxx-xxxx-xxxx-xxxx-xxxx8cadc7dc",
"name": "Smooth Jazz Singer",
"description": "A sultry jazz vocalist with smooth, mellow tones. Specializes in late-night jazz ballads with piano accompaniment and warm, intimate delivery."
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}{
"code": 409,
"error": {
"message": "Persona already exists for this audio",
"type": "conflict_error"
}
}Suno AI
生成 Persona
从现有音轨创建可复用的音乐 Persona
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "generate-persona",
"callback_url": "https://your-domain.com/callback",
"input": {
"task_id": "5c79xxxxbe8e",
"audio_id": "e231xxxx-xxxx-xxxx-xxxx-xxxx8cadc7dc",
"name": "Smooth Jazz Singer",
"description": "A sultry jazz vocalist with smooth, mellow tones. Specializes in late-night jazz ballads with piano accompaniment and warm, intimate delivery."
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}{
"code": 409,
"error": {
"message": "Persona already exists for this audio",
"type": "conflict_error"
}
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询音乐详情接口获取结果。
vocal_start 和 vocal_end 用于选取 10–30 秒的源音频片段,必须同时提供。style 可用于描述期望的 Persona 风格。
使用指南
- 此接口从现有音轨创建可复用的音乐 Persona
- Persona 会捕捉人声风格、流派特征和音乐个性
- 创建后,可通过
persona_id参数在生成音乐和延长音乐接口中使用 Persona
参数详情
task_id(必填):已完成的生成或延长任务的任务 IDaudio_id(必填):回调数据中具体音轨的标识name(必填):体现音乐风格或特点的描述性名称description(必填):详细描述,包括:- 流派和情绪
- 配器偏好
- 人声特征
- 独特的音乐个性特点
开发者说明
- 每条音轨只能创建一个 Persona
- 如果该音频已存在 Persona,API 返回错误码 409
- 你可以在以下接口中使用
persona_id: - 提供详细的描述,以便使用 Persona 时获得最佳效果
授权
所有 API 接口都需要 Bearer Token 认证。
创建 API Key:登录 PoYo,进入 仪表盘 → API 密钥(poyo.ai/zh/dashboard/api-key),点击创建 Key。
在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
响应
任务提交成功
Show child attributes
Show child attributes