Optimize your AI pipeline's cost and performance

Intelligent API routing to optimize AI cost and performance for dev teams.

Smart Model Routing

Intelligent routing that optimizes for cost, performance, and accuracy

Input
Claude logo
OpenAI logo
Gemini logo
Analyze this complex legal contract...
0.96
0.82
0.85
Format this list as JSON...
0.78
0.94
0.88
Write a creative philosophical essay...
0.95
0.81
0.79
Summarize this blog post...
0.80
0.85
0.97

Low Latency

Select the most efficient model in 50ms

Debug this complex TypeScript error...

Routing Time
12ms
Sonnet 4.5 logo
Sonnet 4.5

Complete Control

Full control over what gets routed

0.00.851.0
Current request confidence: 0.91
If > 0.85
Gemini logo
Gemini Flash
↓ 80% cost
If ≤ 0.85
Claude logo
Sonnet 4.5
Baseline

No Evals Needed

Starts learning and routing immediately with no evaluation required

Sonnet 4.5 logo
Sonnet 4.5
Baseline

Here's a comprehensive solution with error handling...

Semantic Similarity
94%
Gemini 2.5 Flash logo
Gemini 2.5 Flash
✓ Route next time

I've created a thorough implementation that includes error management...

Smart AI Routing That Saves You Money

Sansa is a routing layer that sits between your code and AI providers, automatically selecting the best model for each API call.

Model Providers

Use Sansa with the workflow you already have

AI model provider logo 1
AI model provider logo 2
AI model provider logo 3
AI model provider logo 4
AI model provider logo 5

Built for Developers

Drop-in replacement for your existing AI provider SDKs.

TSsansa.ts
// Install and import Sansa
import { Sansa } from sansa;

// Initialize with your API keys
const sansa = new Sansa({
  apiKey: process.env.SANSA_API_KEY,
  providers: {
    anthropic: { apiKey: process.env.ANTHROPIC_API_KEY },
    openai: { apiKey: process.env.OPENAI_API_KEY },
  }
});

// Make your call - Sansa handles the routing
const result = await sansa.create({
  // Identifies this use case for routing & analytics
  callName: customer-support,
  messages: [
    { role: system, content: You are a helpful assistant. },
    { role: user, content: Hello! }
  ],
  // Auto-route across all configured providers
  llmProviders: auto,
  // Baseline Model:
  // - Model to call by default
  // - Serves as a baseline quality target
  llmBaseline: {
    provider: anthropic,
    model: claude-sonnet-4-5-20250929,
  },
});

Frequently Asked Questions

Everything you need to know about Sansa

Optimize your AI pipeline costs

Join the waitlist to be among the first to access intelligent routing.

Sansa
AI cost and performance optimization
2025 SANSA. All rights reserved.