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 Nexus Auto requests to
us.api.fireworks.ai. Open-model turns run on US-only Serverless. 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.