Vercel AI Gateway provides a unified endpoint to access multiple AI providers, automatic retries, and spend monitoring. By integrating with Helicone, you add comprehensive logging, analytics, and monitoring on top of these features.
The
@ai-sdk/gateway
integration (recommended) supports all Vercel AI Gateway features including provider failover ordering. Use this SDK if you need gateway-specific functionality.Quick Start
1
Set up environment variables
2
Install SDK
3
Route requests through Helicone
How it Works
- Your application sends requests to Helicone’s gateway
- Helicone logs the request and forwards it to Vercel AI Gateway
- Vercel routes the request to the appropriate AI provider
- The response flows back through Helicone for logging
- You get complete observability for all requests