Overview
Helicone AI Gateway works seamlessly with popular AI frameworks, SDKs, and development tools. Simply change thebaseURL to start using the gateway with your existing code.
AI Frameworks
LangChain
- TypeScript
- Python
LlamaIndex
LangGraph
Vercel AI SDK
Semantic Kernel
- C#
- Python
CrewAI
Native SDKs
OpenAI SDK
- TypeScript
- Python
Anthropic SDK
- TypeScript
- Python
Google Generative AI
Development Tools
Open WebUI
Configure Open WebUI to use Helicone AI Gateway:Dify
Configure Dify to use Helicone:- Go to Settings → Model Provider
- Add OpenAI provider:
- API Endpoint:
https://ai-gateway.helicone.ai - API Key: Your Helicone API key
- API Endpoint:
- Select models to use
Cursor IDE
Configure Cursor to use Helicone AI Gateway:- Open Cursor Settings
- Navigate to Features → AI
- Set:
- API Base URL:
https://ai-gateway.helicone.ai - API Key: Your Helicone API key
- API Base URL:
Analytics & Monitoring
PostHog
Export Helicone data to PostHog for custom dashboards:Custom Analytics
Query Helicone data via API:Testing & Evaluation
RAGAS
Evaluate RAG pipelines with Helicone tracking:HTTP Clients
cURL
Axios (TypeScript)
Requests (Python)
Best Practices
Use Environment Variables
Use Environment Variables
Always store API keys in environment variables:Never commit API keys to version control.
Configure Fallbacks
Configure Fallbacks
Add fallbacks for production reliability:
Monitor Usage
Monitor Usage
Track usage in the Helicone dashboard:
- Request volume
- Cost by provider
- Error rates
- Latency metrics
Use BYOK for Cost Control
Use BYOK for Cost Control
Configure provider keys for:
- Direct provider billing
- Better cost control
- Priority routing
Framework-Specific Features
Streaming Support
All frameworks support streaming:Async/Await
All SDKs support async/await:Error Handling
Standard error handling works across all integrations:Migration Guide
From OpenAI Direct
From Anthropic Direct
From OpenRouter
Next Steps
Getting Started
Start using the AI Gateway
Routing
Learn about provider routing
Fallbacks
Configure automatic failover
Browse Models
Explore 300+ available models
