X-API-Key: crl_sk_live_… works identically if your tooling prefers it.
Creating a key
Owners and admins create keys in the studio under Settings → API.Anatomy
crl_sk_live_
Marks the string as a Creatorline secret key so secret scanners and log scrubbers can
spot a leak. If one of these ever lands in a public repository, revoke it immediately.
12 chars
Public. It is what identifies the key in the dashboard (
crl_sk_live_a7F3k2p9QxZm…4f2c)
and in our logs — safe to quote in a support conversation.32 chars
190 bits of randomness, never stored. We keep only a keyed hash.
6 chars
A checksum over everything before it. A mistyped or forged key is rejected instantly,
without a database lookup.
Scopes
read
Every
GET, plus cost estimates. Cannot spend a single credit. Use this for CI and
for anything that only reads.write
Everything above, plus starting generations, uploading media, and publishing posts.
read key that attempts a write gets a 403 naming the problem, not a mysterious
failure:
Rotation and revocation
Revoking is immediate — the next request with that key gets a401. The key’s row
survives so your usage history and audit trail keep resolving.
To rotate without downtime: create the new key, deploy it, then revoke the old one. A key
can also be given an expiry at creation, which is the right choice for a short-lived job.
Rate limits
120 requests per minute per key. Every response carries the state of your window:
On a
429, honour Retry-After. Generation is separately gated by your credit balance,
which is usually the limit you will meet first.
Keeping keys safe
1
Server-side only
A key can spend your organization’s credits and publish to your creators’ accounts.
Never ship one to a browser, a mobile app, or anything a user can read.
2
Environment, not source
CREATORLINE_API_KEY in your environment or secret manager. Never in a repository,
never in a URL query string.3
One key per consumer
A key per service, per environment, per developer machine. Then revoking one is a
non-event instead of an outage, and the usage counters tell you who is spending what.