seedinteger
The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
Mínimo: 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.
Probar el modelo
PNG, JPEG, WebP o GIF · máximo 20 MiB
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
seedintegerThe same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
Mínimo: 0
imagestringrequeridoThe URL of the image to upscale.
promptstringrequeridoThe prompt to use for generating the image. Be as descriptive as possible for best results.
Valor predeterminado: "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.
Valor predeterminado: 0.35
Mínimo: 0
Máximo: 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.
Valor predeterminado: 0.6
Mínimo: 0
Máximo: 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.
Valor predeterminado: 4
Mínimo: 0
Máximo: 20
upscale_factornumberThe upscale factor
Valor predeterminado: 2
Mínimo: 1
Máximo: 4
num_inference_stepsintegerThe number of inference steps to perform.
Valor predeterminado: 18
Mínimo: 4
Máximo: 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
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
Aún no se ha publicado ningún ejemplo de salida. Use Playground → Result → JSON después de una ejecución completada para inspeccionar su respuesta.