通用能力接口参考任务列出任务

列出任务

按创建时间倒序列出当前账号的任务,可按任务类型、状态和幂等键筛选。还有更多结果时,响应头 X-Next-Cursor 返回下一页游标。

认证

API Key:X-API-Key: <API Key> 或 Authorization: Bearer <API Key>。

示例中的凭证为占位值,请替换后在服务器端运行。

代码示例

curl -X GET 'https://shixux.com/api/v1/jobs' \  -H 'X-API-Key: yb_xxx_yyy'
[  {    "id": "example",    "type": "tts",    "status": "queued",    "reserved_credits": 1,    "actual_credits": 1,    "error_code": "example",    "error_message": "example",    "created_at": "2026-10-06T10:00:00Z",    "started_at": "2026-10-06T10:00:00Z",    "finished_at": "2026-10-06T10:00:00Z"  }]

查询参数

limit?Limit

每页返回的任务数,1–100,默认 20。

默认20
type?string

按任务类型筛选,多个类型用英文逗号分隔:tts、video、image、voice_design、audio_composition。

status?string

按任务状态筛选,多个状态用英文逗号分隔。

cursor?string

分页游标,取自上一页响应头 X-Next-Cursor。

idempotency_key?string

按提交时使用的 Idempotency-Key 查找任务。

响应体

请求成功

application/json
  1. response
[index: integer]?

本页目录