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.
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/