An account can hold up to 10 active keys, each with a name of your choosing. They are
interchangeable — same balance, same models, same limits — so the reason to hold more than
one is separation: give each app, environment or teammate its own, and you can retire that
one without touching anything else.The dashboard shows spend, requests and tokens per key, so you can see which app is
costing what. Rate limits are per account, not per key, so splitting traffic across keys
does not raise your throughput.
Never embed a key in client-side code, a mobile app, or a public repository. Anyone with
the key can spend against your account. Call the API from your backend and keep the key in
a server-side secret or environment variable.
Rotate a key immediately if it may have leaked — rotating replaces the secret in
place, keeping the key’s name and leaving your other keys working.
Environment variables (e.g. PRIMALABS_API_KEY) keep keys out of source control.
A missing or invalid key returns 401; a key that cannot access the
requested model returns 403.