Photo Sweat Shop Image Tools
v1.9.0Cutout, white bg, upscale, erase, restore, ID photos, vectorize via MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
colorize Old photo restoration
Redraws a scanned or photographed old print: removes halftone and print grain, reduces scratches and stains, and restores natural colour; colour photos are restored too (whole-photo redraw). Takes about 8 s on a warm GPU. Returns the processed image in an image content block as a JPEG whose long edge is at most 1024 px — a larger input comes back scaled down. Free tiers: 10 credits/day (60 a month) per anonymous IP, 20/day (100 a month) with a key; this tool costs 2 credits (1 credit = $0.01) beyond that. The quota left is echoed in the result text.
| Parameter | Type | Description |
|---|---|---|
image_base64 | string | The image itself, base64-encoded (JPEG/PNG/WebP, max 10 MB). A data-URI prefix (RFC 2397) is accepted. Provide either this or image_url. |
image_url | string | Public http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal. |
wait | integer | Seconds to block waiting for the result (1–25). Past 25 the honest answer is a 202 + status_url you poll yourself, because MCP hosts time tool calls out. |
make_id_photo ID photo
Make a standard ID photo for a country and document: head height, aspect and background from our spec table, 300 dpi JPEG; no approval guarantee. Takes about 15 s on a warm GPU. Returns the processed image in an image content block as a JPEG at exactly the pixel size the spec table records for that country and document, at 300 dpi — not at the input's size. The head is scaled and positioned per that spec and the background replaced. country is an ISO 3166-1 alpha-2 code; doc_type defaults to passport. GET /api/idphoto/specs lists every supported country and document, the exact output size, a…
| Parameter | Type | Description |
|---|---|---|
bg | string | auto = the colour recorded in the spec table (white when unrecorded); or pass #rrggbb to override |
country | string | ISO 3166-1 alpha-2 code (US, CN, DE…); GET /api/idphoto/specs lists all of them |
doc_type | string | passport / visa / visa_dv …; omitted = that country's passport. See /api/idphoto/specs for each country's set |
image_base64 | string | The image itself, base64-encoded (JPEG/PNG/WebP, max 10 MB). A data-URI prefix (RFC 2397) is accepted. Provide either this or image_url. |
image_url | string | Public http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal. |
wait | integer | Seconds to block waiting for the result (1–25). Past 25 the honest answer is a 202 + status_url you poll yourself, because MCP hosts time tool calls out. |
vectorize Image to SVG
Redraws an icon, illustration or chart as a structured, editable SVG (text stays text); returns a PNG preview plus the SVG. Photos are not supported yet. Takes about 12 s on a warm GPU (beta — no SLA). Returns the processed image in an image content block, at the input's pixel size by default (long edge clamped to 4096 px — a larger input comes back scaled down). Free tiers: 10 credits/day (60 a month) per anonymous IP, 20/day (100 a month) with a key; this tool costs 2 credits (1 credit = $0.01) beyond that. The quota left is echoed in the result text. A job that outruns the wait comes ba…
| Parameter | Type | Description |
|---|---|---|
image_base64 | string | The image itself, base64-encoded (JPEG/PNG/WebP, max 10 MB). A data-URI prefix (RFC 2397) is accepted. Provide either this or image_url. |
image_url | string | Public http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal. |
mode | string | auto detects; icon for logos and flat art; chart for plots and diagrams. photo is not enabled yet |
wait | integer | Seconds to block waiting for the result (1–25). Past 25 the honest answer is a 202 + status_url you poll yourself, because MCP hosts time tool calls out. |
remove_background Remove background
Cut out the subject onto transparency, white, or any solid color. Takes about 10 s on a warm GPU. Returns the processed image in an image content block, at the input's pixel size by default (long edge clamped to 4096 px — a larger input comes back scaled down). Pass fillRatio (1-100) to crop to the subject and centre it on a square canvas, the subject's longest side taking that share of the canvas; longEdge sets the canvas side in px, 0 derives it from fillRatio. Free tiers: 10 credits/day (60 a month) per anonymous IP, 20/day (100 a month) with a key; this tool costs 1 credits (1 credit = $…
| Parameter | Type | Description |
|---|---|---|
background | string | Transparent, white, or a custom color |
color | string | Only used when background=color |
fillRatio | number | Longest bbox side as a share of the square canvas; 0 = no framing |
format | string | JPEG is much smaller for opaque backgrounds; transparency requires PNG |
image_base64 | string | The image itself, base64-encoded (JPEG/PNG/WebP, max 10 MB). A data-URI prefix (RFC 2397) is accepted. Provide either this or image_url. |
image_url | string | Public http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal. |
longEdge | integer | Square canvas side; 0 = derive from fill ratio, no resampling |
verifyText | boolean | OCR before/after to report dropped text; slow (4-30 s), never blocks output |
wait | integer | Seconds to block waiting for the result (1–25). Past 25 the honest answer is a 202 + status_url you poll yourself, because MCP hosts time tool calls out. |
white_bg E-commerce white background
Cut out a product, fill pure white, frame it to marketplace rules (1:1, long edge), with an optional soft ground shadow; JPEG out. Takes about 10 s on a warm GPU. Returns the processed image in an image content block, at the input's pixel size by default (long edge clamped to 4096 px — a larger input comes back scaled down). Free tiers: 10 credits/day (60 a month) per anonymous IP, 20/day (100 a month) with a key; this tool costs 1 credits (1 credit = $0.01) beyond that. The quota left is echoed in the result text.
| Parameter | Type | Description |
|---|---|---|
background_color | string | Keep #ffffff (RGB 255,255,255) for marketplace white-background rules |
image_base64 | string | The image itself, base64-encoded (JPEG/PNG/WebP, max 10 MB). A data-URI prefix (RFC 2397) is accepted. Provide either this or image_url. |
image_url | string | Public http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal. |
main_ratio | number | Longest bbox side as a share of the square canvas |
shadow_opacity | number | Default 0 = plain white, no shadow; try 0.2-0.4 for white or silver products that vanish on pure white |
wait | integer | Seconds to block waiting for the result (1–25). Past 25 the honest answer is a 202 + status_url you poll yourself, because MCP hosts time tool calls out. |
upscale Upscale
Real-ESRGAN upscale; prefer 2x on text-heavy images. Takes about 46 s on a warm GPU. Returns the processed image in an image content block, at the input's pixel size by default (long edge clamped to 4096 px — a larger input comes back scaled down). 'scale' is nominal: the output's long edge is min(scale × the input's, 4096 px). Free tiers: 10 credits/day (60 a month) per anonymous IP, 20/day (100 a month) with a key; this tool costs 2 credits (1 credit = $0.01) beyond that. The quota left is echoed in the result text.
| Parameter | Type | Description |
|---|---|---|
engine | string | Pick x4plus for text-heavy images: less halo and stroke adhesion |
face | boolean | On by default: restores faces after upscaling without reshaping them; about +1s per face, up to 8 faces. Send false to skip |
image_base64 | string | The image itself, base64-encoded (JPEG/PNG/WebP, max 10 MB). A data-URI prefix (RFC 2397) is accepted. Provide either this or image_url. |
image_url | string | Public http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal. |
scale | string | Use 2x for packaging text |
verifyText | boolean | Optional: OCR before/after and report missing or changed text. ~+5s on sparse text, up to +30s when text is dense |
wait | integer | Seconds to block waiting for the result (1–25). Past 25 the honest answer is a 202 + status_url you poll yourself, because MCP hosts time tool calls out. |