ai-sdk · @broberg/ai-sdk

One AI engine behind it all.

Every AI call in the broberg.ai universe goes through ONE facade — Claude, GPT, Gemini, Mistral, Black Forest Labs. Switch model by changing a tier, not your code. And if data is sensitive, it stays in Europe.

Chat·Vision·Video·Translate·Image·Embedding·Speech to text·OCR·Moderation·Podcast·TTS·Contracts
How it works

Start cheap. Move up only when it pays off.

fast = Haiku·smart = Sonnet·powerful = Opus·cheap = Mistral EU·vision·video·embedding
Raw SDK vs. ai-sdk
DimensionDirectai-sdk
Switch providerEverywhere in codeOne tier
Cost overviewNonetokens + price + latency per call
When a model diesCrash for the userGraceful fallback
Sensitive dataManual responsibilityAutomatically in EU
Data protection · GDPR

Sensitive data never leaves Europe.

ai-sdk picks the best model for the task — but the moment data is personal, it is AUTOMATICALLY routed to a European model (Mistral, Paris-hosted, no Schrems II). Never US, never CN. You do not have to remember it; it is built in.

EU-hosted
Mistral Paris
0
Schrems II
Auto
per call