跳转到主要内容
GET
/
v1
/
tasks
/
{task_id}
查询任务详情
curl --request GET \
  --url https://api.apiany.ai/v1/tasks/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "task_id": "task_123",
  "model": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "result": {
    "urls": [
      "<string>"
    ],
    "text": "<string>",
    "raw": {}
  },
  "error": "<unknown>"
}

授权

Authorization
string
header
必填

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

路径参数

task_id
string
必填

响应

任务详情。

task_id
string
必填
示例:

"task_123"

status
enum<string>
必填
可用选项:
pending,
processing,
completed,
failed,
expired
model
string
created_at
string<date-time>
completed_at
string<date-time> | null
result
object
error
any | null