All articles

Top LLM API Providers Compared 2026: OpenAI, Anthropic, Google, DeepSeek, DashScope, and SiliconFlow

A practical 2026 comparison of six major LLM API providers: OpenAI, Anthropic, Google Gemini, DeepSeek, DashScope, and SiliconFlow. We compare flagship models, pricing, rate limits, OpenAI SDK compatibility, regional availability, and when each provider fits.

· updated 2026-07-28· TheRouter

The fastest answer: pick OpenAI when ecosystem breadth and tooling integration matter most, Anthropic when you need long-context reasoning or extended thinking, Google Gemini when multimodal and managed-agent features are the priority, DeepSeek when cost efficiency on reasoning-class tasks is critical, DashScope when you want the full Qwen stack with China-region deployment, and SiliconFlow when you need free-tier open-weight model access with an OpenAI-compatible endpoint. The hard part in 2026 is not finding a provider — it is operating the failure modes, rate limits, and pricing tiers of whichever provider you pick.

OpenAI-compatible means a provider exposes a chat-completions endpoint whose request and response shape matches the OpenAI API contract closely enough that an unmodified OpenAI SDK call works against it after swapping three values: API key, base URL, and model name. The minimum surface in practice is POST /v1/chat/completions with messages, model, and an OpenAI-shaped streaming response.

Sources: OpenAI API Pricing, retrieved 2026-07-28; Anthropic Claude Pricing, retrieved 2026-07-28; Google Gemini API Pricing, retrieved 2026-07-28; DeepSeek Models & Pricing, retrieved 2026-07-28; DashScope Model Pricing, retrieved 2026-07-28; SiliconFlow Pricing, retrieved 2026-07-28.

TL;DR — Provider Comparison Table

ProviderFlagship modelInput / Output (per 1M tokens)Context windowOpenAI SDK compatibleRate limit surfaceBest fit
OpenAIGPT-5.6 Sol$5.00 / $30.00272K+ (long-context available)NativeRPM/TPM/RPD per tierBroadest ecosystem, tool calling, coding agents
AnthropicClaude Opus 4.8$5.00 / $25.00200K–1MVia base_url overrideRPM/ITPM/OTPM per tierExtended thinking, long-context, safety-first workflows
GoogleGemini 3.6 Flash$1.50 / $7.501M+Via base_url overrideRPM/TPM per projectMultimodal, managed agents, Google Cloud integration
DeepSeekV4-Flash$0.14 / $0.281MNative (also Anthropic format)Concurrency-based (2,500)Ultra-low cost reasoning and coding
DashScopeQwen3.7-Max¥6 / ¥18 (promo)1MVia OpenAI-compatible endpointRPM/TPM per modelChina deployment, Qwen ecosystem, tiered pricing
SiliconFlowMulti-vendor (200+ models)Varies ($0.00–$15.00)Model-dependentNativePer-tier rate limitsFree-tier access, open-weight models, pay-as-you-go

Note: Pricing as of July 2026. Promotional rates may change. All per-1M-token figures are USD except DashScope (RMB, shown converted at ~¥7.25/$ where helpful). Always verify against the provider's official pricing page before committing.

OpenAI — The Ecosystem Default

OpenAI remains the default choice for teams that need the broadest model catalog, deepest tooling integration, and the widest third-party SDK support.

Model tiers (July 2026):

ModelInputOutputContextNotes
GPT-5.6 Sol$5.00$30.00272K+Flagship, long-context support
GPT-5.6 Terra$2.50$15.00272K+Mid-tier
GPT-5.6 Luna$1.00$6.00272K+Cost-efficient
GPT-5.4-mini$0.75$4.50StandardFast, affordable
GPT-5.4-nano$0.20$1.25StandardUltra-cheap
o3$2.00$8.00StandardReasoning
o4-mini$1.10$4.40StandardLightweight reasoning

Strengths: Native prompt caching (90% input discount on cache hits), batch API (50% off), Responses API with built-in tools, Codex for agentic coding, 10-region data residency.

Limitations: Rate limits are tier-based and not always transparent until you hit them. Spend limits (hard 429s) differ from rate limits. The newest models (GPT-5.6) carry a premium — Luna at $1/$6 is the sweet spot for most production workloads.

When to pick OpenAI: You need the widest tool ecosystem, your team already uses the OpenAI SDK, or you need data residency in specific regions.

Source: OpenAI API Pricing, retrieved 2026-07-28.

Anthropic — Extended Thinking and Safety

Anthropic's Claude API has carved out a distinct position: best-in-class extended thinking, strong coding benchmarks, and enterprise safety controls.

Model tiers (July 2026):

ModelInputOutputContextNotes
Claude Opus 4.8$5.00$25.00200K (1M with extended)Frontier reasoning
Claude Sonnet 5$2.00$10.00200KIntro pricing through Aug 2026 (standard: $3/$15)
Claude Haiku 4$1.00$5.00200KFast, cost-efficient

Strengths: Extended thinking mode (budget-based, up to 128K thinking tokens), prompt caching (90% discount on cached input), effort control (auto/low/high), strong safety commitments, Claude Code for agentic coding.

Limitations: Rate limits are tiered (RPM/ITPM/OTPM) and can be opaque. No native batch API equivalent to OpenAI's — use prompt caching for cost reduction instead. The Sonnet 5 introductory pricing ($2/$10) ends August 31, 2026, reverting to $3/$15.

When to pick Anthropic: Your workload benefits from extended thinking (complex reasoning, multi-step analysis), you need strong safety guarantees, or your coding agents perform better on Claude benchmarks.

Sources: Anthropic Claude API Pricing, retrieved 2026-07-28; Claude Pricing — cloudzero.com, retrieved 2026-07-28.

Google Gemini — Multimodal and Managed Agents

Google's Gemini API stands out for multimodal capabilities, managed-agent orchestration, and deep Google Cloud integration.

Model tiers (July 2026):

ModelInputOutputContextNotes
Gemini 3.6 Flash$1.50$7.501M+Latest Flash, 17% output price cut vs 3.5 Flash
Gemini 3.1 Pro Preview$1.00$6.00200KPreview pricing
Gemini 2.5 Pro$0.625$5.001M+Mature, cost-effective

Strengths: Native multimodal (text, image, video, audio input), managed-agent API with background execution and MCP support, computer-use capabilities in 3.5 Flash, generous free tier for experimentation, Vertex AI enterprise deployment.

Limitations: Gemini docs and pricing pages have historically been hard to navigate (frequent redirects). Managed-agent features are relatively new and less battle-tested than OpenAI's. Rate limits are project-based, not per-model.

When to pick Google: Multimodal workloads (vision, audio, video), you want managed-agent orchestration, or your infrastructure is already on Google Cloud.

Sources: Gemini API Pricing, retrieved 2026-07-28; felloai.com Gemini Pricing, retrieved 2026-07-28.

DeepSeek — Ultra-Low-Cost Reasoning

DeepSeek disrupted the pricing floor in 2025 and has maintained that position into mid-2026. Their V4 models offer reasoning-class performance at a fraction of the cost.

Model tiers (July 2026):

ModelInput (cache miss)Input (cache hit)OutputContextNotes
DeepSeek V4-Flash$0.14$0.0028$0.281MDefault thinking mode, 2,500 concurrency
DeepSeek V4-Pro$0.435$0.003625$0.871MHigher capability, 500 concurrency

Strengths: By far the cheapest reasoning-capable API. Cache hits are 98% cheaper than cache misses. Both OpenAI and Anthropic API format support. Thinking mode on by default. FIM completion for code. 1M context on both models.

Limitations: Concurrency limits rather than RPM/TPM (2,500 for Flash, 500 for Pro). Rate limits can be restrictive under burst loads. Fewer enterprise controls (no data residency, limited audit surfaces). Occasional availability concerns during high-demand periods.

When to pick DeepSeek: Cost is the dominant constraint, your workload is reasoning or coding intensive, and you can tolerate concurrency-based throttling.

Source: DeepSeek Models & Pricing, retrieved 2026-07-28.

DashScope (Bailian) — The Qwen Ecosystem

Alibaba Cloud's DashScope (百炼) is the primary API for the Qwen model family and hosts third-party models like GLM, Kimi, and MiniMax. It is the go-to platform for China-region deployment.

Key pricing (July 2026, Beijing region):

ModelInputOutputContextNotes
Qwen3.7-Max¥6/M (promo, normally ¥12)¥18/M (promo, normally ¥36)1MFlagship, thinking + non-thinking modes
Qwen3-Max¥2.5/M (≤32K)¥10/M (≤32K)256KTiered pricing by context usage
Qwen3.7-Flash¥0.6/M¥1.2/M1MCost-efficient

Strengths: Full Qwen model stack (Max, Plus, Turbo, Flash, Coder, VL, Audio), OpenAI-compatible endpoint (dashscope.aliyuncs.com/compatible-mode/v1), tiered pricing that rewards shorter contexts, context caching (explicit + implicit), batch API at 50% off, multi-region deployment (Beijing, Singapore, Virginia, Frankfurt, Tokyo).

Limitations: International pricing is 1.4–1.8× the China-region price. Tiered pricing adds complexity. Rate limits vary per model and are not always publicly documented. A massive model deprecation wave is consolidating to October 10, 2026 — check the deprecation calendar before committing to any model ID.

When to pick DashScope: You need China-region deployment, want the Qwen model family, or benefit from tiered pricing on shorter-context workloads.

Source: DashScope Model Pricing, retrieved 2026-07-28.

SiliconFlow — Free-Tier Open-Weight Access

SiliconFlow aggregates 200+ open-weight and proprietary models behind a single OpenAI-compatible API, with a notable free tier for smaller models.

Pricing highlights (July 2026):

ModelInputOutputContextNotes
DeepSeek V4-Flash (via SF)$0.13$0.281MSlightly cheaper input than direct
DeepSeek V4-Pro (via SF)$1.50$3.1351MHigher markup vs direct
Kimi K3$3.00$15.001MLatest Moonshot reasoning model
GLM-5.2$1.30$4.091MZhipu's flagship
Qwen3.6-27B$0.30$3.20262KOpen-weight Qwen
Various small models$0.00$0.00VariesPermanently free

Strengths: Free-tier models for prototyping and light usage, broad model catalog from multiple vendors, pay-as-you-go with $1 free credits, single API key for multiple model families, OpenAI-compatible by default.

Limitations: Markup on some models vs going direct to the provider. Free-tier rate limits can be restrictive for production. Not a vendor — you are paying for inference infrastructure, not the model itself. Provider-specific features (extended thinking, prompt caching) may not be fully exposed.

When to pick SiliconFlow: You want one API key for multiple open-weight models, need free-tier access for prototyping, or want to compare models without creating accounts on every provider.

Source: SiliconFlow Pricing, retrieved 2026-07-28.

Pricing Decision Matrix

The table below maps common workload profiles to provider recommendations:

WorkloadBudget priorityRecommended providerWhy
General chat/assistantModerateOpenAI (GPT-5.6 Luna) or Anthropic (Haiku 4)Broad ecosystem, low cost
Complex reasoningQuality over costAnthropic (Opus 4.8 extended thinking) or OpenAI (o3)Best reasoning benchmarks
Cost-sensitive reasoningCost firstDeepSeek V4-Flash$0.14/$0.28 is 10–35× cheaper than alternatives
China-region deploymentRegional complianceDashScope (Qwen3.7-Max)Native China hosting, RMB billing
Multimodal (vision/audio)Feature breadthGoogle Gemini 3.6 FlashNative multimodal, competitive pricing
Prototyping/evaluationFree or near-freeSiliconFlow free models or DeepSeek V4-Flash$0 entry point
Coding agentsQuality + costAnthropic (Sonnet 5) or DeepSeek V4-ProTop SWE-bench results

Rate Limits — The Hidden Constraint

Pricing gets the headlines, but rate limits determine whether a provider actually works for your traffic pattern.

ProviderLimit modelFree/low tierPaid/scale tierNotes
OpenAIRPM + TPM + RPD per tierVaries by modelTier 5: up to 10K RPMSpend limits trigger hard 429s separate from rate limits
AnthropicRPM + ITPM + OTPM per tierTier 1: lowTier 4: higherRate limit increases require spend history
GoogleRPM + TPM per projectGenerous free tierScale via Vertex AIProject-based, not per-model
DeepSeekConcurrency-based2,500 (Flash) / 500 (Pro)No RPM/TPM — concurrent request cap
DashScopeRPM + TPM per modelModel-dependentHigher with paid tiersNot always publicly documented
SiliconFlowTiered by planFree: limitedPaid: higherVaries by model

For a deeper dive, see our AI API Rate Limit Comparison 2026.

OpenAI SDK Compatibility

A key practical question: can you use the openai Python/Node SDK with a base_url override to hit each provider?

ProviderWorks with OpenAI SDK?base_urlAuthGotchas
OpenAINativehttps://api.openai.com/v1OPENAI_API_KEY
AnthropicVia proxy/gatewayNot directly — different API formatANTHROPIC_API_KEYNeeds adapter or gateway
GoogleVia proxy/gatewayNot directly — different API formatGoogle OAuth / API keyNeeds adapter or gateway
DeepSeekYeshttps://api.deepseek.comDEEPSEEK_API_KEYAlso supports Anthropic format
DashScopeYeshttps://dashscope.aliyuncs.com/compatible-mode/v1DASHSCOPE_API_KEYSome features require DashScope-specific headers
SiliconFlowYeshttps://api.siliconflow.cn/v1SILICONFLOW_API_KEYProvider-specific features may not be exposed

For teams already using the OpenAI SDK, DeepSeek, DashScope, and SiliconFlow offer the lowest friction migration path. Anthropic and Google require either a dedicated SDK or a routing gateway.

For a step-by-step migration walkthrough, see our OpenAI to TheRouter Migration Guide.

How a Gateway Changes Provider Selection

We built TheRouter to solve a specific problem: you should not have to rewrite your application when you switch providers. TheRouter routes OpenAI-compatible requests through configured providers and supports provider/model routing and fallback when live product paths support it.

What a gateway adds:

  • Single endpoint: One base_url, one API key, multiple providers behind it
  • Fallback: If Provider A returns 429 or 5xx, route to Provider B — where fallback paths are configured and tested
  • Unified billing: One bill instead of six provider dashboards

What a gateway does not do:

  • Guarantee every model from every provider is available (we don't claim that)
  • Eliminate provider-specific rate limits (they still apply upstream)
  • Make every provider's features work identically (extended thinking, prompt caching, managed agents are provider-specific)

The gateway comparison is a separate topic — see Unified LLM API Gateway Comparison 2026 for OpenRouter, LiteLLM, Portkey, Cloudflare AI Gateway, and TheRouter head-to-head.

When comparing API pricing across providers, always normalize to USD per million tokens and split input from output. Most providers price output tokens 2–5× higher than input tokens, so a workload heavy on completion length looks very different from a retrieval-heavy workload at the same nominal "price per million."

  • Use one currency (USD) — convert at publish date and cite the rate.
  • Split input/output — never quote a single blended number.
  • Cite each row to the provider's own pricing page with retrieval date.
  • Note context-window tiers — long-context pricing often steps higher.

What We Left Out

This comparison focuses on the six providers most relevant to TheRouter's user base. Notable omissions:

  • xAI (Grok): Covered in our Grok 4.5 API Integration Guide. Strong reasoning, premium pricing ($5/$15 for Grok 4.3).
  • Mistral: Competitive on European deployment but less relevant for our China-focused users.
  • Volcengine (Ark): Covered in our Volcengine Ark vs DashScope comparison. ByteDance's platform with Doubao/Seed models.
  • Meta (Llama): Open-weight models available through SiliconFlow, Fireworks, and other inference providers rather than a first-party API.

FAQ

Q: Which provider is cheapest overall? DeepSeek V4-Flash at $0.14/$0.28 per million tokens. That is 7× cheaper than GPT-5.6 Luna and 35× cheaper than GPT-5.6 Sol on input. For non-reasoning workloads, SiliconFlow's permanently free models cost nothing.

Q: Can I use multiple providers simultaneously? Yes. Most production teams use 2–3 providers. A gateway like TheRouter makes this easier by providing a single endpoint with routing and fallback — where those routing paths are configured and tested for the specific models you need.

Q: Which provider has the best rate limits? DeepSeek's concurrency model (2,500 concurrent requests for V4-Flash) is unusually generous for high-throughput batch workloads. OpenAI and Anthropic gate by RPM/TPM and require tier upgrades via spend history. Google's project-based limits are generous for experimentation.

Q: What about data residency and compliance? OpenAI offers 10-region data residency. DashScope is the only provider with native China-region deployment. Anthropic and Google offer enterprise agreements with specific compliance commitments. DeepSeek and SiliconFlow have more limited compliance surfaces.

Q: How do prompt caching discounts compare? OpenAI: 90% discount on cached input. Anthropic: 90% discount. DeepSeek: 98% discount (cache hits at $0.0028/M for V4-Flash). DashScope: 90% discount with explicit caching, implicit caching also available. SiliconFlow: varies by model.

Customer Support