Skip to main content
The proxy forwards your request to the provider and hands you back the provider’s own response. It does not rewrite your payload, does not change the shape of the reply, and does not hold back the stream, so streaming works as it does when you call the provider directly. ANY /proxy/:provider/* Everything after the provider name is passed through as the upstream path, so any endpoint your SDK calls works without Navige adding support for it, including endpoints released after this page was written.

Providers

  • openai → api.openai.com
  • anthropic → api.anthropic.com
  • google (alias gemini) → generativelanguage.googleapis.com
  • xai (alias grok) → api.x.ai
  • bedrock → AWS, which authenticates differently; see below.
  • groq → api.groq.com
  • together → api.together.xyz
  • mistral → api.mistral.ai
  • fireworks → api.fireworks.ai
  • deepseek → api.deepseek.com
  • perplexity → api.perplexity.ai
  • cerebras → api.cerebras.ai
  • openrouter → openrouter.ai/api
  • deepinfra → api.deepinfra.com
  • novita → api.novita.ai
OpenRouter is the one provider whose cost Navige does not calculate. OpenRouter is the merchant of record (it buys the inference and bills you), so its response carries usage.cost: what the call actually cost, not a published rate multiplied by a token count. Navige records that figure as it stands, marked reported rather than computed, and applies no price of its own. This needs no catalogue entry, no daily cost sync and no invoice to check against, and it works for a model that has never had a listed price. OpenRouter sends usage.cost by default, so you do not need to change your request. That also means it works on routes where Navige may not touch the request body, including Claude Code. Nine of these providers (groq, together, mistral, fireworks, deepseek, perplexity, cerebras, deepinfra and novita) speak the OpenAI wire format, so an OpenAI SDK pointed at /proxy/<name>/v1 works unchanged. They are measured, not reconciled: Navige records what every call cost from the published per-token price. Checking that figure against the provider’s own bill works only for Anthropic, OpenAI and Bedrock, which report actual spend through an API. Google and xAI do not, so their calls are measured but not reconciled either. If two hosts disagree about a model’s price, its calls are shown with their real token counts and no cost, rather than one host’s price applied to another host’s calls. An unknown provider name returns a 404. Navige does not forward the request to wherever the path pointed.

Credentials

Two keys travel with the request, and they never share a header.
  • Your provider key goes where that provider’s SDK already puts it: Authorization: Bearer for OpenAI and xAI, x-api-key for Anthropic, x-goog-api-key for Google. It is forwarded untouched and never stored.
  • Your Navige key goes in x-navige-key.
Do not put the Navige key in Authorization on the proxy. That header belongs to the provider. A Navige key there would fail to authenticate and would send your Navige credential to OpenAI. The separate x-navige-key header keeps the two apart.

Examples

OpenAI

Anthropic

Gemini

Bedrock

AWS signs requests rather than carrying a bearer token, so Bedrock is configured from the console. You give Navige a role to assume, under an external id it generates, and nothing of yours is held as a long-lived secret.

The OpenAI-shaped endpoints

There are also /v1/chat/completions and /v1/messages at the root, for clients that will not let you put a path segment in the base URL. They behave the same; the provider is inferred from the request.

What gets recorded

  • Model, token counts in and out, and cached input counted separately from fresh.
  • Cost at that model’s rate, or unknown if there is no price for it, never zero.
  • Latency, and whether the upstream call failed.
  • The task, if you sent a correlation header.
Navige records usage and metadata, not your prompt and completion text.

Claude Code

Claude Code is a first-class caller on this route, with its own setup and limits. See Claude Code.

Large requests

The body limit is well above Fastify’s default of 1 MiB, which would cap long-context agents, so requests from a full-context coding agent pass through.