Clarity
Clarity is an image upscaling model focused on boosting perceived detail during 2× to 4× enlargement, keeping structure stable while enhancing texture and small features for cleaner, higher-impact images.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: upscale -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
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.
**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 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string 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 PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string 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.
// 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.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
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.
inputs object.-
inputs»imageimage
string required -
Image input (UUID, URL, Data URI, or Base64).
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: runware:500@1 -
Identifier of the model to use for generation.
Learn more 3 resources
-
upscaleFactor
integer -
Factor by which to upscale the generated image. A value of 2 doubles width and height.
Allowed values 1 value
Settings
Technical parameters to fine-tune the inference process. These must be nested inside the settings object.
settings object.-
settings»positivePromptpositivePrompt
string -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
-
settings»negativePromptnegativePrompt
string -
Prompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).
Learn more 1 resource
-
settings»seedseed
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
-
settings»stepssteps
integer min: 1 -
Total number of denoising steps. Higher values generally produce more detailed results but take longer.
Learn more 1 resource
-
settings»schedulerscheduler
string -
Scheduler to use for the diffusion process.
Allowed values 75 values
Learn more 2 resources
-
settings»CFGScaleCFGScale
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
-
settings»strengthstrength
float min: 0 max: 1 step: 0.01 default: 0.8 -
Strength of the transformation. Lower values result in more influence from the original input.
-
settings»controlNetWeightcontrolNetWeight
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.
Pixelated Alley Signboard Closeup
{
"taskType": "upscale",
"taskUUID": "2205ed9f-6640-47a2-8d62-5510ca6865fb",
"model": "runware:500@1",
"upscaleFactor": 2,
"settings": {
"positivePrompt": "clean realistic urban signboard closeup, crisp lettering edges, restored sticker texture, wet concrete detail, subtle reflections, faithful composition, natural sharpening, reduced blockiness, improved micro-contrast, clear surface grain",
"negativePrompt": "extra objects, altered layout, fantasy elements, oversmoothing, warped text, duplicated stickers, painterly look, halos, heavy noise, exaggerated glow",
"strength": 0.34,
"steps": 24,
"CFGScale": 5.5,
"seed": 36939
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/2197a5ea-1c3b-49ca-8c0b-a45e054df72b.jpg"
}
}{
"taskType": "imageUpscale",
"taskUUID": "2205ed9f-6640-47a2-8d62-5510ca6865fb",
"imageUUID": "656270fc-3a5c-43c5-9a71-cd5838e5b366",
"imageURL": "https://im.runware.ai/image/os/a08d21/ws/2/ii/656270fc-3a5c-43c5-9a71-cd5838e5b366.jpg",
"cost": 0.0038,
"inputImageUUID": "f40716e0-ea93-430c-88cc-a24c1f06a716"
}Pixelated Arcade Mascot Closeup
{
"taskType": "upscale",
"taskUUID": "6f9db95a-5568-4744-97ee-aa0c99991f7c",
"model": "runware:500@1",
"upscaleFactor": 2,
"settings": {
"positivePrompt": "clean restored details, crisp edges, clearer facial features, refined sticker texture, improved color separation, preserved original layout, natural-looking enhancement",
"negativePrompt": "extra characters, altered composition, surreal additions, heavy painterly effects, oversharpening, duplicated features, text distortion",
"strength": 0.34,
"steps": 24,
"CFGScale": 5.5,
"seed": 2480
},
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/c700fcf6-e908-41c8-8b88-034e95f6cf26.jpg"
}
}{
"taskType": "imageUpscale",
"taskUUID": "6f9db95a-5568-4744-97ee-aa0c99991f7c",
"imageUUID": "6d580820-1324-4997-be84-2817913d5dbf",
"imageURL": "https://im.runware.ai/image/os/a10d08/ws/2/ii/6d580820-1324-4997-be84-2817913d5dbf.jpg",
"cost": 0.0013,
"inputImageUUID": "a28834db-0dcc-4fd0-acb9-f29050b28102"
}