跳转到主要内容
GET
/
tasks
/
{id}
查询任务信息
curl --request GET \
  --url https://api.sinancode.com/v1/tasks/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "status": "processing",
  "error_code": "<string>",
  "error_msg": "<string>",
  "result": [
    {
      "type": "<string>",
      "url": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.sinancode.com/llms.txt

Use this file to discover all available pages before exploring further.

根据任务 ID 查询异步任务的执行状态和生成结果,所有图片和视频生成都需要使用此接口轮询任务状态。

授权

Authorization
string
header
必填

请使用您的 API Token 进行认证

路径参数

id
string
必填

任务ID

响应

OK

id
string
必填
示例:

"01234567-89ab-cdef-0123-456789abcdef"

status
string
必填
示例:

"processing"

error_code
string
error_msg
string

Friendly error message (fallback to error_code if empty)

result
object[]