Native Mode
Use any provider’s SDK as-is, pointed at your gateway
Native mode is the simplest way to integrate with Enterprise Router. You keep using your existing provider SDK — OpenAI, Anthropic, or Google — and just change the base URL and API key. Everything else stays the same.
How it works
Your SDK sends requests to Enterprise Router instead of directly to the provider. The gateway:
- Authenticates your proxy key
- Enforces your access policies (rate limits, budgets, IP allowlists, model restrictions)
- Replaces your proxy key with the real provider credential
- Forwards the request to the provider unmodified
- Streams the response back to you
- Logs the request and tracks cost
Because the request is forwarded verbatim, every feature of the provider’s API works: streaming, function calling, tool use, vision, JSON mode, and anything new they add.
Provider base URLs
Authentication
Pass your Enterprise Router proxy key where the SDK expects the provider’s API key:
- OpenAI SDK:
api_key="sk-proxy-..."(sent asAuthorization: Bearer) - Anthropic SDK:
api_key="sk-proxy-..."(sent asx-api-key) - Gemini SDK / REST: send as
x-goog-api-keyheader or in thekeyparameter
The gateway strips your proxy key, validates it, and replaces it with the real provider API key before forwarding.
What changes in your code
Exactly two things:
- API key → your
sk-proxy-...proxy key - Base URL → your gateway URL with the provider path
Nothing else changes. Your prompts, parameters, streaming logic, error handling, and response parsing all stay the same.
Next steps
- OpenAI integration guide — Python and TypeScript examples
- Anthropic integration guide — Python and TypeScript examples
- Gemini integration guide — Python and TypeScript examples