imagestringआवश्यक
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.
model को आज़माएँ
PNG, JPEG, WebP, या GIF · अधिकतम 20 MiB
प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
{
"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.
बिल्डिंग शुरू करें
इस model को 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"एक SandBase API key बनाएँ और इसे अपने server environment में सेट करें। सभी requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"Key को सर्वर पर रखें। इसे browser code में expose न करें या repository में commit न करें।
इस model ID और इसके inputs के साथ /v1/run पर POST करें। ऊपर दिया गया request example submission और polling दोनों शामिल करता है।
Completed, failed या timeout होने तक poll करने के लिए लौटाए गए run ID का उपयोग करें। Output केवल completed होने के बाद पढ़ें।
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Model के image, video या audio field में सार्वजनिक रूप से उपलब्ध फ़ाइल URL पास करें। समर्थित formats और limits प्रत्येक Playground input के पास दिखाए गए हैं।
Playground में समर्थित image fields पर upload या replace control का उपयोग करें। Video URL fields hosted driving video स्वीकार करते हैं; इससे video-upload support का संकेत नहीं मिलता।
imagestringआवश्यकUrl of the image to be upscaled
detailnumberDetail recovery level (0.0-1.0). Applies to Recovery V2 model only.
न्यूनतम: 0
अधिकतम: 1
promptstringआवश्यकText 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.
न्यूनतम: 0
अधिकतम: 1
sharpennumberSharpening level (0.0-1.0). Applies to Standard V2, Low Resolution V2, CGI, High Fidelity V2, Text Refine, and Redefine models.
न्यूनतम: 0
अधिकतम: 1
textureintegerTexture detail level for generative upscaling (1-5). Applies to Redefine model only.
न्यूनतम: 1
अधिकतम: 5
strengthnumberEnhancement strength (0.01-1.0). Applies to Text Refine model only.
न्यूनतम: 0.01
अधिकतम: 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.
न्यूनतम: 1
अधिकतम: 6
crop_to_fillbooleanडिफ़ॉल्ट: false
output_formatstringOutput format of the upscaled image.
डिफ़ॉल्ट: "jpeg"
संभावित मान: "jpeg", "png"
upscale_factornumberFactor to upscale the image by (e.g. 2.0 doubles width and height)
डिफ़ॉल्ट: 2
न्यूनतम: 1
अधिकतम: 4
fix_compressionnumberCompression artifact removal level (0.0-1.0). Applies to Standard V2, Low Resolution V2, High Fidelity V2, and Text Refine models.
न्यूनतम: 0
अधिकतम: 1
face_enhancementbooleanWhether to apply face enhancement to the image. Applies to standard enhance and Recovery V2 models.
डिफ़ॉल्ट: true
enhancement_modelstringModel to use for image enhancement.
डिफ़ॉल्ट: "Standard V2"
संभावित मान: "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.
डिफ़ॉल्ट: "All"
संभावित मान: "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.
डिफ़ॉल्ट: 0.8
न्यूनतम: 0
अधिकतम: 1
face_enhancement_creativitynumberCreativity level for face enhancement. 0.0 means no creativity, 1.0 means maximum creativity. Ignored if face enhancement is disabled.
डिफ़ॉल्ट: 0
न्यूनतम: 0
अधिकतम: 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
}पूरा हुआ run अपना परिणाम output में दिखाता है। नीचे दिया गया model का सेव किया हुआ example है, नई 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"
}
]