Compatible APIs
Choose the endpoint your SDK or client already uses:
Anthropic-style clients add
/v1/messages to the base URL themselves, so their base URL ends at /inference.
For client setup, see OpenAI compatibility, Anthropic compatibility, or the Responses API.
Call the API
Send your Fireworks key and any model ID:auto works the same way on all three APIs. For Nexus Auto examples in cURL and the OpenAI, Anthropic, and Fireworks SDKs, see Nexus Auto.
For a Nexus Auto request, the response model field names the model that served the turn, such as glm-5p3 or claude-opus-5-5, not auto.
Credentials
In every SDK,
api_key is the Fireworks key. Pass provider keys as extra headers, as shown in Nexus Auto.
Limitations
- With US data residency, send requests to
us.api.fireworks.ai. Sendauto, which is mapped to a US twin for you, or name a US-only model ID such asglm-5p3-us. Other Fireworks model IDs are rejected. Anthropic, OpenAI, and Amazon Bedrock calls follow the region you configured with that provider, not this setting. US is the only region Nexus supports; other regions must pin a model served in that region. - Without an Anthropic or OpenAI credential,
autouses Fireworks open models.
Troubleshooting
401: the Fireworks key is missing or invalid. Send a validfw_...key withAuthorization: BearerorX-Fireworks-Api-Key.404Model id not found: the model ID is unknown, or the account can’t use this router. Check the model ID and your account’s access.400no_credential: the closed model you named has no provider key. Connect Provider Keys where available. For Anthropic or OpenAI, you can instead send the provider header.
See also
- Nexus Auto
- Provider Keys
- Effort
- Routers load-balance traffic across your own Fireworks deployments. They are separate from
auto, the Nexus Auto model ID.