Skip to main content
GET
查询任务状态
所有异步端点(music、plan、video-to-music、dialogue、stems、upload)都返回 taskId。使用此端点轮询直到任务达到终态(completedfailedtimeout)。GET /eleven/voices 为同步接口,不走此端点。

任务状态值

建议 3-5 秒轮询间隔。音乐生成通常需要 30-120 秒,取决于曲目长度。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

taskId
string
必填

任务ID (eleven-xxxxxxxx-...)

响应

200 - application/json

任务状态

taskId
string
必填

任务 ID

status
enum<string>
必填

任务状态

可用选项:
pending,
ready,
assigned,
processing,
completed,
failed,
cancelled,
timeout
result
object | null

任务结果(直接透传协议层返回,类型根据任务类型不同而变化)

errorMessage
string

错误信息

errorCode
number

错误代码

finishedAt
string<date-time>

完成时间

createdAt
string<date-time>

创建时间

traceId
string

追踪 ID