GET STARTED · BUILD WITH AI
Let your agent do the integration
Claude, Cursor, ChatGPT and Codex read these docs as well as you do. Give one of them this prompt and a test key, and review the code it writes.
The prompt
the same words as the VecSnap skill, so they never go staleAdd VecSnap to this project. VecSnap turns an image into a clean SVG.
1. Read https://vecsnap.com/docs/quickstart.md and the API at https://vecsnap.com/docs/api.md
(the OpenAPI document: https://api.vecsnap.com/v1/openapi).
2. Read the key from VECSNAP_API_KEY. Never write a key into code.
3. Call POST https://api.vecsnap.com/v1/vectorize with the image (multipart, field "file").
On 200 save files.web. On 202 wait for the webhook, or poll GET /v1/conversions/{id}.
With the official SDK (@vecsnap/sdk, or vecsnap for Python) vectorize() waits for you.
4. Send an Idempotency-Key on every POST. On 429 wait Retry-After seconds.
Branch on error.code, never on the message.
5. Use a vs_test_ key until the tests pass. It spends nothing.A key can only convert and spend credits.It can never make another key, add a webhook or delete your account, so a key an agent leaks costs at most its credits, and you revoke it in one click.