Migrating from Vercel AI Gateway
This guide will help you migrate from Vercel’s AI Gateway to AI Stats Gateway.Overview
Both Vercel AI Gateway and AI Stats provide unified access to multiple AI providers. Migration involves:- Updating API endpoints
- Changing authentication
- Adjusting configuration
Prerequisites
- AI Stats account and API key
- Existing Vercel AI Gateway setup
Migration Steps
1. Update Base URL
Replace Vercel’s gateway URL with AI Stats’.2. Update Authentication
Use Bearer token instead of Vercel’s auth method.3. Model Configuration
Vercel AI Gateway routes based on model names. AI Stats uses similar routing. Check available models via/models endpoint.
4. Test Integration
Verify your applications work with the new gateway.Common Issues
- Routing differences: Model availability may vary.
- Caching: Vercel’s caching behavior may differ.
Next Steps
- Explore AI Stats’ analytics and monitoring features.