OhMyGPT
Batches

List batch requests

GET
/v1/batches/{batch_id}/items

Each request of the batch in file order, with its status, tokens, and charge once the batch is settled.

Authorization

ApiKeyAuth
headerAuthorization<token>

Path Parameters

batch_id*string

The id of a batch.

Response Body

Successful response

application/json
  1. response
data*array<>
object*"list"
Value in"list"
Example Request
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"}

Was this page helpful?

Still stuck? Live chat · [email protected] · Telegram group