Batch

List inline batches

Changed on

Lists inline batches visible to the authenticated credential, newest first. The response is metadata-only: results is always null, including for completed batches. Use GET /api/beta/batches/{id} to retrieve completed inline results. Preserve the same filters on every paginated request.

get/api/beta/batches

Request

  • Base URL
    https://api.nano-gpt.com
  • URL
    https://api.nano-gpt.com/api/beta/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 inline batch metadata 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