A LITTLE MAGIC, IN YOUR CODE
API documentation Bring creativity to your app✧
Add SVG generation to your product with just a few lines of code.
Separate keysName, set expiration, and revoke anytime
Shared creditsEach generation costs 9 credits · Shared by web and API
Asynchronous generationSubmit, poll, download. Artwork is saved automatically.
My API keys
Each account supports up to 10 active keys. Full keys are shown only once, when created.
Loading keys…
Keys can spend credits and read artwork. Keep them in server environment variables, never in frontend code.
QUICK START
Your first SVG starts here
Store the key in the MOMOVECTOR_API_KEY environment variable. For each new job, use uuidgen to generate and set MOMOVECTOR_REQUEST_ID; keep the same value for retries.
1. Submit a generation
curl 'https://momovector.com/api/v1/generations' \
-H "Authorization: Bearer $MOMOVECTOR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $MOMOVECTOR_REQUEST_ID" \
-d '{"mode":"text","prompt":"A cute little orange cat","style":"playful"}'When you receive 202 , save job.id. Poll every 2–3 seconds:
2. Check job status
curl 'https://momovector.com/api/v1/generations/JOB_ID' \
-H "Authorization: Bearer $MOMOVECTOR_API_KEY"queued→running→completed
A status of completed means it is ready to download;failed means it failed and credits were refunded automatically.
3. Download SVG
curl 'https://momovector.com/api/v1/generations/JOB_ID/file' \
-H "Authorization: Bearer $MOMOVECTOR_API_KEY" \
--output artwork.svg