pic2svg Trace API

The Trace API from pic2svg — 1 operation(s) for trace.

Operations 1

POST /api/v1/trace Trace one image to SVG #

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/pic2svg-com:pic2svg-com-trace-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

pic2svg-com-trace-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: pic2svg Trace API
  version: 1.0.0
  summary: Trace raster images into vector SVG.
  description: The same engine as the converter on https://pic2svg.com. No account or key. Each client has a daily allowance, counted per UTC day and reported in the X-RateLimit-Limit and X-RateLimit-Remaining headers; there is also a daily cap for all API callers together. Only SVG is produced; PDF, EPS, AI and DXF are downloads on the website.
  contact:
    email: support@pic2svg.com
    url: https://pic2svg.com/mcp/
servers:
- url: https://api.pic2svg.com
tags:
- name: Trace
paths:
  /api/v1/trace:
    post:
      operationId: traceImage
      summary: Trace one image to SVG
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                imageBase64:
                  type: string
                  description: The image as a data URL (data:image/png;base64,...) or raw base64. PNG, JPG, WebP, GIF, BMP or TIFF; at most about 45 MB.
                fileName:
                  type: string
                  description: Original file name, for example logo.png. Optional.
                preset:
                  type: string
                  enum:
                  - sharp
                  - balanced
                  - compact
                  default: balanced
                  description: sharp keeps the most detail, compact the fewest paths. Default balanced.
              required:
              - imageBase64
      responses:
        '200':
          description: The traced SVG.
          headers:
            X-RateLimit-Limit:
              schema:
                type: integer
              description: Traces this client may make today. Sent only while a limit is configured.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: Traces left today. Sent only while a limit is configured.
          content:
            application/json:
              schema:
                type: object
                properties:
                  svgText:
                    type: string
                    description: The SVG document.
                  mode:
                    type: string
                    description: Trace mode the engine chose, for example polygon or spline.
                  canvas:
                    type: object
                    properties:
                      w:
                        type: integer
                      h:
                        type: integer
                      paths:
                        type: integer
                        description: Number of vector paths.
                    required:
                    - w
                    - h
                    - paths
                  sizeKB:
                    type: number
                    description: SVG size in kilobytes.
                required:
                - svgText
                - mode
                - canvas
                - sizeKB
        '400':
          description: imageBase64 is missing, or preset is not one of sharp, balanced, compact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: The image is too large (about 45 MB).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Today's allowance is spent.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds until midnight UTC.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Tracing failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: The engine refused the image (for example, it could not be decoded); the status and message are the engine's own.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Trace
components:
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
      required:
      - message
externalDocs:
  url: https://pic2svg.com/mcp/