Authorizations
使用以下格式进行身份验证:Bearer <your api key>
🚀 GLM-4.6 代码编程专享计划 • 限时优惠 Coding Plan ➞
curl --request GET \
--url https://open.bigmodel.cn/api/paas/v4/batches \
--header 'Authorization: Bearer <token>'
{
"object": "list",
"data": [
{
"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": {}
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}
获取批量处理任务列表,支持分页。见 批量服务
curl --request GET \
--url https://open.bigmodel.cn/api/paas/v4/batches \
--header 'Authorization: Bearer <token>'
{
"object": "list",
"data": [
{
"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": {}
}
],
"first_id": "<string>",
"last_id": "<string>",
"has_more": true
}
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
list
Hide child attributes
批处理的唯一标识符。
对象类型,这里为 batch
。
批处理使用的 API
端点。
批处理使用的输入文件的ID
。
批处理应在此时间框架内完成的期限。
批处理的当前状态。
包含成功执行请求的输出的文件ID
。
包含出现错误的请求的输出的文件ID
。
创建批处理的Unix
时间戳(秒)。
批处理开始处理的Unix
时间戳(秒)。
批处理将过期的Unix
时间戳(秒)。
批处理开始最终处理的Unix
时间戳(秒)。
批处理完成的Unix
时间戳(秒)。
批处理失败的Unix
时间戳(秒)。
批处理过期的Unix
时间戳(秒)。
批处理开始取消的Unix
时间戳(秒)。
批处理取消完成的Unix
时间戳(秒)。
batch 请求计数。
批处理中的请求总数。
批处理中已成功完成的请求数量。
批处理中失败的请求数量。
可附加到对象上的 16
个键值对的集合。这有助于以结构化格式存储对象的附加信息。键的长度最多为 64
个字符,值的长度最多为 512
个字符。
第一个ID
最后一个ID
是否有更多数据