Skip to main content
List endpoints return one page at a time:
data holds the page’s items. nextCursor is the cursor for the next page, or null on the last page.

Request the next page

Send nextCursor as the cursor query parameter, with the same filters as the first request. You can change limit between pages.
A cursor continues only the list and filters it came from. Sent with other filters, it fails with 400 validation_failed and param set to cursor. Treat cursors as opaque strings. GET /v1/generations lists newest first. The following Node.js example reads every page of your generations:

Query string rules

Every endpoint reads its query string the same way:
  • An unknown query parameter fails with 400 invalid_request, and param names it.
  • A parameter sent more than once fails with 400 invalid_request.
  • A value that isn’t valid fails with 400 validation_failed, and param names the parameter.
  • An ID in the path is a UUID. Anything else returns 404 not_found, as an unknown ID does.