下载异步图像结果

GET /v1/images/generations/task/{task_id}/content

获取已完成异步生成或编辑任务的图像302跳转下载地址

请求参数

请求头

Authorization

使用 Bearer Token 认证。格式:Authorization: Bearer sk-xxxxxx

路径参数

路径参数(1 个)
参数类型说明是否必填
task_idstring已完成异步任务的任务 ID。是

请求示例

curl -L "https://10000router.com/v1/images/generations/task/task_xxx/content" \
  -H "Authorization: Bearer $API_KEY" \
  -o result.png

返回响应

响应示例

服务端通过 HTTP 302 跳转到实际图片地址,客户端跟随重定向即可获取图像二进制内容。

{
  "error": {
    "message": "任务不存在或结果尚未准备好",
    "type": "invalid_request_error",
    "param": "task_id",
    "code": null
  }
}
{
  "error": {
    "message": "Rate limit reached",
    "type": "rate_limit_exceeded",
    "param": null,
    "code": null
  }
}
{
  "error": {
    "message": "Invalid authentication credentials",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

results matching ""

    No results matching ""