One model.
Every model.
Codai is a universal AI model platform that routes every task to the best frontier model available — Claude, GPT-5, Gemini, and more. Top-tier quality by default. One API. One price. Zero model management.
Live Routing
Where codai routed your requests
Real production traffic — the actual distribution of upstream models the codai router selected. Updated every 5 minutes.
- claude-fable-53,327 req63.4%
- claude-opus-4-81,814 req34.6%
- claude-sonnet-4-6106 req2.0%
5,247 routed requests · last 24 hours · successful `codai` requests only
Why Codai
Model intelligence, not just an API proxy
Most platforms forward your request to a hardcoded model. Codai runs a prior-driven decision engine that optimises every call for cost, latency, and quality.
Smart Model Selection
Classifies your prompt, checks historical success rates, and picks the optimal model tier. Haiku for quick fixes; Opus for deep reasoning — automatically.
Sub-80ms Dispatch
Codai runs a lightweight classifier locally before touching any cloud provider. Zero cold-start overhead on your inference path.
Benchmark-Driven Priors
Model selection is trained on real HumanEval, MMLU-Pro, and Aider Polyglot benchmarks. Prior success rates per model tier update weekly.
Predictable Pricing
Flat-rate task budgets. We don't sell tokens — we sell outcomes. Every task runs on the strongest model that clears the quality bar, with no per-token surprises.
Universal Model Roster
Claude 4 (Sonnet/Opus), GPT-5 (mini/nano/full), Gemini Pro, Gemini Flash — all behind one endpoint. Switch providers without touching your code.
Enterprise-Grade Security
Envelope encryption on all stored credentials. Zero plaintext secrets in DB. Audit-logged every request. GDPR-ready data residency in EU.
Live Benchmarks
Numbers that prove codai works
Every week, codai runs live benchmark suites against the full model roster — real runs on production infrastructure, not marketing slides. These numbers feed directly into model selection. No cherry-picking.
Benchmarks run on production infrastructure. Updated weekly via automated worker. See full results →
Architecture
How it works
Three stages, sub-100ms overhead, fully observable.
Your request arrives
Any client that speaks OpenAI or Anthropic API format. Point your base URL at api.codai.ro — no SDK changes.
Codai classifies & decides
A lightweight prompt classifier checks historical success rates per model tier. High-confidence? Skip LLM classifier entirely. Low-confidence? Run it in <15ms.
Cascade guarantees quality
A verifier scores every answer against quality gates. If it falls short, a stronger frontier model takes over automatically — so you always get a top-tier result, transparently.
Model Roster
Every frontier model, one endpoint
Codai selects across Claude, GPT-5, and Gemini. As new models ship, codai benchmarks them and adds them to the pool. You never update a model name.
Use model="codai" in any OpenAI-compatible client. Codai handles the rest.
Live platform metrics
Pricing
Best model for everyone.
Every tier runs Claude Opus 4. Limits are on tasks, not on intelligence. No model lock-ins, no second-class inference.
- Frontier models — same as paid
- Full tool suite — same as paid
- ~5 agent tasks / month to try
- Codai smart router + sub-agents
- Frontier models — same as paid
- Full tool suite — Python, shell, browser
- ~33 agent tasks / month
- Sub-agents
- Frontier models — same as paid
- Full tool suite — Python, shell, browser
- ~83 agent tasks / month
- Persistent memory
- BYOK support
- Every model — pin any provider
- Full tool suite — Python, shell, browser
- ~250 agent tasks / month
- Persistent memory
- Up to 100 seats
- Weekly pay-as-you-go for overage
Full pricing details including team plans → /pricing
Security & Trust
Built for production from day one
We route sensitive AI workloads. Security is not a feature — it's the foundation.
Envelope Encryption
Every API key is encrypted with a per-user data-encryption key, itself wrapped by a master key in GCP Secret Manager. Zero plaintext secrets in the database.
Zero-Trust Architecture
Gateway and management plane are separate Cloud Run services. Internal communication signed. No shared secrets between services.
EU Data Residency
All infrastructure runs in europe-west1 (Belgium). Your prompts and usage data never leave the EU. GDPR-compliant by design.
Immutable Audit Log
Every API call is persisted to an append-only usage_events table with model, latency, cost, and model decision. Full observability.
HMAC-Verified Keys
API keys are validated with constant-time HMAC comparison, immune to timing attacks. Keys can be scoped and revoked per session.
Open Telemetry
Prometheus metrics, structured logs, and distributed traces. See exactly what codai decided and why, in real time.