Upscale image
upscale_imageUpscale an image from a public URL. POST {img, upscale} to ai.imgkits.com/api/restoration. scale is 2 (default) or 4 and is sent as upscale. Optional face_enhance is sent on the same body. There is no separate enhance_photo or enhance_face tool. Synchronous. Cost: 2 credits per call; mcp-credit-gateway charges before forwarding.
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": {
"source_url": "<source_url>"
},
"name": "upscale_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Scale factor sent to the restoration upstream as `upscale`. 2 (default) and 4 are the supported factors. Face enhancement is the optional `face_enhance` flag on this same tool; there is no separate enhance tool. | |
| bucket | No | Optional upstream storage bucket. Sent only when set here or via RESTORATION_BUCKET. | |
| source_url | Yes | Public http(s) URL of the image to upscale (JPG/PNG/WebP). | |
| face_enhance | No | When set, forwarded as `face_enhance` on the restoration body. Omit it to send only `img` and `upscale`. | |
| idempotency_key | No | Optional caller correlation key, echoed in the result. Billing is handled by mcp-credit-gateway. |