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.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Kirim model ini melalui 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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
seedintegerThe same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
Minimum: 0
imagestringwajibThe URL of the image to upscale.
promptstringwajibThe 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
Maksimum: 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
Maksimum: 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
Maksimum: 20
upscale_factornumberThe upscale factor
Default: 2
Minimum: 1
Maksimum: 4
num_inference_stepsintegerThe number of inference steps to perform.
Default: 18
Minimum: 4
Maksimum: 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
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
Belum ada contoh output yang dipublikasikan. Gunakan Playground → Result → JSON setelah run selesai untuk melihat respons Anda.