Prerequisites
- A running LiteLLM Proxy configured for Fireworks (see LiteLLM integration)
- A Fireworks API key (
fw_...) - An Anthropic API key (
sk-ant-...) for pass-through
Add FireRouter to config.yaml
litellm_params.model. LiteLLM rewrites short names like fireworks_ai/firerouter to accounts/fireworks/models/firerouter, which FireRouter does not recognize.
Set ANTHROPIC_API_KEY on the LiteLLM server so pass-through requests include x-anthropic-api-key automatically. Developers do not need to send the Anthropic key on each request when it is configured here.
A server-side Anthropic key is shared across all callers of that proxy deployment. If each developer should bring their own Anthropic key, omit
extra_headers and have clients send x-anthropic-api-key on each request instead (see below).Call FireRouter
Clients authenticate to LiteLLM with a virtual key:1–5.
Per-developer Anthropic keys
If each caller should use their own Anthropic key, omitextra_headers from the model config and have clients send the header on every request:
accounts/fireworks/routers/firerouter model group if your LiteLLM version does not forward x- headers by default.
API key layout
Related
- LiteLLM integration: configure Fireworks models in LiteLLM Proxy
- Quickstart: direct API call examples
- Authentication: header reference
- Routing preferences: tune cost vs. quality