Upscale a photo or video
upscaleMake a photo or video sharper and bigger. Uses site credits with OAuth or USD with an API key; videos are priced by length.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upscale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Target size. Photos: 2k, 4k (default) or 8k. Videos: 720p, 1080p (default), 2k or 4k. | |
| image | No | ChatGPT only: the photo the user attached. | |
| max_usd | No | API key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits. | |
| currency | No | Billing unit: USD for API keys; credits for OAuth (optional for existing OAuth clients). | |
| image_url | No | A photo to make sharper and bigger (https or popnow:// link). | |
| video_url | No | Or a video to make sharper (https or popnow:// link). | |
| max_credits | No | OAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price. | |
| production_id | No | Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts. |