SVG engine
Quickstart
Your first SVG in about sixty seconds.
1. Get a key
Sign in at amnt.io, open Settings, and create an API
key. It starts with amnt_sk_.
2. Call it
curl -X POST https://www.amnt.io/api/v1/svg/generate \
-H "Authorization: Bearer amnt_sk_..." \
-H "Content-Type: application/json" \
-d '{
"prompt": "a fox mascot head, flat colours",
"style": "flat",
"formats": ["png"]
}'3. Read the reply
{
"svg": "<svg ...>",
"url": "https://www.amnt.io/s/abc123.svg",
"files": { "png": "https://www.amnt.io/s/abc123.png" },
"width": 1024,
"height": 1024,
"paths": 812,
"colors": 24,
"bytes": 231904,
"layers": [{ "id": "hat", "fill": ["#181615"] }],
"score": 0.97,
"cost_usd": 0.03,
"ms": 14200
}score is the fidelity number for this one output, measured by rendering the
result back and comparing it to the source. A machine buyer can gate on it;
a low score triggers an automatic re-run before you ever see it.
Convert something you already have
Same endpoint family, different verb, an image instead of a prompt:
curl -X POST https://www.amnt.io/api/v1/svg/vectorize \
-H "Authorization: Bearer amnt_sk_..." \
-H "Content-Type: application/json" \
-d '{ "image": "https://example.com/logo.png", "detail": "high" }'image takes an https URL, a data URI, or bare base64, up to 10 MB.
Validation happens before anything is charged. A bad option, a missing prompt or an unreachable image returns 400 and costs nothing.
Next
- Every option, with its default
- Every export format
- Prices on both rails