Upscale a photo
upscale_photoUse this to make one of the user's photos sharper and twice as large, for print, a big screen, or a sharper video start. Costs 2 credits; say the cost before calling. Each photo can be upscaled once; the original stays. Takes 10 to 30 seconds and returns the upscaled image's link.
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": {
"photo_id": "<photo_id>"
},
"name": "upscale_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo_id | Yes | A photo_id from get_generation or list_media. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| summary | Yes | ||
| photo_id | No | ||
| view_url | No | ||
| error_code | No | Present only on a refusal. | |
| credits_left | No | ||
| upscaled_url | No | ||
| credits_charged | No | ||
| already_upscaled | No |