This quickstart uses AI Gateway API Keys with ngrok-managed credits. If you’d rather bring your own OpenAI, Anthropic, or other provider keys, see Bring Your Own Keys.
Before you start
You’ll need an ngrok account on the Pay-as-you-go plan.Create an AI Gateway
Open the New AI Gateway form. Enter a URL for your endpoint (for example,
https://your-ai-gateway.ngrok.app) and click Create & Configure.Purchase Credits
Purchase at least $5.00 in credits. Credits are required to use AI Gateway API Keys.
Create an API Key
On your gateway’s detail page, go to the API Keys tab and click New API Key. Copy the key immediately—it’s only shown once.
Next steps
- AI Gateway API Keys: Understand how keys work and manage them
- Credits: How usage is billed
- Manual Setup Guide: Create endpoints via CLI, API, or Kubernetes
- SDK Integration: Connect with OpenAI, Anthropic, and other SDKs
- Bring Your Own Keys: Use your own provider API keys for more providers