Batches
List batch requests
GET
Each request of the batch in file order, with its status, tokens, and charge once the batch is settled.
ApiKeyAuthheader
Authorization<token>batch_id*stringThe id of a batch.
Successful response
application/json- response
data*array<>object*"list"Value in
"list"curl -X GET 'https://api.ohmygpt.com/v1/batches/string/items'Example Response
{ "data": [ { "completed_at": 0, "completion_tokens": 0, "cost_credits": 0, "custom_id": "string", "error_code": "string", "error_message": "string", "prompt_tokens": 0, "status": "pending", "total_tokens": 0 } ], "object": "list"}Still stuck? Live chat · [email protected] · Telegram group