API & MCP
Everything a person can do on Image Upscaler, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://imageupscaler.usefulweb.site/api/v1/calculate– run Image UpscalerGET https://imageupscaler.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Image Upscaler
Enlarges a small image by 2, 3 or 4 times (up to 16 megapixels) with high-quality classic resampling filters, optional noise reduction before and unsharp-mask sharpening after. A side-by-side crop compares plain pixel enlargement with the result. This is classic interpolation, not an AI upscaler: it cannot invent detail that is not in the original.
| Field | Type | Default | Description |
|---|---|---|---|
file (required) | file | — | Image. JPG, PNG, WebP, AVIF, GIF, TIFF or HEIC, max 50 MB. The enlarged result may be at most 16 megapixels. |
factor | select (2, 3, 4) | "2" | Scale factor |
filter | select (lanczos, mitchell, catrom, ewa) | "lanczos" | Resampling filter |
sharpen | select (none, light, medium, strong) | "light" | Sharpening after enlarging |
denoise | select (none, despeckle, enhance, median) | "none" | Noise reduction before enlarging |
format | select (png, jpeg, webp) | "png" | Output format |
quality | integer | 92 | Quality. For JPG and WebP. |
Example request
Small logo 4× with Lanczos and light sharpening
curl -X POST https://imageupscaler.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"file":{"filename":"logo.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAABgAAAAQAQMAAAA26i3WAAAABlBMVEX4+PgWUvBKqxVnAAAAEklEQVQI12NgQAP8/z/gxWgAAPdHD/H1HpIcAAAAAElFTkSuQmCC"},"factor":"4","filter":"lanczos","sharpen":"light","format":"png"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://imageupscaler.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
image_upscaler - Local stdio connector:
node src/mcp-stdio.ts --tool=image-upscaler
{
"mcpServers": {
"image-upscaler": { "type": "http", "url": "https://imageupscaler.usefulweb.site/mcp" }
}
}