Photo Sweat Shop Image Tools

v1.9.0
shop.photosweat/remove-background Checked 47 minutes ago Published 9 hours ago

Cutout, 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.

ParameterTypeDescription
image_base64stringThe 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_urlstringPublic http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal.
waitintegerSeconds 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…

ParameterTypeDescription
bgstringauto = the colour recorded in the spec table (white when unrecorded); or pass #rrggbb to override
countrystringISO 3166-1 alpha-2 code (US, CN, DE…); GET /api/idphoto/specs lists all of them
doc_typestringpassport / visa / visa_dv …; omitted = that country's passport. See /api/idphoto/specs for each country's set
image_base64stringThe 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_urlstringPublic http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal.
waitintegerSeconds 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…

ParameterTypeDescription
image_base64stringThe 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_urlstringPublic http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal.
modestringauto detects; icon for logos and flat art; chart for plots and diagrams. photo is not enabled yet
waitintegerSeconds 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 = $…

ParameterTypeDescription
backgroundstringTransparent, white, or a custom color
colorstringOnly used when background=color
fillRationumberLongest bbox side as a share of the square canvas; 0 = no framing
formatstringJPEG is much smaller for opaque backgrounds; transparency requires PNG
image_base64stringThe 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_urlstringPublic http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal.
longEdgeintegerSquare canvas side; 0 = derive from fill ratio, no resampling
verifyTextbooleanOCR before/after to report dropped text; slow (4-30 s), never blocks output
waitintegerSeconds 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.

ParameterTypeDescription
background_colorstringKeep #ffffff (RGB 255,255,255) for marketplace white-background rules
image_base64stringThe 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_urlstringPublic http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal.
main_rationumberLongest bbox side as a share of the square canvas
shadow_opacitynumberDefault 0 = plain white, no shadow; try 0.2-0.4 for white or silver products that vanish on pure white
waitintegerSeconds 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.

ParameterTypeDescription
enginestringPick x4plus for text-heavy images: less halo and stroke adhesion
facebooleanOn by default: restores faces after upscaling without reshaping them; about +1s per face, up to 8 faces. Send false to skip
image_base64stringThe 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_urlstringPublic http(s) URL of the image to process (JPEG/PNG/WebP, max 10 MB). Use a hostname, not an IP literal.
scalestringUse 2x for packaging text
verifyTextbooleanOptional: OCR before/after and report missing or changed text. ~+5s on sparse text, up to +30s when text is dense
waitintegerSeconds 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.