Batches
Create a batch
Creates and executes a batch from an uploaded JSONL file of requests. Each line must have custom_id, method, url, and body fields. Text batches also require write:responses.
POST
CSharp (SDK)
Authorizations
Body
application/json
How many lines may be in flight at once, up to the gateway's ceiling (BATCH_MAX_LINE_CONCURRENCY). Defaults to the gateway's BATCH_DEFAULT_LINE_CONCURRENCY. A model's rate limits are respected before this: a line waits for its model's window rather than exceeding it.
Required range:
1 <= x <= 9007199254740991Response
200 - application/json
OK
CSharp (SDK)