Recupere o lote
GET
https://api.openai.com/v1/batches/batch_abc123
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/batches/batch_abc123' \
--header 'Authorization: Bearer $OPENAI_API_KEY' \
--header 'Content-Type: application/json'
Response Response Example
{
"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": 0,
"in_progress_at": 0,
"expires_at": 0,
"finalizing_at": 0,
"completed_at": 0,
"failed_at": null,
"expired_at": null,
"cancelling_at": null,
"cancelled_at": null,
"request_counts": {
"total": 0,
"completed": 0,
"failed": 0
},
"metadata": {
"customer_id": "string",
"batch_description": "string"
}
}
Request
Header Params
Authorization
string
optional
Example:
Bearer $OPENAI_API_KEY
Content-Type
string
optional
Example:
application/json
Responses
Modified at 2025-01-24 10:26:41