音乐生成 · 歌词混合
将两段歌词融合为新的混合版本。
基本信息
| 字段 | 内容 |
|---|---|
| 应用编码 | music_generation |
| API 编码 | mashup_lyrics |
| 请求方式 | POST |
| 请求路径 | /api/v1/apps/music_generation/mashup_lyrics |
| 调用模式 | 同步 |
鉴权
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/json
业务参数
| 参数 | 类型 | 必填 | 默认值 | 可选值 / 范围 | 示例 | 说明 |
|---|---|---|---|---|---|---|
lyrics_a | string | 是 | - | - | - | 第一段歌词文本。 |
lyrics_b | string | 是 | - | - | - | 第二段歌词文本。 |
响应说明
同步返回处理结果。媒体类结果可能包含 audio_url、video_url、file_url、image_url、audio_id、persona_id 等字段,具体以接口实际结果为准。
成功示例
{
"code": 1,
"msg": "success",
"data": {
"result": {
"status": "completed",
"title": "Lyrics Mashup",
"data": {
"text": "[singer A]\nMorning light on the road\n\n[transition]\n\n[singer B]\nDance through the midnight glare",
"title": "Lyrics Mashup",
"tags": [],
"status": "complete"
}
},
"usage": {
"points_cost": 12,
"actual_points": 12
}
}
}
失败示例
{
"code": 0,
"msg": "任务处理失败,请稍后重试",
"data": null
}