亮色模式
List batch
GET
https://api.openai.com/v1/batchesList your organization's batches.
Request
Query 参数
limit
string
必需
示例值:
2
Header 参数
Authorization
string
必需
示例值:
Bearer $OPENAI_API_KEY
Content-Type
string
必需
示例值:
application/json
Body 参数text/plain
Request samples
返回响应
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
数据结构
object
string
必需
data
array [object {20}]
必需
id
string
可选
object
string
可选
endpoint
string
可选
errors
null
可选
input_file_id
string
可选
completion_window
string
可选
status
string
可选
output_file_id
string
可选
error_file_id
string
可选
created_at
integer
可选
in_progress_at
integer
可选
expires_at
integer
可选
finalizing_at
integer
可选
completed_at
integer
可选
failed_at
null
可选
expired_at
null
可选
cancelling_at
null
可选
cancelled_at
null
可选
request_counts
object
可选
metadata
object
可选
first_id
string
必需
last_id
string
必需
has_more
boolean
必需
示例
{
"object": "list",
"data": [
{
"id": "batch_abc123",
"object": "batch",
"endpoint": "/v1/chat/completions",
"errors": null,
"input_file_id": "file-abc123",
"completion_window": "24h",
"status": "completed",
"output_file_id": "file-cvaTdG",
"error_file_id": "file-HOWS94",
"created_at": 1711471533,
"in_progress_at": 1711471538,
"expires_at": 1711557933,
"finalizing_at": 1711493133,
"completed_at": 1711493163,
"failed_at": null,
"expired_at": null,
"cancelling_at": null,
"cancelled_at": null,
"request_counts": {
"total": 100,
"completed": 95,
"failed": 5
},
"metadata": {
"customer_id": "user_123456789",
"batch_description": "Nightly job",
}
},
{ ... },
],
"first_id": "batch_abc123",
"last_id": "batch_abc456",
"has_more": true
}
最后修改时间: 10 天前