Blog
Product3 min read

Introducing the SVG.new API

We're opening up SVG.new as an API. If you're building anything that needs to convert raster images to vectors — a design tool, a print workflow, an AI agent — you can now do it with a single HTTP call.

How It Works

Send a base64-encoded image to the vectorize endpoint. Get back a clean SVG with smooth, optimized paths. The whole thing typically takes under two seconds.

curl -X POST https://svg.new/api/agent/vectorize \
  -H "Authorization: Bearer svk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"image": "data:image/png;base64,..."}'

The response includes the SVG markup and metadata — dimensions, color count, creation timestamp, and remaining credits.

Beyond Vectorization

The API also exposes editing operations that don't consume any credits:

  • Recolor — swap specific colors in an SVG with a color map. Useful for generating brand variants.
  • Simplify — reduce the color palette to a target count. Essential for screen printing and vinyl cutting.
  • Remove background — strip the background from both the raster source and the resulting SVG.

Batch Processing

Need to convert many images at once? The batch endpoint accepts up to 10 images per request. Submit the batch, get a job ID, then poll for results as each image completes. Ideal for catalog migrations and bulk asset pipelines.

MCP Server for AI Agents

If you're building with Claude, Cursor, or any tool that supports the Model Context Protocol, we ship an MCP server that exposes all API capabilities as native tools. Install it with npm and your AI agent can vectorize, recolor, and simplify images conversationally.

Get Started

Sign up at svg.new, generate an API key in your account settings, and start building. The API documentation has full endpoint references and code examples.