ngrok AI Gateway Review, Pricing & Features

ngrok AI Gateway routes LLM traffic to cloud or local models via one base URL, with failover, access keys and cost logs for $0.05 per million tokens.

Researched and fact-checked by Bartu Cavusoglu · Updated November 29, 2026

Category
AI
Pricing
Usage-based, from $0.05 per 1M tokens
Verified
Not yet
Last updated
November 29, 2026
Usage-Based PricingAPIAICloudLLM

ngrok AI Gateway is a hosted gateway for large language model traffic from ngrok. Instead of wiring an application directly to one model provider, developers point their existing SDK at a single base URL and the gateway routes each request to the right model, whether that is a frontier provider, a provider account they already pay for, or a model running on their own hardware. Its tagline, never bet on one model, sums up the goal: keep AI products online and portable as models and providers change.

It is built for developers and engineering teams shipping AI features, chat products or coding agents that depend on more than one model provider, as well as teams that want central control over which models their apps and developers can use.

Getting started is a base URL swap. OpenAI-format clients, including the OpenAI SDK and Vercel AI SDK, point to gateway.ngrok.ai/v1, while Anthropic-format clients point to gateway.ngrok.ai, and both authenticate with an ngrok.ai access key. Documented guides cover the OpenAI SDK, Anthropic SDK, Vercel AI SDK, TanStack AI and LangChain. Providers can be reached three ways: with ngrok-managed keys billed from prepaid credits, with your own provider keys billed by the provider directly, or with a self-hosted model registered as a custom provider. Provider guides cover OpenAI, Anthropic, Google, Groq, DeepSeek, OpenRouter and others.

Key capabilities start with routing. A plain model ID lets the gateway choose the provider, while a provider:model value forces a specific one. Failover lets you list fallback models so a request moves on when a model or key fails, times out or is rate limited. Virtual models map one name to an ordered list of models, so you can switch models without touching code. Local models are supported through Ollama, LM Studio, vLLM or any OpenAI-compatible server, including machines with no public IP that connect through a private ngrok endpoint. For security, scoped access keys limit which providers and models each app can call, and an AI Firewall, currently in early release, checks what agents send to a model and blocks risky tool calls before they run. Every request is logged with tokens, latency, errors and cost in the console and through a usage API.

Pricing is usage-based. The gateway charges a flat $0.05 per million tokens on every model and provider, including models you run yourself, and upstream inference is billed separately. Credits are prepaid, with a minimum purchase of $5, a maximum balance of $500 and a one-year expiry. There is no subscription or commitment and no ngrok plan is required; any ngrok account can buy credits. Even with your own provider keys, the gateway fee is drawn from credits, and requests are rejected with a 402 error when credits run out unless auto top-up is on. As an example from the pricing page, routing 250 million tokens costs about $12.50 a month in gateway fees.

There are limitations to consider. Because every request must have credits behind it, teams need to keep a balance topped up even when using their own keys. The $500 balance cap and one-year credit expiry may be awkward for high-volume users, who are pointed to sales for enterprise terms. The AI Firewall is still in early release, and dedicated inference for open-weight models is listed as coming soon. Adding a gateway also introduces another service in the request path that teams must trust and monitor.

Key Features

Pros & Cons

Pros

  • Flat $0.05 per million tokens fee regardless of model or provider
  • Integration is a base URL swap for OpenAI-format and Anthropic-format SDKs
  • Failover and virtual models make it easy to switch or back up models without code changes
  • Supports self-hosted models, even on machines without a public IP
  • Prepaid credits with no subscription or ngrok plan required
  • Per-request logging of tokens, latency, errors and cost

Cons

  • Credits are required for the gateway fee even when using your own provider keys
  • Credit balance is capped at $500 and credits expire after one year
  • AI Firewall is in early release and dedicated inference is not yet available
  • Adds an extra hosted service to the request path between your app and the model

Related Tools

More AI tools

All AI tools