List batches
Changed onLists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's last_id as after. List items omit results. Use GET /batches/{id} to get them. See the Batch API Quickstart.
Request
- Base URLhttps://openrouter.ai/api/v1
- AuthHTTP bearer
Query parameters
Maximum number of batches to return, from 1 through 100.
Batch id from the previous page's last_id.
Repeat this parameter to include more than one status.
[ "completed", "failed" ]
Only include batches created strictly after this timestamp.
Only include batches created strictly before this timestamp.
Only include batches created strictly before this timestamp.
Response
A newest-first page of batches.
A newest-first page of metadata-only batch objects.
Example response
{
"data": [],
"first_id": null,
"has_more": false,
"last_id": null,
"object": "list"
}Changes
- info
added the optional property
data/items/outputto the response with the status
- info
- info
added the required property
data/items/expires_atto the response with the status - info
added the required property
data/items/providerto the response with the status
- info