Wide LabsCompute

ClarityAI Flux

ClarityAI/flux Clarity AIImage → imageREST
Price$0.22 /image
EndpointPOST /v2/image/clarity/upscaleREST
Input
Input
Output
Example output of ClarityAI Flux:
Example output

Made with ClarityAI Flux

A 720 px image upscaled 2× to 1440 px.

scale_factor: 2

One request to this model through the API, at list price; resized for the web.

Try this model

Quick start

Send a JSON request to the endpoint below; the response carries the result.
curl -X POST https://api.widelabs.tr/v2/image/clarity/upscale \
  -H "Authorization: Bearer $WIDELABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "image_url": "https://api.widelabs.tr/cdn/content/DtrE44sL6gRRSqtR6zlH5w",
  "model": "ClarityAI/flux"
}'
import os
import requests

resp = requests.post(
    "https://api.widelabs.tr/v2/image/clarity/upscale",
    headers={"Authorization": "Bearer " + os.environ["WIDELABS_API_KEY"]},
    json={
        "image_url": "https://api.widelabs.tr/cdn/content/DtrE44sL6gRRSqtR6zlH5w",
        "model": "ClarityAI/flux"
    },
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.widelabs.tr/v2/image/clarity/upscale", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.WIDELABS_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    image_url: "https://api.widelabs.tr/cdn/content/DtrE44sL6gRRSqtR6zlH5w",
    model: "ClarityAI/flux"
  }),
});
console.log(await resp.json());

Parameters

NameTypeDescription
store_output"provider" | "wl1d" | "wl7d" | "wl30d"
default "provider"
Where this request's output media is hosted, and for how long. `provider` (default) returns a Wide Labs CDN link that live-proxies the provider for 1 hour — the same hour the task record itself lives. `wl1d` / `wl7d` / `wl30d` copy the output into Wide Labs own storage and keep BOTH the link and the task record for 1, 7 or 30 days,…
modelstring
default "ClarityAI/crystal"
Upscaler. Available: 'ClarityAI/crystal' (default; faithful, strongest on portraits, faces and products), 'ClarityAI/flux' (face preservation, optional LoRA), 'ClarityAI/creative' (adds new realistic detail).
image_urlstringURL of the input image. Exactly one of `image_url` / `image_b64`.
image_b64stringBase64-encoded input image, raw or as a data URI. Exactly one of `image_url` / `image_b64`.
scale_factorintegerUpscale factor. flux and creative: 2-16 (default 2); crystal: 1-200 (default 2), mutually exclusive with `target_megapixels`. Every factor costs the same.
target_megapixelsnumbercrystal only: output size in megapixels (0.001-200), mutually exclusive with `scale_factor`; neither means 2x.
creativityintegerHow much new detail the model may invent. flux and creative: -10..10; crystal: 0..10. Default 0.
resemblanceintegercreative only: how closely the output follows the input (-10..10, default 0).
dynamicintegercreative only: contrast / dynamic range of the added detail (-10..10, default 0).
fractalityintegercreative only: strength of fine, repeating texture detail (-10..10, default 0).
style"default" | "portrait" | "anime"creative only: style preset (default `default`).
promptstringflux and creative: optional text prompt guiding the upscale. Forwarded as sent.
lora_linkstringflux only: URL of a custom FLUX LoRA (.safetensors) to apply a style or identity. Forwarded as sent.
output_format"jpg" | "png"crystal only: output image format (default `jpg`).
webhook_urlstringHTTPS URL to receive a signed completion webhook when the async task reaches a terminal state (requires an API key, "async": true and direct mode; otherwise 422). See the Webhooks section for the delivery payload and events, and GET /v2/customer/webhook-secret for the signing secret + verification.

Start building on Wide Labs Compute

Create an account, add credit and send your first request with the SDK you already use.