Suno · 音乐
独立视频生成NEW
📌 这是什么:为音乐生成一段配套的视频画面。
💡 什么时候用:想给歌曲配 MV 画面时用。
接口地址
| 用途 | 方法 | 路径 |
|---|---|---|
| 提交任务 | POST | /api/cqt/generator/suno |
| 查询结果 | GET | /api/cqt/info/suno?id={taskId} |
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| task | string | 必填 | 固定填 videoStandaloneGenerate |
| prompt | string | 必填 | 视频画面描述 |
| duration | integer | — | 时长(秒),5~30,默认 5 |
请求示例
curl -X POST https://api.cqtai.com/api/cqt/generator/suno \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{ "task":"videoStandaloneGenerate", "prompt":"abstract colorful waves", "duration":5 }'
# -> { "code":200, "data":"<taskId>" }响应示例
{
"code": 200,
"msg": "success",
"data": {
"id": "53b6a4a007284d618482322681426419",
"taskType": "videoStandaloneGenerate",
"status": "succeeded",
"errorMsg": "",
"param": {
"task": "videoStandaloneGenerate",
"prompt": "abstract colorful waves",
"duration": 5
},
"result": {
"items": [
{
"id": "ddefd17b-c501-4072-9cab-93f87fa2562b",
"url": "https://cdn1.suno.ai/video_gen_ddefd17b-c501-4072-9cab-93f87fa2562b_processed_video.mp4",
"type": "video",
"title": "Vibrant Wavescape",
"prompt": "abstract colorful waves",
"status": "complete",
"batch_id": "e39b3fea-549f-416d-8b5e-e57c152556c1",
"duration": 5,
"gen_category": "Basic",
"display_order": 0,
"thumbnail_url": "https://cdn1.suno.ai/video_gen_ddefd17b-..._cover_snapshot_0s_image.jpeg",
"video_upload_id": "ddefd17b-c501-4072-9cab-93f87fa2562b",
"generation_duration_seconds": 70
},
{
"id": "306ee362-9753-4fb8-8b21-b76a09497122",
"url": "https://cdn1.suno.ai/video_gen_306ee362-9753-4fb8-8b21-b76a09497122_processed_video.mp4",
"type": "video",
"title": "Vibrant Wavescape",
"prompt": "abstract colorful waves",
"status": "complete",
"batch_id": "e39b3fea-549f-416d-8b5e-e57c152556c1",
"duration": 5,
"gen_category": "Basic",
"display_order": 1,
"thumbnail_url": "https://cdn1.suno.ai/video_gen_306ee362-..._cover_snapshot_0s_image.jpeg",
"video_upload_id": "306ee362-9753-4fb8-8b21-b76a09497122",
"generation_duration_seconds": 72
}
],
"batch_id": "e39b3fea-549f-416d-8b5e-e57c152556c1"
},
"createTime": "2026-07-09 10:04:59",
"completeTime": "2026-07-09 10:06:36"
}
}响应字段说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码,200 表示成功 |
| msg | string | 提示信息 |
| data.id | string | 任务 ID(= 提交时拿到的 taskId) |
| data.taskType | string | 任务类型,恒为 videoStandaloneGenerate |
| data.status | string | 任务状态:pending 处理中 / succeeded 成功 / failed 失败 |
| data.param | object | 原样回显你提交的请求参数 |
| data.result | object | ⚠ 对象 { items, batch_id }(非数组),视频在 result.items 里 |
| data.result.batch_id | string | 本批次 ID(同批视频共享) |
| data.result.items | array | 生成的视频(通常 2 条候选) |
| data.result.items[].url | string | 视频地址(mp4) |
| data.result.items[].thumbnail_url | string | 封面帧图地址 |
| data.result.items[].type | string | 资源类型,恒为 video |
| data.result.items[].duration | number | 视频时长(秒,= 你传的 duration) |
| data.result.items[].generation_duration_seconds | number | 生成耗时(秒) |
| data.result.items[].video_upload_id | string | 视频资源 ID |
| data.result.items[].title / gen_category / display_order / status | mixed | AI 标题 / 档位(Basic·Advanced) / 展示顺序 / 状态(complete) |
| data.createTime / completeTime | string | 任务提交时间 / 完成时间 |
计费与积分
80 积分 × 时长(秒,5~30,默认 5)(× 你的用户费率)。任务失败自动退回。