PhotoGPT Developers
API ReferenceGeneration

Upscale an image

POST
/images/upscaling

Triggers an asynchronous image upscaling job. The response returns a jobId; poll GET /jobs/{id} for status and outputs.

Authorization

BearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

Image upscaling request.

TypeScript Definitions

Use the request body type in TypeScript.

imageID*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/images/upscaling" \  -H "Content-Type: application/json" \  -d '{    "imageID": "image_123"  }'
{  "result": {    "jobId": "job_123",    "status": "queued"  },  "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"}