Getting Started with Cencori
0/9 completeStep 6 of 9
Make Your First Request
Let's send your first AI chat request through Cencori. This is the exciting part! 🚀
Basic Chat Request
Here's the simplest way to make an AI request:
app/api/chat/route.ts
In a Next.js API Route
Here's a complete example for a Next.js app:
app/api/chat/route.ts
Switch Models Instantly
The magic of Cencori — switch providers with one parameter:
switching-models.ts
✓ What Cencori does automatically:
- • Routes to the correct provider based on model name
- • Logs the request for your dashboard
- • Scans for security threats
- • Tracks token usage and cost