PhotoGPT Developers

Get all images for a model

GET
/models/{modelID}/images

Retrieves images for the given model using cursor pagination, filtered by type if provided. Omit cursor or send an empty string for the first page. When hasMore is true, send nextCursor from the response as cursor for the next page. Keep pageSize and filters unchanged between pages. Restart with an empty cursor when changing them.

Authorization

BearerAuth
AuthorizationBearer <token>

Developer API key. Send as Authorization: Bearer <api_key>.

In: header

Path Parameters

modelID*string

Model ID

Query Parameters

imageType?string

Image type filter

cursor?string

Opaque nextCursor token from the previous response. Omit or leave empty for the first page.

pageSize?integer

Results per page. Invalid values use the default.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/models/string/images"
{  "hasMore": false,  "nextCursor": "string",  "page": 1,  "pageSize": 20,  "result": [    {      "createdAt": "string",      "data": {        "property1": null,        "property2": null      },      "folderID": "string",      "id": "string",      "liked": true,      "modelID": "string",      "publicMediaID": "string",      "type": "string",      "updatedAt": "string",      "upscaledImageID": "string",      "upscaledImageURL": "string",      "url": "string"    }  ],  "status": "OK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}
{  "err": "string",  "message": "string",  "result": null,  "status": "NOK"}