Skip to content
VectorMojo

Docs

Authentication

Every call except GET /v1/models needs an API key. Send it in a header.

Send the key

Use either header. Both work on every route.

HeaderValue
AuthorizationBearer brush_live_…
x-api-keybrush_live_…
curl https://api.vectormojo.com/api/v1/jobs/6745c0a1e4b0c2a9d1f3b7e2 \
  -H "Authorization: Bearer $BRUSH_API_KEY"
curl https://api.vectormojo.com/api/v1/credits \
  -H "x-api-key: $BRUSH_API_KEY"
  • If you send both headers, VectorMojo uses x-api-key.
  • A key that is wrong or revoked gets 401 unauthorized at once. VectorMojo does not try another way in.
  • No key at all also gets 401 unauthorized.

What a key looks like

brush_live_ followed by 40 lowercase hex characters. Treat it like a password: keep it on your server or in an environment variable, never in a web page or an app you ship to users.

Make a key

  1. Sign in to the studio.
  2. Open API keys and create a key. You can give it a name of up to 60 characters.
  3. Copy the key now. VectorMojo shows the full key only once. It keeps only a hash of it, so it cannot show it again.

Later the studio shows each key by its start (brush_live_ and the first 12 characters), its name, when it was made and when it was last used. An account can hold 10 keys at a time; revoke one to make room.

Keys are managed only in the studio, while signed in. The key routes refuse a call made with an API key (403 forbidden), so one leaked key cannot make more keys.

Revoke a key

In the studio, open API keys and revoke it. From then on every call with that key gets 401 unauthorized. Designs and credits stay with your account.

Failed sign-ins

Too many calls with a bad key from one IP address in one minute block that address until the minute ends (429 rate_limited, with a Retry-After header). See Rate limits.

People, not scripts?

For a chat client, use the MCP server: you sign in in the browser and there is no key to copy. The MCP server also accepts an API key, for scripts.

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