
Swin2SR
Enlarges a JPEG-compressed photo 4 times in width and height and removes its blocky compression artefacts as it does.
Fine-tunableWAIFU2XEnlarges illustrations, anime and photos 2 or 4 times and can remove JPEG noise as it does. Three styles: art, photo, and art_scan for scanned drawings and manga.

| Name | Type | Required | Default | Details |
|---|---|---|---|---|
image | file | Yes | — | The picture to enlarge: PNG, JPEG or WebP, at most 50 MB and 16 pixels a side or more. The result may have at most 16.8 megapixels: at 4x, 1024 x 1024 in. 1–2048 characters · image/png, jpeg, webp |
noise_level | integer | No | -1 | JPEG noise removal while enlarging: -1 leaves the picture's noise as it is, 0 removes a little, 3 the most. Allowed: -1, 0, 1, 2, 3 · -1–3 |
scale | integer | No | 4 | How many times wider and taller the result is. Allowed: 2, 4 · 2–4 |
style | text | No | art | art: illustrations and anime. photo: photographs. art_scan: scanned drawings and manga. Allowed: art, photo, art_scan |
Output. Returns PNG image: The enlarged picture as a PNG, scale times the width and height of the input.
Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=WAIFU2X" \
-H "X-API-Key: kg_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"input": {
"image": "https://example.com/input.png",
"noise_level": -1,
"scale": 4,
"style": "art"
},
"outputFormat": "json"
}'
# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
-H "X-API-Key: kg_your_api_key"from kainguru import KainguruClient
with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
submitted = client.executions.execute(
"WAIFU2X",
{
"image": "https://example.com/input.png",
"noise_level": -1,
"scale": 4,
"style": "art"
},
output_format="json",
)
result = client.executions.await_completion(submitted.id)
print(result.execution.output)You can fine-tune waifu2x on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, no password) with 4 to 1000 pairs of a low-resolution picture and the same picture exactly scale times larger, and manifest.jsonl with one {"input", "target"} line per pair. More: Good to know, in the README.
The steps are in the docs.
Price per image: 0.0874 credits ($0.000874). The price is shown again before every run; all prices are on the pricing page.

Enlarges a JPEG-compressed photo 4 times in width and height and removes its blocky compression artefacts as it does.
Fine-tunable
Enlarges a small picture 4 times with latent diffusion, drawing in new plausible detail. A creative upscale: richer…
Fine-tunable
Enlarges real-world photos 2 or 4 times in width and height and cleans up the blur, noise and compression they carry.
Fine-tunable
Colourises old black-and-white photos in two styles: artistic, with bolder colours, or stable, calmer and more…
Fine-tunable
Brightens dark and low-light photos and restores their colour, lifting the shadows without washing out the highlights…
Fine-tunable
Restores a photo by following a sentence in plain English, such as remove the noise, take the rain out, fix the blur…
Fine-tunable