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.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
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": "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"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.
seedintegerThe same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
Minimum: 0
imagestringzorunluThe URL of the image to upscale.
promptstringzorunluThe prompt to use for generating the image. Be as descriptive as possible for best results.
Varsayılan: "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.
Varsayılan: 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.
Varsayılan: 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.
Varsayılan: 4
Minimum: 0
Maksimum: 20
upscale_factornumberThe upscale factor
Varsayılan: 2
Minimum: 1
Maksimum: 4
num_inference_stepsintegerThe number of inference steps to perform.
Varsayılan: 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
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
Henüz örnek çıktı yayınlanmadı. Yanıtınızı incelemek için Playground → Result → JSON'u, tamamlanan bir run sonrasında kullanın.