Today, ngrok.ai inference supports built-in OpenAI and Anthropic models. Other supported providers may be added over time. For providers that require your own credentials, bring your own provider key.
What you’ll need
- An ngrok account.
- An access key from app.ngrok.ai.
- Credits in your AI Gateway account.
Create an access key
Create an access key in app.ngrok.ai. Use this key as the API key in your SDK. The access key authenticates your application to the gateway. It is different from a provider key, which authenticates the gateway to an upstream provider.Call a supported OpenAI model
Call a supported Anthropic model
How billing works
For supported ngrok.ai inference requests, credits cover:- The upstream model cost.
- The AI Gateway processing fee.
When to bring your own key instead
Bring your own provider key when:- You already have a provider account.
- You want usage billed directly by the provider.
- You have negotiated provider pricing.
- You need a provider or model that requires your own credentials.
Next steps
- Credits: Learn how credits work
- Choose a model: Choose model IDs and provider-qualified models
- Bring your own provider key: Use your own upstream provider credentials