# CCSR (`ccsr`)

> CCSR image upscaler. Free on provider, minimal cost.

- Capability: Images (tool `image`) — Image to image
- Price: see POST /v2/estimate
- Typical time: ~30 s
- JSON Schema: https://api.varg.ai/v2/tools/image?model=ccsr (public, no key)
- Try it: https://varg.ai/dashboard/tools/playground?model=ccsr

## Call it

REST: `POST https://api.varg.ai/v2/tools/image/call` with `Authorization: Bearer $VARG_API_KEY` (create a key at https://varg.ai/dashboard/api).
It answers `202` with a job right away. Poll `GET /v2/jobs/{id}` until `status` is `completed`, then read `output.outputs[0].url` — or pass `options.webhook_url` and get the finished job POSTed to you.

```bash
curl -X POST https://api.varg.ai/v2/tools/image/call \
  -H "Authorization: Bearer $VARG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "ccsr",
  "files": [
    {
      "url": "https://example.com/input.png"
    }
  ]
}'
```

MCP: the varg server `https://mcp.varg.ai/mcp` (OAuth sign-in, no key) runs it with `call_tool`:

```json
{
  "tool": "image",
  "input": {
    "model": "ccsr",
    "files": [
      {
        "url": "https://example.com/input.png"
      }
    ]
  },
  "wait": true
}
```

## Inputs

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `model` | string | yes | — | `ccsr` or a route key below | Which model runs the job. |
| `prompt` | string | no | — | — | — |
| `files` | array of { url } | no | — | — | — |
| `aspect_ratio` | string | no | — | e.g. 16:9 \| 9:16 \| 1:1 \| 4:3 \| 3:4 \| 21:9 \| auto | — |

Media inputs are URLs. Upload a local file first with `POST /v2/files` and pass the returned URL.

## Provider options

Optional, per provider, under `provider_options.<provider>`. Only the options of the provider that runs the job apply — pin a route to choose it.

### provider_options.fal

| field | type | required | default | allowed | description |
|---|---|---|---|---|---|
| `seed` | integer | no | — | -9007199254740991–9007199254740991 | — |
| `scale` | number | no | — | 1–4 | The scale of the output image. The higher the scale, the bigger the output image will be. |
| `steps` | integer | no | — | 10–100 | The number of steps to run the model for. The higher the number the better the quality and longer it will take to generate. |
| `t_max` | number | no | — | 0–1 | The ending point of uniform sampling strategy. |
| `t_min` | number | no | — | 0–1 | The starting point of uniform sampling strategy. |
| `tile_vae` | boolean | no | — | — | If specified, a patch-based sampling strategy will be used for VAE decoding. |
| `image_url` | string (URL) | no | — | — | The URL or data URI of the image to upscale. |
| `color_fix_type` | string | no | — | none \| wavelet \| adain | — |
| `tile_diffusion` | string | no | — | none \| mix \| gaussian | — |
| `tile_diffusion_size` | integer | no | — | 256–2048 | Size of patch. |
| `tile_diffusion_stride` | integer | no | — | 128–1024 | Stride of sliding patch. |
| `tile_vae_decoder_size` | integer | no | — | 64–2048 | Size of VAE patch. |
| `tile_vae_encoder_size` | integer | no | — | 128–2048 | Size of latent image |

## Routes

`"model": "ccsr"` picks a route automatically (priority order, then the inputs you send). To pin one, pass its key as `model`.

| model key | provider | modality | price from | typical time |
|---|---|---|---|---|
| `fal:ccsr` | fal | image-to-image | — | ~30 s |

---

Catalog version 2026-11-11T12:59:09.901887+00:00. All models: https://varg.ai/models/llms.txt
