高画質Use · Anime upscale
Upscale anime art from $0.003.
- $0.003
- per upscale, up to 2K
- $0.008
- per upscale, 4K
- 2.3s
- for the 2× below
- 16.2 MP
- the 4× below
01One image, both sizes
This picture was made with the image API at 1,216×832. It was then sent to the upscale endpoint twice, once at each scale. Open each file to see exactly what came back, unedited.

| File | Pixels | Time | Price | |
|---|---|---|---|---|
| Source | 1,216×832 | 161 KB | – | – |
| 2× result | 2,432×1,664 | 674 KB | 2.3 s | $0.003 |
| 4× result | 4,864×3,328 | 2.1 MB | 4.5 s | $0.008 |
Times are the generation_time_ms each call reported on 2026-12-03. Prices are today's.
02Look at the lines
Each pair shows the same small area of the picture at the same size. On the left the source is enlarged with bicubic resampling, which is what an image editor or a browser does. On the right is the same area cut from the file the API returned. Nothing was sharpened afterwards.

Bicubic 4×

API 4×

Bicubic 4×

API 4×

Bicubic 2×

API 2×
03The request
One synchronous POST. image is a URL, a data URI or plain base64; scale is 2 (the default) or 4. This is the 2× call from the example, $0.003:
curl https://animeapi.ai/api/upscale \
-H "Authorization: Bearer $ANIMEAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"image": "https://animeapi.ai/gen/wall-bike-sea.webp", "scale": 2}'The reply to that call, as returned. image_url is the finished file:
{
"id": "7nrtqscbe0cvfx4z9rgz5bt74h5tskb0",
"image_url": "https://animeapi.ai/i/mj9GoRgy_VboTZSPCdfWLTS9UCBiQZNMxSQ.webp",
"width": 2432,
"height": 1664,
"scale": 2,
"size": "2k",
"input": {
"width": 1216,
"height": 832
},
"cost_usd": 0.003,
"balance_usd": 0.051,
"generation_time_ms": 2250
}The same in Python and JavaScript:
curl https://animeapi.ai/api/upscale \
-H "Authorization: Bearer $ANIMEAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"image": "https://animeapi.ai/gen/wall-bike-sea.webp", "scale": 2}'// upscale.mjs · Node 18+ · run: node upscale.mjs
const res = await fetch("https://animeapi.ai/api/upscale", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ANIMEAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ image: "https://animeapi.ai/gen/wall-bike-sea.webp", scale: 2 }),
});
const out = await res.json();
if (!res.ok) throw new Error(`${res.status} ${out.code}: ${out.error}`);
console.log(out.image_url, `${out.width}x${out.height}`);# upscale.py · run: python upscale.py art.png
import base64
import os
import sys
import requests
path = sys.argv[1]
with open(path, "rb") as f:
image = base64.b64encode(f.read()).decode()
res = requests.post(
"https://animeapi.ai/api/upscale",
headers={"Authorization": f"Bearer {os.environ['ANIMEAPI_KEY']}"},
json={"image": image, "scale": 4},
timeout=180,
)
out = res.json()
if not res.ok:
raise SystemExit(f"{res.status_code} {out.get('code', '')}: {out['error']}")
save = path.rsplit(".", 1)[0] + "-4x.webp"
with open(save, "wb") as f:
f.write(requests.get(out["image_url"], timeout=120).content)
print(f"saved {save} ({out['width']}x{out['height']}, {out['cost_usd']} USD)")04A bigger still, or a moving one
Any image_url from the image API can go two ways.
- Upscale the still. Pass the URL as
imagehere for a print, a wallpaper, a game background or a cover. - Animate the still. Pass the same URL as
first_frameto the video API and the clip starts on it, from $0.005/s.
curl https://animeapi.ai/api/videos \
-H "Authorization: Bearer $ANIMEAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "she rides down the hill toward the sea, hair and ribbon blowing in the wind",
"first_frame": "https://animeapi.ai/gen/wall-bike-sea.webp",
"resolution": "480p",
"duration": 5
}'The two do not chain: this endpoint upscales still images only, and it does not upscale a finished video clip.
05What it costs
One flat price per result size, charged when the request starts and refunded automatically if it fails. No subscription.
| Result | Price | For $5 | Covers |
|---|---|---|---|
| Up to 2K | $0.003 | 1,666 | Both sides 2,688 px or less: 2× of any fast or anime image |
| 4K | $0.008 | 625 | Anything larger, up to 4352×4352 or 5184×3520: 4× of any fast or anime image |
The price depends on the size of the result, never on the scale you asked for. Every price is on one page, and the comparison sets the image prices beside other services.
06Limits to know first
- One image per request. PNG, JPEG or WebP, up to 10 MB. Send several requests in parallel for a batch.
- Size. Each side of the input at least 256 px, the long side at most 4 times the short one. Results go up to 4352×4352 or 5184×3520; a larger request is refused before anything is charged.
- WebP out. The result is always a WebP at exactly 2× or 4× the input's pixels.
- Transparency is flattened. Transparent pixels come back on white.
- Made for drawn art. Anime, manga and illustration with clear lines are what it is tuned for; photographs are not.
- Stills only. It does not take or return video.
07Questions
- Is there an API for upscaling anime images?
- Yes. AnimeAPI's POST /api/upscale takes one image (a URL, a data URI or base64) and returns it 2× or 4× larger as a WebP in the same response. It is built for anime and illustration: lines stay clean instead of going soft.
- How much does an anime upscale cost?
- $0.003 when both sides of the result are 2,688 px or less, and $0.008 for anything larger. The price goes by the output size, it is charged when the request starts and refunded automatically if it fails. $5 covers 1,666 upscales to 2K.
- How long does an upscale take?
- Seconds. In the recorded example on this page, 1,216×832 to 2,432×1,664 took 2.3 s and to 4,864×3,328 took 4.5 s. The first request after a quiet spell can take longer.
- How large can the result be?
- Up to 4352×4352 or 5184×3520 pixels. The input can be up to 10 MB, with each side at least 256 px and the long side at most 4 times the short side.
- Can it upscale a video?
- No. This endpoint upscales one still image per request. To get a moving picture from a still, send the still as the first frame of a video clip instead; that is a different endpoint with its own price.
08Links
- Upscale API referenceEvery field, status and error
- OpenAI-compatible quick startMake the image to upscale with the openai library
- Animate a stillThe same image as the first frame of a clip
- PricingEvery price on one page
- Price comparisonImage prices beside other services, with sources
09Other uses
- Roleplay front endsScene and character images in Open WebUI and other chats
- Discord botsA /anime slash command
- Visual novel and game artBackgrounds and sprites in a batch
- n8n workflowsOne HTTP Request node, on Cloud too
- AI agentsA remote MCP server and an agent skill
- OpenAI images API drop-inChange the base URL, keep the code
- Anime videoClips with sound from text or your own frames
- Anime musicOpenings, lo-fi and battle themes from one prompt