Skip to main content
GET
Returns your batches, newest first. Each item has the same fields as Get a Batch, without results_url and files. Read-only API keys are allowed.

Query Parameters

integer
default:"20"
Page size, 1–100.
string
The next_cursor from the previous page.
string
Only batches in these statuses: validating, in_progress, canceling, finalizing, ended, failed. Repeat the parameter or separate values with commas.
string
Batches whose metadata.name or batch_id contains this text, ignoring case.

Response

array
One page of batches.
string | null
Pass as cursor for the next page. null when there are no more.
object | null
The billed cost of every batch that matches the filters, across all pages. Only on the first page; null on pages fetched with a cursor.