get task status
Suno
获取任务状态
查询任何异步任务的状态和结果
GET
get task status
所有异步端点(generate、lyrics、mashupLyrics、concat、remaster、mp4、wav 等)都会返回一个
taskId。使用此端点轮询任务,直到其达到终态(success、failed 或 timeout)。任务状态值
| 状态 | 描述 |
|---|---|
ready | 任务已排队,等待处理 |
running | 任务正在处理中 |
stream | 任务正在流式返回部分结果 |
success | 任务已成功完成 — 请查看 data 获取结果 |
failed | 任务失败 — 请查看 failReason 和 failCode |
timeout | 任务超时 |
轮询最佳实践
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
Task ID
示例:
"1212"
响应
200 - application/json
The task status information
Task id.
示例:
"task_1731a9b2f4"
task status
可用选项:
queued, ready, running, stream, awaiting, success, failed, timeout Task created time (UTC).
示例:
"2025-08-18T02:30:00.000Z"
Failure reason when status=FAILED.
示例:
"Audio source not found."
Failure code when status=FAILED.
示例:
4001
Data associated with the task.
Task finished time (UTC).
示例:
"2025-08-18T02:35:00.000Z"