curl https://api.zerodrift.ai/api/v3/batches/limits \
-H "x-api-key: YOUR_API_KEY"
{
"api_version": "v3",
"limits": {
"max_active_batches": 8,
"max_in_flight_items": 500000,
"max_items": 100000,
"max_upload_bytes": 268435456
},
"current": { "active_batches": 1, "in_flight_items": 4200 },
"credit": {
"available": { "amount": "12.34", "currency": "USD" },
"rate_per_unit": { "amount": "0.01", "currency": "USD" }
},
"billing": { "enforced": true, "has_account": true }
}
Batches
Get Batch Limits
Check your batch limits, current usage, credit and billing before you upload.
GET
/
api
/
v3
/
batches
/
limits
curl https://api.zerodrift.ai/api/v3/batches/limits \
-H "x-api-key: YOUR_API_KEY"
{
"api_version": "v3",
"limits": {
"max_active_batches": 8,
"max_in_flight_items": 500000,
"max_items": 100000,
"max_upload_bytes": 268435456
},
"current": { "active_batches": 1, "in_flight_items": 4200 },
"credit": {
"available": { "amount": "12.34", "currency": "USD" },
"rate_per_unit": { "amount": "0.01", "currency": "USD" }
},
"billing": { "enforced": true, "has_account": true }
}
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
active_batches and in_flight_items now. Counts batches that are validating, in_progress, canceling or finalizing.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.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.curl https://api.zerodrift.ai/api/v3/batches/limits \
-H "x-api-key: YOUR_API_KEY"
{
"api_version": "v3",
"limits": {
"max_active_batches": 8,
"max_in_flight_items": 500000,
"max_items": 100000,
"max_upload_bytes": 268435456
},
"current": { "active_batches": 1, "in_flight_items": 4200 },
"credit": {
"available": { "amount": "12.34", "currency": "USD" },
"rate_per_unit": { "amount": "0.01", "currency": "USD" }
},
"billing": { "enforced": true, "has_account": true }
}

