ngrok's AI Gateway can now route to a model running on your own hardware, privately, without opening a port or putting it on the public internet.
To your app, that self-hosted model is just another entry in your fallback list, right next to OpenAI and Anthropic. Fine-tuned, open-weight, or just cheaper on hardware you already own, and the data those models see never leaves your network.
That's the part no other gateway does. The rest is what you'd expect: one hosted gateway in front of every model your apps call, your own and the public providers alike, behind a single URL. We've spent a decade routing traffic into private networks, so pointing a gateway at a model on your own hardware is the natural next step, and the piece only ngrok can ship.
From that same baseUrl (https://gateway.ngrok.ai) you also get:
→ routing and failover that reroutes a slow or failing model to a healthy one, with automatic retries, before users notice
→ scoped access keys, so each app only reaches the providers and models you allow
→ observability that breaks tokens, latency, errors, and spend down by app, dev, and model, instead of one lump sum on a provider invoice
→ bring-your-own-keys, so you keep your negotiated rates and pay providers directly
It works with the SDKs you already use (OpenAI, Anthropic, Vercel AI SDK) and it's fully programmable through our API, so you can drive it from Terraform, a CLI, or your coding agent.
One flat fee: $0.05 per million tokens, inference billed on top. Buy credits, no subscription.
Start building → https://app.ngrok.ai
Full-story blog post and docs in the comments ↓