Skip to main content
Gateways integrate with Fireworks in two ways. Some connect to your Fireworks account and preserve Fireworks model IDs. Others expose selected Fireworks models through a gateway-managed catalog.

Check whether your gateway can use Nexus Auto

To call auto, your gateway must:
  1. Connect to your Fireworks account.
  2. Send the auto model ID unchanged.
  3. Send your Fireworks API key.
  4. Provide an Anthropic or OpenAI credential if you want one of those models.
A gateway-managed catalog can use Nexus Auto only when that catalog lists auto. Fireworks serving some of the catalog’s models does not make auto available.

Connect your Fireworks account

Use a gateway-managed model catalog

These gateways expose their own model catalogs. Fireworks may serve a request, but you are not connecting an arbitrary Fireworks model ID.

LiteLLM Proxy

Use LiteLLM as a shared gateway for Fireworks serverless models, Nexus Auto, and deployments. Developers call one OpenAI-compatible chat completions API. LiteLLM manages the Fireworks connection and client access. Closed-model credentials can come from Fireworks Provider Keys, when enabled for the account, or from forwarded client headers.

Prerequisites

Configure a Fireworks model

Add each model you want to expose to config.yaml. Keep the client-facing model_name short. In litellm_params.model, use fireworks_ai/ followed by the full Fireworks path: Recent LiteLLM versions expand a short ID to accounts/fireworks/models/<id>, so a short router ID such as fireworks_ai/auto returns 404 Model not found. The full path works on every version.
See the LiteLLM Fireworks AI provider docs for dedicated deployments and other options.

Start the proxy

Call a model

If LiteLLM virtual keys are configured, clients authenticate with a virtual key:

API key layout

Use Nexus Auto through a gateway

The gateway sends the auto model ID and your Fireworks API key to Fireworks. You do not need Nexus CLI. For supported models, see Nexus Auto.

Set up Nexus Auto in LiteLLM or Portkey

Nexus Auto entries for LiteLLM, the Portkey model format, and a test request.

Provide closed-model credentials

auto picks its closed model from your credentials:
  • With an Anthropic credential, it uses Claude Opus.
  • With an OpenAI credential, it uses GPT Sol.
  • With both, it uses Claude Opus for Chat Completions and GPT Sol for Responses API requests.
  • With neither, it uses Kimi K3 and the open-model mix.
An Amazon Bedrock Provider Key covers a closed model you mapped there. You do not need to pass provider keys from each client or harness. Store them in the gateway once, or connect them as Provider Keys:
An account admin connects the required Provider Keys once from Settings. The gateway stores only the Fireworks key. No provider credential passes through the gateway.
Provider Keys is not yet available on every account. If Provider Keys does not appear in Settings, contact the Fireworks team to enable it. Self-serve setup is coming soon.
A provider-key header sent with a request takes precedence over a Provider Key connected to the account.
Gateways often log request headers. If provider keys travel as headers, whether added by the gateway or sent by clients, check that the gateway redacts them in its logs. Provider Keys keeps provider credentials out of the gateway entirely.
LiteLLM returns your model_name in the response model field, not the model that served the turn. To confirm that closed models are reachable, send a request directly to Fireworks as shown in Check which model served a turn. For direct API calls, see APIs and SDKs.