Upscale image
upscaleImageUpscale an image: the same picture at a higher resolution, up to 4x, with the result capped at about 3.1 megapixels (width x height) whatever its shape: a square image comes back 1776x1776 at most, and a wide or tall one can be longer than 2048px on its longest side. The source image (URL or base64) must be under 3 megapixels, for example 1700x1700 or 2000x1500, and under 2048px on its longest side, so a long, narrow image such as 2640x896 is refused although it is under 3 megapixels; a larger one is rejected with HTTP 400. A result that reached the cap is itself over 3 megapixels, or 2048px or more on its longest side, so it cannot be upscaled again. The job result is a single image result with a url (not an array). The image is uploaded and validated, and an image larger than 15MB is rejected with HTTP 400. Credits are held when the job is accepted and refunded if it fails or is cancelled. Use upscaleImage to raise the resolution of an image you already have; createImage and editImage make new or changed images instead. Pass an optional request_id to tag the result so you can retrieve it later via listGenerations (type image). Async generation job: returns {id, status} - poll getApiJob (job and credit contract: see the server instructions).
Credits: This endpoint consumes 0.5 credits per result.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"requestBody": "<requestBody>"
},
"name": "upscaleImage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestBody | Yes | Payload for upscaling an image |