GET
/
openai
/
v1
/
batches
查询批处理任务列表
curl --request GET \
  --url https://api.ppinfra.com/openai/v1/batches \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "endpoint": "<string>",
      "input_file_id": "<string>",
      "output_file_id": "<string>",
      "error_file_id": "<string>",
      "completion_window": "<string>",
      "in_progress_at": {},
      "expires_at": {},
      "finalizing_at": {},
      "completed_at": {},
      "failed_at": {},
      "expired_at": {},
      "cancelling_at": {},
      "cancelled_at": {},
      "status": "<string>",
      "errors": "<string>",
      "version": 123,
      "created_at": "<string>",
      "updated_at": {},
      "created_by": "<string>",
      "created_by_key_id": "<string>",
      "remark": "<string>",
      "total": 123,
      "completed": 123,
      "failed": 123,
      "metadata": {},
      "request_counts": {
        "total": 123,
        "completed": 123,
        "failed": 123
      }
    }
  ],
  "first_id": "<string>",
  "has_more": true,
  "last_id": "<string>",
  "object": "<string>"
}
查询所有可用的批处理任务列表。

请求头

Content-Type
string
required
枚举值: application/json
Authorization
string
required
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

响应

data
array
required
批处理任务对象数组。
first_id
string
required
列表中第一个批处理任务的 ID。
has_more
boolean
required
指示在该列表之外是否还有更多批处理任务。
last_id
string
required
列表中最后一个批处理任务的 ID。
object
string
required
对象类型,恒为 list