Get Generated Videos
AI Studio
Get Generated Videos
Retrieve a paginated list of all AI-generated videos
GET
Get Generated Videos
Overview
This endpoint retrieves a paginated list of all AI-generated videos associated with your account. The results are sorted by creation date in descending order, with the most recent videos returned first. Each item includes the video URL, prompt, model, dimensions, duration, thumbnail images, 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 video 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 videos. An empty array is returned if no videos 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 | Always Present | Description |
|---|---|---|---|
url | string | Yes | Direct download URL for the generated video (MP4) |
id | string | Yes | Unique identifier of the generated video |
prompt | string | Yes | The text prompt used to generate the video |
aspectRatio | string | Yes | Aspect ratio of the video (e.g., "9:16") |
createdDate | string | Yes | ISO 8601 creation timestamp |
model | string | Yes | AI model used for generation |
width | number | Yes | Video width in pixels |
height | number | Yes | Video height in pixels |
duration | string | Yes | Video duration (e.g., "8s") |
previewImageUrl | string | Yes | Preview image URL (JPG) |
thumbnailImageUrl | string | Yes | Thumbnail image URL (JPG) |
lastFrameImageUrl | string | Yes | Last frame image URL (PNG), useful for creating video continuations |
firstFrameImageUrl | string | No | Present only if a first frame image was provided in the original request |
referenceImageUrls | array | No | Present only if reference images were provided in the original request |
extendVideoUrl | string | No | Present only if the video was generated by extending another video |
Pagination
The API returns up to 100 videos 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.
