API reference
Upscale to 4K
Make a 4K version of a finished preview.
POST
/v1/previews/:id/upscaleRequest
The preview must have the status succeeded. An upscale uses one credit.
Request
curl -X POST https://api.paintvisualizer.ai/v1/previews/PREVIEW_ID/upscale \
-H "Authorization: Bearer pv_your_key"Response
Returns the preview with the status code 202. The 4K version appears under upscale. Check the preview again, or wait for the webhook, until its status is succeeded.
Response
{
"id": "jd7e8r1qxqnm3gz7e3awx1ypn18fv15j",
"object": "preview",
"status": "succeeded",
...
"upscale": {
"status": "queued",
"image_url": null,
"image_url_expires_at": null,
"error": null
}
}