Recommend an image upscale
recommend_upscaleLook at an image or a video and recommend how to upscale it. Pass imageUrl for an image, or videoUrl for a video. Pass a public URL, a URL from create_upload, or (small images only, under about 2.25 MB) a base64 data URI. Measures how much real detail the file holds (a stretched or softly captured file holds less than its size) and names its content and damage, then returns two picks: faithful (keeps it as it is) and detail (lets the model redraw fine detail). Each pick has the model, the exact settings to pass to upscale_image or upscale_video (for video including durationSeconds, width and height, read from the clip), the output size and the price in credits. Free to call. Use it before upscaling when unsure which model fits, or pass model auto to upscale_image or upscale_video to run the faithful pick directly.
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": "recommend_upscale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrl | No | The image to look at. | |
| videoUrl | No | The video to look at. |