Choose Your Integration
Option 1: Gateway Only (Quickest)
Just change your base URL:Option 2: SDK Only (Deep Tracing)
Wrap your client:Option 3: SDK + Gateway (Full Power)
Combine both:Common Patterns
Chat Application
RAG Application
Function Calling
Streaming
Both gateway and SDK support streaming:Error Handling
Cost Optimization
- Use gpt-4o-mini for simple tasks (20x cheaper)
- Enable caching for repeated queries
- Set max_tokens to limit output length
- Monitor in dashboard to identify expensive patterns