OpenAPI 3.1.02026-08-143781,4501.9 MB

3b2cee2701a3

Flows
Image

List Image Generations

List the image generations created through this API, newest first.

get/v1/flows/image

Query parameters

cursorstring nullable

Pagination cursor: the next_cursor value of the previous page's response. Omit it for the first page.

Pagination cursor: the next_cursor value of the previous page's response. Omit it for the first page.

page_sizeinteger

How many generations to return per page.

How many generations to return per page.

status'pending' | 'generating' | 'completed' | 'failed' nullable

Only return generations with this lifecycle status.

Only return generations with this lifecycle status.

model_idstring nullable

Only return generations of this model.

Only return generations of this model.

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Response

Successful Response

next_cursorstring nullable required

Pass as cursor to fetch the next page. null when there is no further page.

has_moreboolean required

Whether more generations exist beyond this page.

Example response

{
  "generations": [
    {
      "content_mime_type": "video/mp4",
      "content_url": "https://storage.googleapis.com/generations/JWr5N6X9ZTqf8jD2LmQb",
      "id": "JWr5N6X9ZTqf8jD2LmQb",
      "status": "completed"
    },
    {
      "id": "Kx2mP7Y4WVrg9kE3NnRc",
      "status": "generating"
    }
  ],
  "has_more": true,
  "next_cursor": "MjAyNi0wNy0xN1QxMjowMDowMHxLeDJtUDdZNFdWcmc5a0UzTm5SYw"
}