imagestringrequired
Url of the image to be upscaled
topaz/upscale/imageUpscale Image is Topaz Labs's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.
Try the model
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Customize your input with more control.
Select an example to load its inputs and result into the playground.
{
"crop_to_fill": false,
"enhancement_model": "High Fidelity V2",
"face_enhancement": false,
"image": "https://static.sandbase.ai/examples/5f434c76-3c13-4430-ac6e-a044487d42b4/input/235e21e0-6bcc-4297-853b-0d3db8894545.png",
"output_format": "png",
"prompt": "Preserve the original panoramic composition, geometry, colors, and details while increasing resolution. Do not crop, reframe, or add new objects.",
"upscale_factor": 2.844444444444445
}{
"crop_to_fill": false,
"enhancement_model": "High Fidelity V2",
"face_enhancement": false,
"image": "https://static.sandbase.ai/examples/837dea98-dbac-4482-b0ba-221473d90d81/input/743b1eb0-8027-4702-bee2-089ad9855502.png",
"output_format": "png",
"prompt": "Preserve the original panoramic composition, geometry, colors, and details while increasing resolution. Do not crop, reframe, or add new objects.",
"upscale_factor": 2.844444444444445
}Topaz upscales and enhances images with model presets for low-resolution, CGI, high-fidelity, and face recovery work.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Optional description for generative models. |
image | image URL, required | — | Image to upscale. JPEG, PNG, or WebP URL. |
strength | number 0.01–1 | — | Enhancement strength (0.01-1.0). |
output_format | jpeg / png | jpeg | Output file format. |
face_enhancement_creativity | number 0–1 | 0 | Creativity level for face enhancement. |
enhancement_model | Low Resolution V2 / Standard V2 / CGI / High Fidelity V2 / Text Refine / Recovery / Redefine / Recovery V2 / Standard MAX / Wonder | Standard V2 | Model preset. |
subject_detection | All / Foreground / Background | All | Subject detection mode for the image enhancement. |
crop_to_fill | boolean | false | |
fix_compression | number 0–1 | — | Compression artifact removal level (0.0-1.0). |
face_enhancement_strength | number 0–1 | 0.8 | Strength of the face enhancement. |
detail | number 0–1 | — | Detail recovery level (0.0-1.0). |
creativity | integer 1–6 | — | Creativity level for generative upscaling (1-6). |
autoprompt | boolean | — | Enable automatic prompt generation for generative upscaling. |
sharpen | number 0–1 | — | Sharpening level (0.0-1.0). |
upscale_factor | number 1–4 | 2 | 1–4×. |
texture | integer 1–5 | — | Texture detail level for generative upscaling (1-5). |
denoise | number 0–1 | — | Denoising level (0.0-1.0). |
face_enhancement | boolean | true | Restore faces. |
Billed by output size: $0.08 up to 24MP, $0.16 up to 48MP, $0.32 up to 96MP, $1.36 above. The quote before submission assumes the top tier; the final charge uses the measured output.
| Output | Price |
|---|---|
| 2× of a 4MP photo (16MP) | $0.08 |
| 4× of a 2MP photo (32MP) | $0.16 |
| 4× of a 6MP photo (96MP) | $0.32 |
Failed runs are not charged.
Related: clarity-ai/clarity-upscaler, bytedance/seedvr/upscale/image.
Start building
Submit this model through the SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "topaz/upscale/image",
"image": "https://static.sandbase.ai/examples/topaz/upscale/image/input_image_0.jpeg",
"crop_to_fill": false,
"output_format": "jpeg",
"upscale_factor": 2,
"face_enhancement": true,
"enhancement_model": "Standard V2",
"subject_detection": "All",
"face_enhancement_strength": 0.8,
"face_enhancement_creativity": 0
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Create a SandBase API key and set it in your server environment. All requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep the key on your server. Do not expose it in browser code or commit it to a repository.
POST to /v1/run with this model ID and its inputs. The request example above includes submission and polling.
Use the returned run ID to poll until the status is completed, failed or timeout. Read output only after completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Pass a publicly accessible file URL in the model’s image, video or audio field. Supported formats and limits are shown beside each Playground input.
Use the upload or replace control on supported image fields in the Playground. Video URL fields accept a hosted driving video; they do not imply video-upload support.
imagestringrequiredUrl of the image to be upscaled
detailnumberDetail recovery level (0.0-1.0). Applies to Recovery V2 model only.
Minimum: 0
Maximum: 1
promptstringrequiredText prompt to guide generative upscaling (max 1024 chars). Applies to Redefine model only.
denoisenumberDenoising level (0.0-1.0). Applies to Standard V2, Low Resolution V2, CGI, High Fidelity V2, Text Refine, and Redefine models.
Minimum: 0
Maximum: 1
sharpennumberSharpening level (0.0-1.0). Applies to Standard V2, Low Resolution V2, CGI, High Fidelity V2, Text Refine, and Redefine models.
Minimum: 0
Maximum: 1
textureintegerTexture detail level for generative upscaling (1-5). Applies to Redefine model only.
Minimum: 1
Maximum: 5
strengthnumberEnhancement strength (0.01-1.0). Applies to Text Refine model only.
Minimum: 0.01
Maximum: 1
autopromptbooleanEnable automatic prompt generation for generative upscaling. Applies to Redefine model only.
creativityintegerCreativity level for generative upscaling (1-6). Higher values produce more creative/hallucinated details. Applies to Redefine model only.
Minimum: 1
Maximum: 6
crop_to_fillbooleanDefault: false
output_formatstringOutput format of the upscaled image.
Default: "jpeg"
Possible values: "jpeg", "png"
upscale_factornumberFactor to upscale the image by (e.g. 2.0 doubles width and height)
Default: 2
Minimum: 1
Maximum: 4
fix_compressionnumberCompression artifact removal level (0.0-1.0). Applies to Standard V2, Low Resolution V2, High Fidelity V2, and Text Refine models.
Minimum: 0
Maximum: 1
face_enhancementbooleanWhether to apply face enhancement to the image. Applies to standard enhance and Recovery V2 models.
Default: true
enhancement_modelstringModel to use for image enhancement.
Default: "Standard V2"
Possible values: "Low Resolution V2", "Standard V2", "CGI", "High Fidelity V2", "Text Refine", "Recovery", "Redefine", "Recovery V2", "Standard MAX", "Wonder"
subject_detectionstringSubject detection mode for the image enhancement. Applies to standard enhance and Recovery V2 models.
Default: "All"
Possible values: "All", "Foreground", "Background"
face_enhancement_strengthnumberStrength of the face enhancement. 0.0 means no enhancement, 1.0 means maximum enhancement. Ignored if face enhancement is disabled.
Default: 0.8
Minimum: 0
Maximum: 1
face_enhancement_creativitynumberCreativity level for face enhancement. 0.0 means no creativity, 1.0 means maximum creativity. Ignored if face enhancement is disabled.
Default: 0
Minimum: 0
Maximum: 1
{
"model": "topaz/upscale/image",
"image": "https://static.sandbase.ai/examples/topaz/upscale/image/input_image_0.jpeg",
"crop_to_fill": false,
"output_format": "jpeg",
"upscale_factor": 2,
"face_enhancement": true,
"enhancement_model": "Standard V2",
"subject_detection": "All",
"face_enhancement_strength": 0.8,
"face_enhancement_creativity": 0
}A completed run exposes its result in output. The following is the model’s saved example, not a new generation.
[
{
"source": "Completed user prediction (human visual safety screened)",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/5f434c76-3c13-4430-ac6e-a044487d42b4/output/dacc1c12-12fe-48ef-8089-c5e0add47a26.png"
}
]