PerfectVector

PerfectVector APIBeta

Image to SVG, in one API call

Send a PNG, JPEG or WebP image and get a clean, editable SVG back, from your server, your script or your automation tool.

  • Add image-to-SVG to your product or internal tools
  • Convert logos, icons and illustrations inside your own pipelines
  • Pay only for the conversions that succeed

From $0.08 per SVG · free test keys

  • Live conversion succeeded

    POST /v1/vectorizations · Idempotency-Key: logo-0001201 · "status": "succeeded"X-Credits-Charged: 1
  • Conversion failed

    POST /v1/vectorizations · Idempotency-Key: logo-0002"status": "failed"X-Credits-Charged: 0
  • Same request retried

    POST /v1/vectorizations · Idempotency-Key: logo-0001Idempotent-Replayed: trueX-Credits-Charged: 0
  • Test key, same request

    POST /v1/vectorizations · Bearer pv_test_…201 · test keyX-Credits-Would-Charge: 1

Why teams choose the PerfectVector API

Charged only on success
One API credit per SVG delivered. Failed and timed-out conversions, status checks and repeat downloads cost nothing.
A free test mode that behaves like live
Test keys run the same checks, limits and responses as live keys and return a sample SVG, so you finish the integration before you pay.
Safe to retry
Send an Idempotency-Key and a retried request returns the same conversion instead of running, or charging, twice.

Use cases

What you can build with the PerfectVector API

Build a new service on it, add it to the product you already run, or let it work inside your pipelines.

  • Launch a new service

    Sell products made from your customers' images.

    • Custom decals and cut files
    • Personalized engraving orders
    • Batch tools for shop sellers
    order.png → API → product.svg
  • Add it to your product

    Give your users a vector button, without building the engine.

    • Design and template editors
    • Print-on-demand and merch
    • Cutting-machine and sign software
    upload.png → API → editable.svg
  • Automate your pipeline

    Convert files as they arrive, with no one clicking.

    • Brand asset libraries
    • Agency and studio backlogs
    • No-code automation tools
    inbox/*.png → API → library/*.svg

Your coding agent can write the integration from the one-page API reference for agents. Open the reference for agents

See API pricing

Quickstart

From key to first SVG in minutes

  1. Create a test key

    Sign in, open the Developer API page of your account and create a key in test mode. It's free.

  2. Send an image

    POST it as multipart form data. Ask for image/svg+xml and the SVG comes back in the same call.

  3. Switch to a live key

    Buy a credit pack, swap in a live key, and you're converting real images. Nothing else changes.

curl https://api.perfectvector.com/v1/vectorizations \
  -H "Authorization: Bearer $PERFECTVECTOR_API_KEY" \
  -H "Idempotency-Key: logo-0001" \
  -H "Accept: image/svg+xml" \
  -F image=@logo.png \
  -o logo.svg

Full examples with polling and error handling are in the quickstart.

Pricing

Credit packs, not subscriptions

Buy once, use for 12 months. One API credit is one successful SVG.

  • Starter

    10 API credits

    Regular price $5, beta price $4

    $0.40 per SVG

  • Bulk 100

    100 API credits

    Regular price $20, beta price $16

    $0.16 per SVG

  • Bulk 1,000

    1,000 API credits

    Regular price $100, beta price $80

    $0.08 per SVG

Beta price, 20% off

See API pricing

Need 10,000 or more API credits? Talk to sales

API questions

Is the PerfectVector API available now?

Yes. It has been open to everyone as a public beta since November 3, 2026. Create a free test key to start building today.

What images can I convert?

PNG, JPEG and WebP images up to 5 MiB, each side between 100 and 4,096 pixels. Logos, icons and illustrations with clear shapes give the cleanest SVGs. Each request converts one image with standard settings.

How does pricing work?

A live conversion uses one API credit when it succeeds. You buy credits in one-time packs, with no subscription and no automatic top-up. Failed conversions, status checks and repeat downloads are free.

Can I try it before I pay?

Yes. Test keys are free and run the whole request, including key checks, file checks and rate limits, and return a sample SVG. When your integration works, switch to a live key.

Are API credits the same as website credits?

No. API credits are separate from the credits you use on the website and in AI assistants, and the two never convert into each other. Website plans include no API credits.

What happens to the images I send?

Your images and SVGs are available for 24 hours, then deleted from storage within 48 hours. You can delete a conversion at once through the API. Your images are never used to train AI models and never sold.

Should I use the API or PerfectVector MCP?

Use the API when your own software converts images, with an API key. Use PerfectVector MCP when you want to convert images by asking ChatGPT, Claude or another supported assistant, with no code.

Start building with a free test key

No cost until your integration works. Then one credit per SVG you actually get.