var2_modify_image
Remove background (cut out subject, transparent) OR upscale (2K/4K/8K, "sharper", "enhance", "isolate the ") an existing IMAGE — even when it is a www.var2.ai/image/ link. type ∈ upscale | remove-bg (no other type exists). IMAGE ONLY — judge by media type, not "edit"/"extend": track/song edits → var2_create_audio; video edits → var2_create_video / var2_join_videos. image_url: storage URL, var2 share link, or any https URL. Models: topaz-upscale (upscale_factor 2–6, default 2; credits scale with output megapixels), recraft-upscale (≤2048px), remove-background. Stylistic edits → var2_create_image type=image-to-image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Default upscale. | |
| model | No | Default topaz-upscale. | |
| image_url | Yes | Storage URL, var2 share link (www.var2.ai/image/<id> — auto-resolved), or any public https URL. | |
| webhook_url | No | Optional. https:// URL var2 POSTs a signed delivery to when the asset is ready (or fails). Signature header: X-VAR2-Signature: t=<unix>, v1=<hex(hmac_sha256(webhook_secret, t + "." + body))>. Retried with exponential backoff (8 attempts over ~4 days). | |
| upscale_factor | No | topaz-upscale only. Default 2. Output = image × factor per side (max 100 MP); credits are charged per started 8 MP of output. |