Skip to content
VectorMojo

Docs

API quick start

One request makes a design. Every call returns a job. Add "sync": true to wait for the finished design in the same response.

Base URL

https://api.vectormojo.com/api

Every path in these docs starts with /v1/ and goes after this base URL. The base URL is not final. It will change before launch; the paths will not.

Requests and responses are JSON, except export and the SVG and PNG files, which return the file itself.

1. Get an API key

Sign in to the studio and open API keys. Create a key and copy it at once: VectorMojo shows the full key only once. Keep it in an environment variable, here BRUSH_API_KEY. More in Authentication.

2. Generate a design

curl https://api.vectormojo.com/api/v1/generate \
  -H "Authorization: Bearer $BRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "brush-1.0",
    "prompt": "A funnel with four stages, top to bottom.",
    "labels": ["Awareness", "Consideration", "Conversion", "Loyalty"],
    "aspect": "16:10",
    "sync": true
  }'

With "sync": true the response holds the job and the finished design:

HTTP/1.1 202 Accepted

{
  "job": {
    "id": "6745c0a1e4b0c2a9d1f3b7e2",
    "type": "generate",
    "status": "completed",
    "model": "brush-1.0",
    "credits": 20,
    "design_id": "6745c0a1e4b0c2a9d1f3b7e3",
    "version": 1,
    "created_at": "2026-11-25T14:02:11.000Z",
    "finished_at": "2026-11-25T14:02:52.000Z"
  },
  "design": {
    "id": "6745c0a1e4b0c2a9d1f3b7e3",
    "title": "A funnel with four stages, top to bottom.",
    "width": 1200,
    "height": 750,
    "current_version": 1,
    "versions": [
      {
        "version": 1,
        "prompt": "A funnel with four stages, top to bottom.",
        "model": "brush-1.0",
        "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" ...><metadata id=\"brush-provenance\">...</metadata>...</svg>",
        "png_url": "/api/v1/files/6745c0b8e4b0c2a9d1f3b7e4",
        "checks": { "labels": "4/4", "text_checked": true, "looked": true },
        "created_at": "2026-11-25T14:02:52.000Z"
      }
    ],
    "created_at": "2026-11-25T14:02:52.000Z",
    "updated_at": "2026-11-25T14:02:52.000Z"
  }
}
  • versions[].svg is the design. Its text is live and editable.
  • png_url is a preview. Fetch it with the same key (see PNG preview).
  • credits on the job is what it costs. Prices per model: brush-1.0-lite 5 credits, brush-1.0 20 credits, brush-1.0-pro 40 credits. See Models and prices.

3. Or poll the job

Leave out sync and you get the job back at once, with status pending. Ask for it until it is completed or failed:

curl https://api.vectormojo.com/api/v1/jobs/6745c0a1e4b0c2a9d1f3b7e2 \
  -H "Authorization: Bearer $BRUSH_API_KEY"

Details in Generate.

4. Edit and export

POST /v1/edit takes a design_id and one instruction, such as "make step 3 red", and saves a new version (Edit). POST /v1/export returns one version as an SVG, PNG, WebP or PDF file. Exports are free (Export).

All endpoints

CallWhat it does
POST /v1/generateMake a new design from a prompt, an image, or both. Returns a job.
POST /v1/editChange a design with one instruction. Returns a job; the result is a new version.
POST /v1/exportGet one version as an SVG, PNG, WebP or PDF file. Free.
GET /v1/jobs/:idStatus, result or error of a generate or edit job.
GET /v1/designsYour designs, most recently changed first.
GET /v1/designs/:idOne design with all its versions and their SVG.
GET /v1/designs/:id/versions/:v/svgThe SVG file of one version.
GET /v1/files/:idA stored PNG preview (the png_url of a version).
GET /v1/creditsYour credit balance.
GET /v1/credits/ledgerEvery credit added, used and refunded, newest first.
GET /v1/usageJobs and credits per day and per model.
GET /v1/accountWho is calling, and the balance.
GET /v1/brandsYour saved brand styles. Also POST, GET /:id, PUT or PATCH /:id, DELETE /:id.
GET /v1/modelsThe models on sale, with prices in credits. No key needed.

Using a chat client instead of code? Connect the MCP server: same designs, same credits.

Designs are AI-generated. Outputs can contain factual mistakes, so review every design before you use it.