Required keys
The default
firerouter model uses Claude Opus 5 as its primary model, so every request requires an Anthropic key. FireRouter fails closed when the primary model’s credential is missing; it does not silently restrict the route to Fireworks models.
For a model-specific FireRouter slug, the first model’s credential is required. Later models are eligible only when their credentials are present. Slugs that contain only Fireworks models need no additional provider key beyond the Fireworks API key.
Fireworks key header
Send your Fireworks API key with either header:X-FireRouter-Fireworks-Key is also accepted. New integrations should prefer X-Fireworks-Api-Key.
Anthropic provider key
The canonical header for Anthropic pass-through is:x-api-key and Authorization: Bearer are also accepted for Anthropic clients that send credentials that way. For new integrations, prefer x-anthropic-api-key.
Example:
OpenAI provider key
When the selected FireRouter slug includes an OpenAI model, send your OpenAI API key as:api_key field. That field supplies the Authorization header used to authenticate to the Fireworks gateway, so it must contain your Fireworks API key. Pass the OpenAI provider key as a custom header:
Common errors
Related
- Quickstart: API call examples
- Claude Code (manual setup):
settings.jsonsetup - Overview: routing model and model ID