Get Generated Images
AI Studio
Get Generated Images
Retrieve a paginated list of all AI-generated images
GET
Get Generated Images
Overview
This endpoint retrieves a paginated list of all AI-generated images associated with your account. The results are sorted by creation date in descending order, with the most recent images returned first. Each item includes the image URL, prompt, model, dimensions, and other metadata from the original generation request.A valid API key is required to use this endpoint. Obtain your API key from the API Access page in your Pictory dashboard.
API Endpoint
Request Parameters
Headers
API key for authentication (starts with
pictai_)Query Parameters
A pagination token returned in the previous response. Pass this value to retrieve the next page of results. Omit this parameter to fetch the first page.
Response
Success Response (200)
An array of generated image objects, sorted by creation date (newest first). Up to 100 items are returned per page.
A pagination token to retrieve the next page of results. This field is only present when additional pages are available. Pass this value as the
nextPageKey query parameter in the next request.Response Examples
Status Codes
| Status Code | Description |
|---|---|
| 200 | Request processed successfully. The items array contains the generated images. An empty array is returned if no images have been generated. |
| 401 | Unauthorized. The API key in the Authorization header is missing or invalid. |
| 500 | Internal server error. Retry the request after a brief delay. |
Response Fields
| Field | Type | Description |
|---|---|---|
url | string | Direct download URL for the generated image |
id | string | Unique identifier of the generated image |
prompt | string | The text prompt used to generate the image |
aspectRatio | string | Aspect ratio of the image (e.g., "16:9") |
createdDate | string | ISO 8601 creation timestamp |
model | string | AI model used for generation |
width | number | Image width in pixels |
height | number | Image height in pixels |
style | string | Visual style applied (present only if specified in the original request) |
referenceImageUrl | string | Reference image URL (present only if specified in the original request) |
Pagination
The API returns up to 100 images per page. If more results are available, the response includes anextPageKey field. To retrieve subsequent pages, pass this token as a query parameter in the next request.
Example paginated request:
nextPageKey is present in the response, you have reached the last page.
