Never bet on
one model.
Bring the models you run yourself and every frontier provider into a managed gateway, with observability and access control built in.
- OpenAI
- Anthropic
- xAI
- DeepSeek
- Groq
- Moonshot
- Qwen
- Ollama
One URL, any SDK.
Change your baseURL to https://gateway.ngrok.ai and swap your API key.
That’s it. Start routing, not deploying infrastructure.
Privately connect to your self-hosted models.
Route to any local LLM reachable from your AI Gateway without wrangling public IPs or inbound ports. Keep it on private connectivity, same as any other model.
Read the local model guideBring the keys you’re already paying for.
Use your own key with every provider we support, including OpenAI, Anthropic, Google, xAI, Groq, and DeepSeek, plus any custom provider. You pay them directly at your current rates. Keys stay on the gateway, never in your app, and extra keys for a provider take over when one hits a rate limit.
Learn how BYOK worksDecide who or what gets access.
Give each app or developer separate access keys, then set which providers and models it’s allowed to call. No more passing around one key that opens everything.
See how scoped keys workSee every call, know exactly what it costs.
Provider dashboards show what you spent, not which app, dev, or model spent it. See tokens, latency, and errors rolled up across every call you route.
See what you can measureSmart defaults. Open levers.
Get started instantly. Light up advanced features without ever re-instrumenting your app.
Reroute before users notice
When a model or key slows or fails, requests reroute to a healthy alternative you've defined. Users never notice.
Retry without the code
When a request fails, we retry it instantly. Apps keep running without handling errors on your end.
Fully programmable
Manage keys, providers, and settings through the AI Gateway API, with a public OpenAPI spec. Call it from your coding agent, CLI, or custom tooling.
$0.05 per million tokens.
One fee on every model and provider, plus the cost of your inference.
See pricing- Tokens routed
- 250,000,000
- Rate
- $0.05 / 1M
- Inference
- billed separately
Gateway fee
Thanks for routing
Bring your security team.
Our SOC 2 report, DPA, subprocessor list, and penetration test summary live in the ngrok Trust Center.
Move fast & make things.
Build with the gateway that works with every model you use.
Even the ones you run yourself.