Get your Helicone API key
- Sign up for Helicone (free account)
- Navigate to API Keys
- Click Create API Key
- Copy your key and save it as
HELICONE_API_KEYin your environment
Your Helicone API key is all you need - no provider API keys required when using credits.
Install the OpenAI SDK
The gateway uses the OpenAI SDK format, so install it if you haven’t already:
View your request in the dashboard
Within seconds, your request appears in the Helicone Dashboard:
- See the full request and response
- Track costs and token usage
- Monitor latency and performance
- Add custom metadata and properties
Try Different Models
The gateway supports 100+ models. Just change the model name:Using Your Own API Keys (BYOK)
Want to use your own provider API keys instead of credits?Add your provider keys
- Go to Provider Settings
- Select your provider (OpenAI, Anthropic, etc.)
- Add your API key
- Save
When you provide your own keys, the gateway tries them first. If they fail, it automatically falls back to Helicone’s managed keys (credits) for reliability.
Common Use Cases
Streaming Responses
The gateway fully supports streaming:Multi-provider Access
Switch providers by specifying them in the model string:Automatic Fallbacks
Specify fallback chains for maximum reliability:Next Steps
Provider Routing
Learn how the gateway intelligently routes requests
Automatic Fallbacks
Build resilient apps with provider failover
Prompt Management
Deploy prompts without code changes
Advanced Features
Explore caching, rate limits, and security
Troubleshooting
Authentication failed (401)
Authentication failed (401)
- Check that you’re using your Helicone API key, not an OpenAI key
- Verify the key is set correctly in your environment:
echo $HELICONE_API_KEY - Generate a new key at API Keys
Model not found
Model not found
- Check the Model Registry for correct model names
- Model names are case-sensitive: use
gpt-4o-mininotGPT-4o-mini - Some models require BYOK (e.g., Azure-specific deployments)
Request not showing in dashboard
Request not showing in dashboard
- Requests appear within 2-3 seconds (check for errors in your code)
- Verify you’re using
https://ai-gateway.helicone.aias the base URL - Check you’re logged into the correct Helicone account
Insufficient credits error
Insufficient credits error
- Add credits at Billing Settings
- Or add your provider API keys at Provider Settings