# ClarityAI Clarity Upscaler API

> Clarity 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.

Source: https://www.sandbase.ai/models/clarity-ai/clarity-upscaler
API reference: https://www.sandbase.ai/models/clarity-ai/clarity-upscaler/docs

## Facts

- Provider: ClarityAI
- Type: Image model
- Model ID: `clarity-ai/clarity-upscaler`
- Price: $0.03 per run
- Capabilities: image to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "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
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call ClarityAI Clarity Upscaler through SandBase?

Create a SandBase API key, then send requests with the model ID "clarity-ai/clarity-upscaler" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate ClarityAI account?

No. One SandBase API key and balance gives you access to ClarityAI Clarity Upscaler and the other models in the catalog; you do not need to sign up with ClarityAI separately.

## README

### Clarity Upscaler

Clarity Upscaler enlarges an image up to 4× while adding detail; `creativity` and `resemblance` balance new detail against faithfulness.

#### Fields

| 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. |

#### Billing

$0.03 per image.

| Request | Price |
|---|---|
| One image | $0.03 |

Failed runs are not charged.

#### Also on SandBase

Related: `topaz/upscale/image`.
