Skip to contentNew: turn any picture into a clean, editable SVG. Try it in the studio ›

API

Make SVGs from your own code. Two endpoints, one answer shape.

Endpoints

POST https://amnt.io/api/v1/svg/generate    words to SVG
POST https://amnt.io/api/v1/svg/vectorize   picture to SVG

Send your API key in the header: Authorization: Bearer amnt_sk_.... Make a key in Settings → API keys after you sign in.

Words to SVG

curl -X POST https://amnt.io/api/v1/svg/generate \
  -H "Authorization: Bearer amnt_sk_..." \
  -H "Content-Type: application/json" \
  -d '{ "prompt": "a fox head logo, flat colours", "style": "flat", "formats": ["png", "pdf"] }'

Picture to SVG

curl -X POST https://amnt.io/api/v1/svg/vectorize \
  -H "Authorization: Bearer amnt_sk_..." \
  -H "Content-Type: application/json" \
  -d '{ "image": "https://example.com/logo.png", "colors": 2 }'

image takes an https link, a data URI or plain base64, up to 10 MB.

Fields

FieldValues
prompt3 to 2000 characters (generate)
imageLink, data URI or base64 (vectorize)
styleauto, flat, icon, logo, illustration
qualitystandard, hd
aspect1:1, 3:2, 2:3, 16:9, 9:16
backgroundtransparent, keep
detaillow, medium, high
colors2 to 64
paletteUp to 64 hex colours, like #1a2b3c
formatssvg, png, pdf, eps, dxf, icons, small
png_width16 to 8192

The answer

{
  "svg": "<svg ...>",
  "url": "https://amnt.io/s/abc123.svg",
  "files": { "png": "https://amnt.io/s/abc123.png" },
  "width": 1024,
  "height": 1024,
  "price_usd": 0.03
}

Errors

StatusMeaning
400A field is wrong. The message names it
401Missing or wrong API key
402Not enough Balance
422The picture could not be read
429Too many calls. Wait for Retry-After seconds
5xxOur side failed. You are refunded

A failed call is never charged. Generating takes 15 to 60 seconds, so give your client a long timeout and do not retry on a timeout: a retry is a second call.

Settings