batches
Create batch
Create and start processing a batch from an uploaded file.
The batch will begin processing immediately. Use GET /batches/{batch_id} to monitor progress.
post/batches
Request body
Example request
{
"completion_window": "24h",
"endpoint": "/v1/chat/completions",
"input_file_id": "file-abc123"
}Response
Batch created and queued for processing.
Example response
{
"completed_at": 1703190800,
"completion_window": "24h",
"created_at": 1703187200,
"endpoint": "/v1/chat/completions",
"id": "batch-abc123",
"input_file_id": "file-abc123",
"object": "batch",
"output_file_id": "file-xyz789",
"request_counts": {
"completed": 98,
"failed": 2,
"total": 100
},
"status": "completed"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.