Managed keys setup
No OpenAI account needed. Follow the quickstart to create your gateway and API key, then point your SDK at the gateway:Bring your own key
Use your own OpenAI API key. Pass it directly—the gateway forwards it to OpenAI.Create an AI Gateway
If you don’t have one yet, follow the quickstart to create your AI Gateway endpoint.
Get an OpenAI API key
Create an account at platform.openai.com and generate an API key. Keys start with
sk-proj-.Store key in the gateway
Instead of each client passing their own key, you can store it once in ngrok Secrets and have the gateway inject it automatically.Store your key in ngrok secrets
Explicit provider routing
Use theopenai: prefix to force routing to OpenAI specifically:
Available models
See the model catalog for the full list of supported models and their context windows.Next steps
- AI Gateway API Keys: use ngrok-managed keys for the simplest setup
- Managing Provider Keys: key rotation and multiple keys
- Multi-provider failover: automatic failover to other providers