---
title: CCSR | Runware Docs
url: https://runware.ai/docs/models/ccsr
description: Diffusion upscaler for high-quality real-world super-resolution
---
# CCSR

CCSR is a diffusion-based image super-resolution model designed for real-world low-quality inputs, improving sharpness and restoring detail while keeping artifacts controlled during upscaling.

- **ID**: `runware:501@1`
- **Status**: live
- **Release Date**: December 23, 2023
- **Capabilities**: Image to Image, Upscale

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/ccsr#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `upscale`

Identifier for the type of task being performed

### [taskUUID](https://runware.ai/docs/models/ccsr#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/ccsr#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Image output type.

**Allowed values**: `URL` `base64Data` `dataURI`

### [outputFormat](https://runware.ai/docs/models/ccsr#request-outputformat)

- **Type**: `string`
- **Default**: `JPG`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`JPG\`: Best for photorealistic images with smaller file sizes (no transparency).
- \`PNG\`: Lossless compression, supports high quality and transparency (alpha channel).
- \`WEBP\`: Modern format providing superior compression and transparency support.

> [!NOTE]
> \*\*Transparency\*\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \`PNG\`, \`WEBP\`, \`TIFF\`). \`JPG\` does not support transparency.

**Allowed values**: `JPG` `PNG` `WEBP`

### [outputQuality](https://runware.ai/docs/models/ccsr#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/ccsr#request-webhookurl)

- **Type**: `string`
- **Format**: `URI`

Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/platform/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/ccsr#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns complete results directly in the API response.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/platform/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/ccsr#request-uploadendpoint)

- **Type**: `string`
- **Format**: `URI`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [ttl](https://runware.ai/docs/models/ccsr#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/ccsr#request-includecost)

- **Type**: `boolean`
- **Default**: `false`

Include task cost in the response.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [image](https://runware.ai/docs/models/ccsr#request-inputs-image)

- **Path**: `inputs.image`
- **Type**: `string`
- **Required**: true

Image input (UUID, URL, Data URI, or Base64).

**Generation Parameters**

Core parameters for controlling the generated content.

### [model](https://runware.ai/docs/models/ccsr#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `runware:501@1`

Identifier of the model to use for generation.

**Learn more** (3 resources):

- [Text To Image: Model Selection The Foundation Of Generation](https://runware.ai/docs/guides/text-to-image#model-selection-the-foundation-of-generation) (guide)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/guides/image-inpainting#model-specialized-inpainting-models) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [upscaleFactor](https://runware.ai/docs/models/ccsr#request-upscalefactor)

- **Type**: `integer`

Factor by which to upscale the generated image. A value of 2 doubles width and height.

**Allowed values**: `2`

**Settings**

Technical parameters to fine-tune the inference process. These must be nested inside the \`settings\` object.

### [positivePrompt](https://runware.ai/docs/models/ccsr#request-settings-positiveprompt)

- **Path**: `settings.positivePrompt`
- **Type**: `string`

Text prompt describing elements to include in the generated output.

**Learn more** (2 resources):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/guides/image-outpainting#other-critical-parameters) (guide)

### [negativePrompt](https://runware.ai/docs/models/ccsr#request-settings-negativeprompt)

- **Path**: `settings.negativePrompt`
- **Type**: `string`

Prompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).

**Learn more** (1 resource):

- [Text To Image: Prompts Guiding The Generation](https://runware.ai/docs/guides/text-to-image#prompts-guiding-the-generation) (guide)

### [seed](https://runware.ai/docs/models/ccsr#request-settings-seed)

- **Path**: `settings.seed`
- **Type**: `integer`
- **Min**: `0`
- **Max**: `9223372036854776000`

Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.

**Learn more** (1 resource):

- [Text To Image: Seed Controlling Randomness Deterministically](https://runware.ai/docs/guides/text-to-image#seed-controlling-randomness-deterministically) (guide)

### [steps](https://runware.ai/docs/models/ccsr#request-settings-steps)

- **Path**: `settings.steps`
- **Type**: `integer`
- **Min**: `1`

Total number of denoising steps. Higher values generally produce more detailed results but take longer.

**Learn more** (1 resource):

- [Text To Image: Steps Trading Quality For Speed](https://runware.ai/docs/guides/text-to-image#steps-trading-quality-for-speed) (guide)

### [CFGScale](https://runware.ai/docs/models/ccsr#request-settings-cfgscale)

- **Path**: `settings.CFGScale`
- **Type**: `float`
- **Min**: `0`
- **Step**: `0.01`

Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.

**Learn more** (1 resource):

- [Text To Image: Cfg Scale Balancing Creativity And Control](https://runware.ai/docs/guides/text-to-image#cfg-scale-balancing-creativity-and-control) (guide)

### [controlNetWeight](https://runware.ai/docs/models/ccsr#request-settings-controlnetweight)

- **Path**: `settings.controlNetWeight`
- **Type**: `float`
- **Min**: `-4`
- **Max**: `4`
- **Step**: `0.01`
- **Default**: `1`

Strength of the ControlNet influence. A value of 0 means no influence. Higher values increase the influence, and negative values can be used to steer away from the guide image.

## Response Parameters

### [taskType](https://runware.ai/docs/models/ccsr#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `upscale`

Type of the task.

### [taskUUID](https://runware.ai/docs/models/ccsr#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the task.

### [imageUUID](https://runware.ai/docs/models/ccsr#response-imageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/ccsr#response-imageurl)

- **Type**: `string`
- **Format**: `URI`

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/ccsr#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/ccsr#response-imagedatauri)

- **Type**: `string`
- **Format**: `URI`

Data URI of the output image.

### [cost](https://runware.ai/docs/models/ccsr#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### Pixelated Arcade Mascot Sign (Upscale)

![Pixelated Arcade Mascot Sign](https://assets.runware.ai/examples/ccsr/8c841be5-b491-4a6f-9259-04ff8f386900.jpg)

**Request**:

```json
{
  "taskType": "upscale",
  "taskUUID": "061fab37-bf9d-4115-880c-6bacb1f0193e",
  "model": "runware:501@1",
  "upscaleFactor": 2,
  "settings": {
    "positivePrompt": "clean restored signage photo, crisp lettering, sharper mascot outline, natural painted metal texture, controlled detail recovery, realistic street photo, reduced blockiness, reduced compression artifacts",
    "negativePrompt": "extra characters, altered wording, warped shapes, oversmoothing, halos, plastic texture, painterly look, heavy noise, duplicated features",
    "controlNetWeight": 1,
    "steps": 24,
    "seed": 72130,
    "CFGScale": 5.5
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/ecb5e718-fe2c-4309-977a-f457dbe88ef8.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageUpscale",
  "taskUUID": "061fab37-bf9d-4115-880c-6bacb1f0193e",
  "imageUUID": "628e2511-7ea7-412f-9e19-2d9292124114",
  "imageURL": "https://im.runware.ai/image/os/a05d22/ws/2/ii/628e2511-7ea7-412f-9e19-2d9292124114.jpg",
  "cost": 0.0019,
  "inputImageUUID": "136ef585-8479-4a08-a404-c6a829fdf6ca"
}
```

---

### Pixelated Storefront Sign Cleanup (Upscale)

![Pixelated Storefront Sign Cleanup](https://assets.runware.ai/examples/ccsr/f63dfd26-af3b-4c0f-a43b-3733d08db38b.jpg)

**Request**:

```json
{
  "taskType": "upscale",
  "taskUUID": "da96bcdb-e015-43e8-a7e0-26ea9ce9318b",
  "model": "runware:501@1",
  "upscaleFactor": 2,
  "settings": {
    "positivePrompt": "clean realistic restoration of a small corner shop storefront, sharper sign lettering, crisp awning stripes, clearer window reflections, natural brick and painted wood textures, readable handwritten notices, preserved realistic lighting, controlled detail, faithful reconstruction from a low-quality photo",
    "negativePrompt": "hallucinated objects, extra text, distorted letters, oversmoothing, plastic textures, excessive sharpening halos, duplicate plants, warped doorway, painterly look, surreal details",
    "steps": 24,
    "CFGScale": 4,
    "controlNetWeight": 1,
    "seed": 17303
  },
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/6525ac0d-dc61-443d-a965-a464e8b2fbc2.jpg"
  }
}
```

**Response**:

```json
{
  "taskType": "imageUpscale",
  "taskUUID": "da96bcdb-e015-43e8-a7e0-26ea9ce9318b",
  "imageUUID": "37f83818-e885-46e5-b8ef-936948d0a872",
  "imageURL": "https://im.runware.ai/image/os/a08d21/ws/2/ii/37f83818-e885-46e5-b8ef-936948d0a872.jpg",
  "cost": 0.0013,
  "inputImageUUID": "44b41196-c94e-42b9-a0b1-606e0f7e641c"
}
```