|
AI Overview
Build production-ready AI applications with a unified API, multi-provider routing, built-in security, and complete observability.
Cencori acts as a transparent proxy layer between your application and AI providers. Instead of calling OpenAI, Anthropic, or Google directly, you route requests through Cencori.
How It Works
Your Application → Cencori → AI Models
By routing through Cencori, you get:
- Multi-Provider Routing - Switch between OpenAI, Anthropic, Google with a single parameter
- Automatic Security - PII detection, prompt injection protection, content filtering
- Complete Observability - Every request logged with full prompts, responses, and costs
- Failover & Reliability - Automatic retries and provider fallback
- Cost Tracking - Real-time usage and spend per project
Documentation
Endpoints
AI Memory
Vector storage for RAG, conversation history, and semantic search. Store content with automatic embedding generation and retrieve it with natural language queries.
- Memory Overview - Getting started with AI Memory
- RAG - Retrieval-augmented generation
Quick Start
import { Cencori } from 'cencori';
const cencori = new Cencori({ apiKey: 'csk_...' });
// Chat with any model
const response = await cencori.ai.chat({
model: 'gpt-4o', // or 'claude-opus-4', 'gemini-2.5-flash'
messages: [{ role: 'user', content: 'Hello!' }]
});
console.log(response.content);
