Upscale to 4K or 8K
upscaleIncrease image resolution to 4K or 8K for clearer architectural renders and detailed visuals. Accepts public HTTPS URLs or data URIs; outputs JPG, PNG, or WebP.
Instructions
Upscale to 3840 (4k) or 7680 (8k) pixels on the longer side. Defaults to 4k and jpg. At 8k, only jpg or webp output is available. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
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": {
"image": "<image>"
},
"name": "upscale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Source image to upscale to 4K: a public HTTPS URL or an inline data:image/<mime>;base64,<payload> URI. | |
| outputFormat | No | Output image format. Defaults to jpg if omitted. | |
| targetResolution | No | Resolution on the longer side; defaults to 4k. At 8k use jpg or webp, not png. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| cost | No | ||
| error | No | ||
| output | No | URLs of generated images, or a video URL for animate. | |
| balance | No | ||
| requestId | No |