SVG.new Agent API

The Agent API from SVG.new — 5 operation(s) for agent.

GitHub OpenAPI

Operations 5

POST /api/agent/vectorize Convert a raster image to SVG #
POST /api/agent/edit/recolor Change colors in an SVG #
POST /api/agent/edit/simplify Reduce SVG color palette #
POST /api/agent/edit/remove-background Remove SVG background #
POST /api/agent/batch Batch vectorize images #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/svg-new:svg-new-agent-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

svg-new-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SVG.new Agent API
  description: AI-powered image to SVG vector conversion, editing, and batch processing.
  version: 1.0.0
  contact:
    name: SVG.new
    email: contact@svg.new
    url: https://svg.new
servers:
- url: https://svg.new
  description: Production
security:
- bearerAuth: []
tags:
- name: Agent
paths:
  /api/agent/vectorize:
    post:
      operationId: vectorize
      summary: Convert a raster image to SVG
      description: Upload a base64-encoded PNG, JPG, or WebP image and receive a clean SVG vector. Costs 1 credit.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - image
              properties:
                image:
                  type: string
                  description: Base64 data URL (e.g. data:image/png;base64,...)
      responses:
        '200':
          description: Vectorization successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Vectorization ID
                  svg:
                    type: string
                    description: SVG content
                  metadata:
                    type: object
                    properties:
                      created_at:
                        type: string
                      credits_remaining:
                        type: integer
        '400':
          description: Invalid image data
        '401':
          description: Invalid or missing API key
        '402':
          description: Insufficient credits
        '429':
          description: Rate limited (10 req/min)
      tags:
      - Agent
  /api/agent/edit/recolor:
    post:
      operationId: recolor
      summary: Change colors in an SVG
      description: Replace colors in an SVG according to a color map. Free, no credit cost.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - svg
              - color_map
              properties:
                svg:
                  type: string
                  description: SVG content
                color_map:
                  type: object
                  additionalProperties:
                    type: string
                  description: Map of old hex colors to new hex colors
      responses:
        '200':
          description: Recolor successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  svg:
                    type: string
      tags:
      - Agent
  /api/agent/edit/simplify:
    post:
      operationId: simplify
      summary: Reduce SVG color palette
      description: Quantize colors in an SVG to a maximum count using median-cut. Free, no credit cost.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - svg
              - max_colors
              properties:
                svg:
                  type: string
                  description: SVG content
                max_colors:
                  type: integer
                  minimum: 1
                  maximum: 256
                  description: Target color count
      responses:
        '200':
          description: Simplification successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  svg:
                    type: string
                  colors_before:
                    type: integer
                  colors_after:
                    type: integer
      tags:
      - Agent
  /api/agent/edit/remove-background:
    post:
      operationId: removeBackground
      summary: Remove SVG background
      description: Remove background from an SVG using AI on the original raster image. Costs 1 credit.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - svg
              - image
              properties:
                svg:
                  type: string
                  description: SVG content
                image:
                  type: string
                  description: Original raster image as base64 data URL
      responses:
        '200':
          description: Background removal successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  svg:
                    type: string
                  transparent_image:
                    type: string
      tags:
      - Agent
  /api/agent/batch:
    post:
      operationId: batchVectorize
      summary: Batch vectorize images
      description: Submit multiple images for vectorization in one request. Costs 1 credit per image.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - images
              properties:
                images:
                  type: array
                  items:
                    type: string
                  description: Array of base64 data URLs
      responses:
        '200':
          description: Batch vectorization successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        svg:
                          type: string
      tags:
      - Agent
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key starting with svk_. Generate at https://svg.new/account