Every AI project hits the same fork early: call a frontier model through an API (OpenAI, Anthropic, Google), or run an open-weight model (Llama, Mistral, Qwen and their fine-tunes) on infrastructure you control. Teams often pick based on ideology or headlines. The better way is to score four factors: capability, cost curve, data control, and operational burden.
The honest trade-offs
- Capability: frontier models still lead on hard reasoning, long context, and reliability under ambiguity. If your task is genuinely difficult, the API usually wins.
- Cost curve: APIs are cheap to start and expensive at scale; self-hosting is expensive to start and cheap at scale. The crossover point depends on your volume calculate it, do not guess it.
- Data control: open-weight models on your infrastructure mean data never leaves your perimeter. For regulated industries or sensitive jurisdictions, this alone can decide the question.
- Operational burden: self-hosting means GPUs, serving stacks, monitoring, and upgrades become your problem. That is a real engineering cost teams routinely underestimate.
What we usually recommend
Start on a frontier API to prove the product works speed of iteration beats cost optimization while you are still learning what users need. Once volume and requirements stabilize, revisit: many of our builds end up hybrid, with a frontier model for the hard 10% and a small open model handling the routine 90% at a fraction of the cost. Our product HibisXpert follows exactly this pattern for legal AI, where jurisdiction-specific work and cost control both matter.
If you are facing this fork, we can run the cost-capability analysis for your actual workload usually a one-week exercise that saves months of rework.

