Should you build or buy Foundation Model APIs (LLM & Multimodal)?

Foundation model APIs sell metered access to frontier large-language and multimodal models: OpenAI (GPT-5.x), Anthropic (Claude Opus/Sonnet/Haiku), Google (Gemini 3.x), Mistral, and xAI (Grok), plus resellers and gateways (AWS Bedrock, Azure OpenAI, OpenRouter) that pass through provider pricing. Flagship rates run roughly $1-10 per million input tokens and $10-50 per million output tokens, with cheap commodity tiers (flash/mini/nano) at $0.10-0.50. This is the layer every AI chat, agent, copilot, and generation feature is built on.

The build-vs-buy decision for Foundation Model APIs turns on self-hosting, because training is off the table for almost everyone: a frontier training run costs hundreds of millions, and the companies that tried with real funding (Inflection at $1.3B, Adept, Character.AI) stopped and licensed their way out. Self-hosting open weights such as Llama, DeepSeek and Qwen pays for data-sovereignty buyers and very-high-volume workloads. For most organizations metered APIs cost less than idle GPUs plus the MLOps team to run them. The layer worth owning sits above the model: routing, evals and product logic, with a gateway keeping vendor switching cheap.

Build it, buy it, or bridge?

⚒ Build it
✓ Buy it
➔ Bridge
Cost shape
Frontier training $200-500M+/run; self-hosted open weights = GPU capacity + MLOps headcount held busy
Metered tokens: flagship ~$1-10/MTok in, $10-50/MTok out; commodity tiers $0.10-0.50; zero capex
Route by task tier behind a gateway; reserve self-hosting for sovereignty or saturated-volume workloads
Time to value
Quarters for a serving stack; years and frontier-lab talent for training
Minutes — an API key and an SDK
Start on APIs; revisit hosting only when volume or regulation forces it
Differentiation captured
Owning weights adds little; the labs' next release resets any gap
None at the API layer — every competitor buys the same models
Differentiate in evals, routing, retrieval, and product — the layers you actually keep
Observed replacement
Inflection, Adept, Character.AI all stopped; Databricks retired its own model
The default for effectively every company outside the labs
Sovereignty buyers (Chinese SOEs, regulated finance) self-host open weights as a deployment choice
Vendor risk
You carry model-quality risk alone against labs outspending you 1000:1
Real but managed: five capable vendors, near-zero-markup gateways, falling prices
Multi-vendor routing policy as standing insurance; renegotiate nothing, just re-route

When building makes sense

Never train from scratch unless you are a frontier lab. The narrow legitimate build-side question is self-hosting open weights (Llama, DeepSeek, Qwen): justified for hard data-sovereignty requirements (the pattern behind Chinese SOE deployments and regulated-finance VPC installs) or workloads that keep dedicated GPUs saturated around the clock. Below that utilization, metered APIs are cheaper than idle capacity plus the seven operational surfaces a self-hosted deployment makes you own — serving, registry, observability, upgrades, auth, evals, and incident response. And remember self-hosting is still consuming a lab's model: it changes where the model runs, not whether you built it.

When buying makes sense

Always, for the model layer itself. Five capable vendors are in an active price war (flagship input prices down ~96% since GPT-4), gateways route between them with near-zero markup, and the capability gap between what you can rent and what you could ever train is widening. Buy metered, set a routing policy that sends easy calls to commodity tiers and hard ones to frontier models, and put your engineering into the layers that compound: evals, retrieval, and product logic. If your board asks whether you should 'own your own model,' the observed record — Inflection, Adept, and Character.AI burning nine figures before licensing their way out — is the answer.

The desk read

Build-versus-buy analysis for Foundation Model APIs (LLM & Multimodal) is being written. In the meantime, the framework that drives every B4 call is on the B4 Index page.

Representative vendors AnthropicAWS Bedrock + 13 more, listed in the full index

Vendors in Foundation Model APIs (LLM & Multimodal)

Each file covers what the product is, its funding history, and when the index last verified it alive.

Anthropic Verified November 2026 Claude Opus/Sonnet/Haiku family; metered per-MTok API pricing. AWS Bedrock Verified November 2026 Multi-vendor model reseller: Anthropic, Meta, Mistral and more at pass-through pricing with batch and provisioned tiers. DeepSeek Verified November 2026 深度求索(DeepSeek),成立于2023年,专注于研究世界领先的通用人工智能底层模型与技术,挑战人工智能前沿性难题。基于自研训练框架、自建智算集群和万卡算力等资源,深度求索团队仅用半年时间便已发布并开源多个百亿级参数大模型,如DeepSeek-LLM通用大语言模型、DeepSeek-Coder代码大模型,并在2024年1月率先开源国内首个MoE大模型(DeepSeek-MoE),各大模型在公开评测榜单及真实样本外的泛化效果均有超越同级别模型的出色表现。和 DeepSeek AI 对话,轻松接入 API。 Google Gemini API ai.google.dev Gemini 3.x Pro/Flash models via AI Studio and Vertex AI; metered pricing. Mistral AI Verified November 2026 The most powerful AI platform for enterprises. Customize, fine-tune, and deploy AI assistants, autonomous agents, and multimodal AI with open models. openai Verified November 2026 OpenAI's seat-licensed assistant for organizations. OpenRouter Verified November 2026 Unified API gateway routing to 500+ models across 60+ providers with automatic failover Runway Verified November 2026 We are building foundational General World Models that will be capable of simulating all possible worlds and experiences. The next frontier of intelligence will come from models that can understand, perceive, generate and act in the world. xAI x.ai xAI is an AI company building Grok. Our mission is to advance scientific discovery and understand the universe. Z.AI (Zhipu) Verified November 2026 regulatory filing on HKEXnews dated 2026-09-13 states both legs; the $5B headline is the sum of the two, which the filing supports. Candidate sourceUrl (Reuters) kept as corroboration, primary swapped in. Cohere Verified November 2026 Enterprise AI platform with embedding models, reranking, and RAG capabilities for retrieval Fireworks Verified November 2026 company+amount+round confirmed on company press release and Reuters; entity resolved by domain Home \ Anthropic Verified November 2026 Anthropic is an AI safety and research company that's working to build reliable, interpretable, and steerable AI systems. Moonshot AI Verified November 2026 multiple reputable secondaries (Yahoo Finance, Chosun Biz, VKTR) name the $3.5B raise; $35B is the valuation. entity pinned to moonshot.ai River AI Verified November 2026 Confirmed on River AI's own blog plus Reuters and TechCrunch; round type corrected to combined Seed+Series A per company wording. Duplicate of the techcrunch-ai River AI candidate.

Frequently asked

What are foundation model APIs?

Metered access to frontier large-language and multimodal models — OpenAI's GPT-5.x, Anthropic's Claude, Google's Gemini, Mistral, xAI's Grok — plus resellers (AWS Bedrock, Azure OpenAI) and gateways (OpenRouter) that pass through provider pricing. You pay per million tokens in and out.

Should we train our own model instead of paying OpenAI or Anthropic?

No. Frontier-class training runs cost $200-500M+ in compute alone, and the well-funded companies that tried — Inflection ($1.3B raised), Adept, Character.AI — all stopped and licensed their way out. Fine-tune or self-host open weights if you must; train from scratch, no.

When does self-hosting open-weight models (Llama, DeepSeek) beat the APIs?

Two cases with real observed adoption: hard data-sovereignty requirements (the pattern behind Chinese state-enterprise DeepSeek deployments and regulated-finance private installs), and workloads that keep dedicated GPUs saturated. Below constant saturation, metered APIs are cheaper than idle GPU capacity plus the MLOps team to run it.

How fast are prices falling?

OpenAI's flagship input price fell roughly 96% from GPT-4 (~$30/MTok) to the GPT-5.x tier ($1.25-5); Mistral Large fell 75%; Anthropic's Opus fell 67%. Meanwhile every vendor added commodity tiers at $0.10-0.50/MTok for volume routing. Premium reasoning tiers hold their price — the market is bifurcating, not uniformly deflating.

How do we avoid lock-in to one lab?

Route through a gateway (OpenRouter, Bedrock) with a policy layer: cheap models for easy requests, frontier models for hard ones, and evals that let you swap vendors on evidence. Gateways charge ~5% or pass through list price, so the insurance is nearly free.

The B4 Index scores every software category on two axes, strategic differentiation and AI feasibility, to classify it Build, Buy, Bridge, or Beware. See the full methodology.