seedinteger
The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
Minimum: 0
clarity-ai/clarity-upscalerClarity Upscaler by ClarityAI - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.
Try the model
PNG, JPEG, WebP, or GIF · 20 MiB maximum
Customize your input with more control.
Your output will appear here
Complete the inputs, then click Run.
Clarity Upscaler enlarges an image up to 4× while adding detail; creativity and resemblance balance new detail against faithfulness.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | masterpiece, best quality, highres | Describe the content to guide added detail. |
image | image URL, required | — | Image to upscale. JPEG, PNG, or WebP URL. |
guidance_scale | number 0–20 | 4 | How strictly to follow the prompt. |
num_inference_steps | integer 4–50 | 18 | More steps add detail and time. |
seed | integer | random | Fix it to compare prompt changes. |
upscale_factor | number 1–4 | 2 | 1–4×. |
resemblance | number 0–1 | 0.6 | Higher stays closer to the input. |
creativity | number 0–1 | 0.35 | Higher adds more invented detail. |
$0.03 per image.
| Request | Price |
|---|---|
| One image | $0.03 |
Failed runs are not charged.
Related: topaz/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": "clarity-ai/clarity-upscaler",
"image": "https://static.sandbase.ai/examples/bytedance/seedvr/upscale/image/input_image_0.png",
"prompt": "masterpiece, best quality, highres",
"creativity": 0.35,
"resemblance": 0.6,
"guidance_scale": 4,
"upscale_factor": 2,
"num_inference_steps": 18
}
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.
seedintegerThe same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
Minimum: 0
imagestringrequiredThe URL of the image to upscale.
promptstringrequiredThe prompt to use for generating the image. Be as descriptive as possible for best results.
Default: "masterpiece, best quality, highres"
creativitynumberThe creativity of the model. The higher the creativity, the more the model will deviate from the prompt. Refers to the denoise strength of the sampling.
Default: 0.35
Minimum: 0
Maximum: 1
resemblancenumberThe resemblance of the upscaled image to the original image. The higher the resemblance, the more the model will try to keep the original image. Refers to the strength of the ControlNet.
Default: 0.6
Minimum: 0
Maximum: 1
guidance_scalenumberThe CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
Default: 4
Minimum: 0
Maximum: 20
upscale_factornumberThe upscale factor
Default: 2
Minimum: 1
Maximum: 4
num_inference_stepsintegerThe number of inference steps to perform.
Default: 18
Minimum: 4
Maximum: 50
{
"model": "clarity-ai/clarity-upscaler",
"image": "https://static.sandbase.ai/examples/bytedance/seedvr/upscale/image/input_image_0.png",
"prompt": "masterpiece, best quality, highres",
"creativity": 0.35,
"resemblance": 0.6,
"guidance_scale": 4,
"upscale_factor": 2,
"num_inference_steps": 18
}A completed run exposes its result in output. The following is the model’s saved example, not a new generation.
No example output has been published yet. Use Playground → Result → JSON after a completed run to inspect your response.