Skip to main content
GET
/
paas
/
v4
/
batches
/
{batch_id}
检索批处理任务
curl --request GET \
  --url https://open.bigmodel.cn/api/paas/v4/batches/{batch_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "<string>",
  "endpoint": "<string>",
  "input_file_id": "<string>",
  "completion_window": "<string>",
  "status": "<string>",
  "output_file_id": "<string>",
  "error_file_id": "<string>",
  "created_at": 123,
  "in_progress_at": 123,
  "expires_at": 123,
  "finalizing_at": 123,
  "completed_at": 123,
  "failed_at": 123,
  "expired_at": 123,
  "cancelling_at": 123,
  "cancelled_at": 123,
  "request_counts": 123,
  "total": 123,
  "completed": 123,
  "failed": 123,
  "metadata": {}
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Path Parameters

batch_id
string
required

批处理任务的唯一标识符。

Response

请求成功,返回 Batch 对象。

id
string

批处理的唯一标识符。

object
string

对象类型,这里为 batch

endpoint
string

批处理使用的 API 端点。

input_file_id
string

批处理使用的输入文件的ID

completion_window
string

批处理应在此时间框架内完成的期限。

status
string

批处理的当前状态。

output_file_id
string

包含成功执行请求的输出的文件ID

error_file_id
string

包含出现错误的请求的输出的文件ID

created_at
integer

创建批处理的Unix时间戳(秒)。

in_progress_at
integer

批处理开始处理的Unix时间戳(秒)。

expires_at
integer

批处理将过期的Unix时间戳(秒)。

finalizing_at
integer

批处理开始最终处理的Unix时间戳(秒)。

completed_at
integer

批处理完成的Unix时间戳(秒)。

failed_at
integer

批处理失败的Unix时间戳(秒)。

expired_at
integer

批处理过期的Unix时间戳(秒)。

cancelling_at
integer

批处理开始取消的Unix时间戳(秒)。

cancelled_at
integer

批处理取消完成的Unix时间戳(秒)。

request_counts
integer

batch 请求计数。

total
integer

批处理中的请求总数。

completed
integer

批处理中已成功完成的请求数量。

failed
integer

批处理中失败的请求数量。

metadata
object

可附加到对象上的 16 个键值对的集合。这有助于以结构化格式存储对象的附加信息。键的长度最多为 64 个字符,值的长度最多为 512 个字符。

I