Skip to main content
GET
Returns your plan’s batch limits, what’s running now, your credit and whether billing is set up. Call it before you upload to tell whether Create a Batch would be refused. Read-only API keys are allowed.

Response

object
object
active_batches and in_flight_items now. Counts batches that are validating, in_progress, canceling or finalizing.
object | null
available: your balance, less the estimated cost of running batches. rate_per_unit: your batch price per unit of up to 2,000 input tokens. null when your balance can’t be read.
object
enforced: whether batches are charged. has_account: whether you have a billing account. If enforced is true and has_account is false, a batch fails with pricing_unavailable, so set up billing first.