Batch

List all batches

Changed on

Lists all batches visible to the authenticated credential in the OpenAI-compatible batch shape, including inline and file-backed jobs. Results are newest first. Preserve the same filters on every paginated request.

get/api/v1/batches

Request

  • Base URL
    https://api.nano-gpt.com
  • URL
    https://api.nano-gpt.com/api/v1/batches
  • Auth
    HTTP bearer

Query parameters

limitinteger

Number of batches to return.

afterstring

Return the next page of batches older than this batch ID. Use the current page's last_id. Cannot be combined with before.

beforestring

Return the adjacent page of batches newer than this batch ID, still ordered newest first. Use the current page's first_id. Cannot be combined with after.

statusBatchStatus[]

Filter by one or more statuses. Repeat the parameter or provide comma-separated values.

integer
OR
string

Return batches created strictly after this boundary. Accepts Unix seconds or a timezone-qualified ISO 8601/RFC 3339 timestamp with at most millisecond precision.

integer
OR
string

Return batches created strictly before this boundary. Accepts Unix seconds or a timezone-qualified ISO 8601/RFC 3339 timestamp with at most millisecond precision.

Response

A page of all visible batches ordered newest first.

object'list' required
first_idstring nullable required

First batch ID in this page, or null for an empty page. Pass as before to return to the adjacent newer page.

last_idstring nullable required

Last batch ID in this page, or null for an empty page. Pass as after to fetch the next older page.

has_moreboolean required

Whether more records exist in the direction being paged.

Changes