Upscale media
upscale_mediaUpscale images and videos to higher resolutions with AI. Use a URL for any media or a task_id for Veo/Grok generations.
Instructions
Upscale an image or a video. Pass exactly one source: image_url (Topaz image upscale — any image; multiplier via upscale_factor, preset/face_enhancement via provider_options), video_url (Topaz video upscale — any video; target size via resolution; preset/target_fps/frame_interpolation via provider_options), or task_id with model 'veo-upscale' / 'grok-upscale' (model-internal upscalers that ONLY work on their own model's completed generations). For any media not generated by Veo/Grok, use the URL inputs — Topaz works on everything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Default true: wait for the job and return the finished result. Set false to get the task_id back immediately and poll with get_task — use for long jobs (high-quality video, full songs) or when the connection might time out. | |
| model | No | Only with task_id: 'veo-upscale' or 'grok-upscale' (full ids accepted too). Omit for URL inputs (Topaz is used). 'grok-upscale' only works on a task_id from xai/grok-imagine-video — NOT from xai/grok-imagine-1.5-video. For anything else, pass the finished video's URL and let Topaz do it. | |
| task_id | No | task_id of a completed generation, for the model-internal upscalers. Requires model 'veo-upscale' (Veo generations) or 'grok-upscale' (Grok Imagine generations). | |
| image_url | No | Image to upscale (public https URL) — routed to Topaz image upscale, works on any image. | |
| video_url | No | Video to upscale (public https URL) — routed to Topaz video upscale, works on any video. | |
| resolution | No | VIDEO target size, e.g. '1080p' or '4k' (defaults to '4k' when omitted). Allowed values differ between Topaz video and veo-upscale. For IMAGE upscaling use upscale_factor instead. | |
| callback_url | No | Optional webhook URL. When set, the tool returns immediately with the task_id and UnificAlly POSTs the result to this URL when the task finishes. Webhook body: { task_id, status: 'completed'|'failed', data: { video_url | image_url | audio_url | ... }, error_message? } — note the media arrives under 'data', not 'output'. Use for long jobs instead of waiting. | |
| confirm_cost | No | Only relevant if the operator enabled a spend guard. When a call exceeds the configured confirm threshold it returns a quote; retry with confirm_cost: true to proceed. Safe to ignore otherwise. | |
| upscale_factor | No | IMAGE upscale factor for image_url, e.g. '2x'. This is a multiplier, not an output size — distinct from generate_image's resolution. | |
| provider_options | No | Escape hatch for model-specific fields not exposed as named parameters (e.g. Kling multi_shots, Flux steps). Merged into the API 'input' payload. Rejected: fields the tool already manages (prompt, media URLs, task_id, ...) and reserved routing/billing/auth keys (model, callback_url, dry_run, api_key, authorization) — switch models with the 'model' parameter, not here. See https://docs.unifically.com for per-model fields. |