Accepted headers
If you send more than one,
Authorization wins.
Key format and scope
- Keys are prefixed
sk-and are created per account, not per model. - A key inherits the group and quota you set when creating it, plus optional expiry and model allow-list.
- Keys are shown in the console; treat them like passwords. Rotate immediately if one leaks — see API keys.
What is not an API key
- Your console session cookie (browser login) is not valid on
/v1/*. - A provider key (OpenAI, Anthropic, Google) cannot be used against Triw. Only Triw keys are accepted.
Failure behavior
A missing, malformed, expired, disabled or over-quota key returns HTTP401 or 403 with code set to invalid_api_key or insufficient_user_quota. Full table: Errors. Route list per protocol: Endpoints.
