How do I vectorize images from a script, an API or an AI agent over MCP?
Updated on
Create an API key in your Homotope account, send the image to POST /api/v1/jobs (or to the vectorize_image tool of the MCP server at https://homotope.app/mcp), poll the job until its state is done, then fetch the SVG, PDF, EPS or DXF: it is server processing, counted against the free plan’s 2 free trial jobs of the month (the same as in the workshop), then the Pro quota, then credits.
JPG · 900 × 640 px
With the REST API
- In the workshop, “My account” then “API keys”: create a key. It is shown only once; keep it in a secrets manager.
- Send a PNG or JPEG:
POST /api/v1/jobsanswers straight away with202and the job’s identifier. - Poll
GET /api/v1/jobs/IDevery 2 to 5 seconds untildone, then download the SVG, or…/result?format=dxf(pdf,eps, separations).
curl -sS https://homotope.app/api/v1/jobs \
-H "Authorization: Bearer $HOMOTOPE_API_KEY" \
-F [email protected] \
-F 'options={"preset":"logo"}'
curl -sS https://homotope.app/api/v1/jobs/ID \
-H "Authorization: Bearer $HOMOTOPE_API_KEY"
curl -sS -o logo.svg https://homotope.app/api/v1/jobs/ID/svg \
-H "Authorization: Bearer $HOMOTOPE_API_KEY"
Everything is described in the API documentation and the OpenAPI 3.1 document.
With an AI agent (MCP)
The MCP server lives at https://homotope.app/mcp, over Streamable HTTP, with the
Authorization: Bearer header and your key. Tools:
vectorize_image, get_job, get_svg,
get_result, check_cut (“ready to cut?”),
list_vectorizations and get_preview (PNG preview). Same entitlements and limits as the API.
What differs from the workshop
- The image is uploaded: the API processes on the server, unlike the workshop.
- Same entitlement as the workshop: each job first uses one of the 2 free trial jobs of the month (the same ones as in the workshop), then the Pro quota, then a credit; a failed job is given back. Prices are on the Pricing page.
- No synchronous response: the client polls.
To vectorize without uploading anything, stay in the workshop: see vectorize without uploading. There, with no key, tracing is free. Production exports (DXF, EPS, PDF, separations): 2 free per month with an account, unlimited with Pro; without Pro, 1 credit each beyond those 2.
For a cutting DXF, see image to DXF and convert an image to DXF for a laser.
Frequently asked questions
Does the API have a free trial?
Yes, the same as the workshop: the free plan’s 2 free trial jobs of the month also apply through the API and the MCP server (a trial used anywhere is used everywhere). After that, uploads are refused without Pro quota or credits.
Which formats come back?
SVG, PDF, EPS and DXF, plus per-colour separations; a fixed palette can be set when sending.
Where does the key go?
In the Authorization: Bearer header only, never in a URL or a code repository.
Related questions
- How do I vectorize an image on my phone without installing an app?
- How do I vectorize an image and import the SVG into Canva, Figma or Inkscape?
- How do I vectorize an image for a school or university project for free?
- Can I vectorize a logo to SVG right inside Claude?
- Can ChatGPT vectorize an image?
- All questions about vectorizing images
- Students: what is free
Guides and conversions
- Convert a PNG to SVG, right in your browser
- Convert a JPG to SVG, without the compression artefacts
- Vectorize a logo: from PNG or JPG to a vector file
- Convert an image to DXF for cutting
- Sticker cut contour: the outline around a decal
- A Vectorizer.AI alternative that never asks you to upload the image
- A Vector Magic alternative that traces without uploading the image
- An Illustrator Image Trace alternative, with nothing to install
- An Inkscape Trace Bitmap alternative, right in your browser
- A clean SVG for Cricut and Silhouette Cameo, from any image
- Logo to DXF for laser cutting: from PNG to a ready file
- Turn an image into an SVG for Cricut, step by step
- Prepare a JPG for laser cutting and engraving
- Embroidery: prepare an image before digitizing
- Colour separation for screen printing, from an image
- Connect Homotope to Claude, ChatGPT or Gemini
- Driving Homotope from an AI agent
- The Homotope Figma plugin: your images to SVG, without leaving Figma
- Homotope for production: cutting, screen printing, laser and embroidery