Authentication
Every proxy request needs two credentials. Makas-Api-Key carries the full regional mks_ token (52 ASCII characters: prefix plus 48 letters/digits). Send exactly one service header. The service does not accept the old service header or token format.
| Provider | Upstream credential |
|---|---|
| OpenAI | Authorization: Bearer $OPENAI_API_KEY |
| Anthropic | X-Api-Key: $ANTHROPIC_API_KEY, with anthropic-version: 2023-06-01 |
X-Goog-Api-Key: $GOOGLE_API_KEY |
Send MAKAS_API_KEY separately from the provider environment variable. Provider headers must never contain a Makas key. The proxy removes the Makas credential before forwarding upstream. Keep both secrets on your server; CORS support is not a reason to include them in a public browser bundle.
Management APIs use the authenticated dashboard session/JWT rather than proxy service authentication. Stored provider keys are disabled at launch, so supply the provider credential on each request.
EU and US have independent accounts, keys and data. The region selector updates the examples and Dashboard. A key from one region does not authenticate in the other. See a complete OpenAI, Anthropic or Google program.