imagestringzorunlu
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.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"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.
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
imagestringzorunluUrl of the image to be upscaled
detailnumberDetail recovery level (0.0-1.0). Applies to Recovery V2 model only.
Minimum: 0
Maksimum: 1
promptstringzorunluText 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
Maksimum: 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
Maksimum: 1
textureintegerTexture detail level for generative upscaling (1-5). Applies to Redefine model only.
Minimum: 1
Maksimum: 5
strengthnumberEnhancement strength (0.01-1.0). Applies to Text Refine model only.
Minimum: 0.01
Maksimum: 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
Maksimum: 6
crop_to_fillbooleanVarsayılan: false
output_formatstringOutput format of the upscaled image.
Varsayılan: "jpeg"
Olası değerler: "jpeg", "png"
upscale_factornumberFactor to upscale the image by (e.g. 2.0 doubles width and height)
Varsayılan: 2
Minimum: 1
Maksimum: 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
Maksimum: 1
face_enhancementbooleanWhether to apply face enhancement to the image. Applies to standard enhance and Recovery V2 models.
Varsayılan: true
enhancement_modelstringModel to use for image enhancement.
Varsayılan: "Standard V2"
Olası değerler: "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.
Varsayılan: "All"
Olası değerler: "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.
Varsayılan: 0.8
Minimum: 0
Maksimum: 1
face_enhancement_creativitynumberCreativity level for face enhancement. 0.0 means no creativity, 1.0 means maximum creativity. Ignored if face enhancement is disabled.
Varsayılan: 0
Minimum: 0
Maksimum: 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
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"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"
}
]