[DOCS]

Authentication

POST /v1/chat/completionsauthenticates with your account's API key in the Authorization header, following the same convention as OpenAI; SDKs handle it automatically via apiKey. GET /v1/models is public and requires no key.

HEADER
curl https://blazeinference.com/v1/chat/completions \
  -H "Authorization: Bearer sk-blaze-..." \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "hi"}]}'

How keys work

FACTDETAIL
One key per accountDead simple: no orgs, no projects, no key juggling.
Formatsk-blaze-
Shown onceWe store only a hash. Copy the key at creation; it cannot be revealed again.
ReplaceA key can be replaced from the dashboard: a new key is issued and the previous key is deleted immediately.
Enable / disableOne switch on the dashboard. Disabled keys reject new requests instantly with api_key_disabled.

Failure modes

HTTPCODEWHEN
401missing_api_keyNo Authorization header.
401invalid_api_keyKey unknown or malformed.
403api_key_disabledKey toggled off on the dashboard.