Skip to content

DeepSeek V4 alternatives

9 tools you can use instead of DeepSeek V4, ranked by live GitHub stars and npm downloads. Anthropic Claude, StarCoder and Gemma 4 are the most used. Stats updated 5 hours ago.

Short answer

Gemma 4 is the closest alternative if you want open weights you can download and run. Devstral is Mistral AI's open-weight model for coding. Among hosted proprietary models, compare Anthropic Claude and Gemini 3.1 Pro.

When DeepSeek V4 is not a good fit

DeepSeek V4 is DeepSeek's current model family, succeeding V3 and R1, and includes V4.1-Flash as the default workhorse model and V4-Pro for frontier-tier reasoning, agentic and coding work. Pricing is per million tokens, with V4.1-Flash starting at $0.15 per million input tokens off-peak.

It is a weaker choice for:

  • Users still relying on legacy V3/R1-era API model names, which have been retired in favor of V4
  • Teams needing guaranteed flat pricing without off-peak/peak variation
  • Applications requiring a vendor-hosted proprietary model rather than an open-weight one
DeepSeek V4 pricing, features and usage

The alternatives

Most used first.

1

Anthropic Claude

Anthropic's Claude model family, accessed through the Claude apps, the Claude API, or major clouds.

Pricing Pay as you goPaid from $20 a month for Claude Pro; API from $1 input per million tokens on Haiku 4.5Open source noStars 2.1knpm a week 54M
View Anthropic Claude
2

StarCoder

Open source code-generation model from the BigCode project, trained on 80+ programming languages.

Pricing Open sourceOpen source yesStars 7.5k
View StarCoder
3

Gemma 4

Google DeepMind's current generation of lightweight, open-weight language models.

Pricing Open sourceOpen source noStars 5.8k
View Gemma 4
4

Devstral

Mistral AI's open-weight model built specifically for coding and software engineering agents.

Pricing Open sourcePaid from Priced per million tokens via Mistral's API; see Mistral's pricing page for current ratesOpen source yes
View Devstral
5

Gemini 3.1 Pro

Google's third-generation Gemini Pro model, currently in preview, for complex reasoning tasks.

Pricing Pay as you goPaid from $2.00 per million input tokens (up to 200k tokens)Open source no
View Gemini 3.1 Pro
6

GPT-5.3 Codex

OpenAI's specialized coding model, priced separately from its general-purpose GPT models.

Pricing Pay as you goPaid from $1.75 per million input tokens (standard mode)Open source no
View GPT-5.3 Codex
7

Jev

TypeSafe AI's System One model: returns typed decisions with probabilities instead of text.

Pricing Pay as you goPaid from $0.042 per million input tokens; output tokens are freeOpen source no
View Jev
8

Meta Muse Spark

Meta's proprietary flagship AI model, its first major release since the Llama line.

Pricing Pay as you goPaid from Priced per million tokens via API partners; check current provider pricingOpen source no
View Meta Muse Spark
9

Mistral Large 3

Mistral AI's flagship large language model for complex reasoning and general-purpose tasks.

Pricing Pay as you goPaid from Around $0.50 per million input tokens (Mistral Large tier, per Mistral's example pricing)Open source no
View Mistral Large 3

DeepSeek V4 and its alternatives, side by side

ToolPricingFree planPaid fromOpen sourceGitHub stars
DeepSeek V4Open sourceYes, open-weight models free to download and self-host; API access is pay-as-you-go$0.15 per million input tokens off-peak (V4.1-Flash, cache miss)Yes, MIT (weights and code)None
Anthropic ClaudePay as you goYes, in the Claude apps; the API has no free tier and is billed per token$20 a month for Claude Pro; API from $1 input per million tokens on Haiku 4.5No2.1k
StarCoderOpen sourceYes, free to download and use, subject to accepting the OpenRAIL-M license termsNot listedYes, BigCode OpenRAIL-M7.5k
Gemma 4Open sourceYes, weights are free to download and runNot listedNo5.8k
DevstralOpen sourceYes, open-weight model free to download and self-host; API access is pay-as-you-goPriced per million tokens via Mistral's API; see Mistral's pricing page for current ratesYes, Apache-2.0None
Gemini 3.1 ProPay as you goLimited free access is available through Google AI Studio and Gemini app tiers$2.00 per million input tokens (up to 200k tokens)NoNone
GPT-5.3 CodexPay as you goNo free tier for API access; usable through ChatGPT plans with usage limits$1.75 per million input tokens (standard mode)NoNone
JevPay as you goNot stated on the official site. Usage is billed per input token.$0.042 per million input tokens; output tokens are freeNoNone
Meta Muse SparkPay as you goAccess is available through Meta AI's consumer products with usage limitsPriced per million tokens via API partners; check current provider pricingNoNone
Mistral Large 3Pay as you goLimited free access is available through La Plateforme's free tierAround $0.50 per million input tokens (Mistral Large tier, per Mistral's example pricing)NoNone

Pricing facts come from each tool's official pricing page, with the checked date on the tool's own page.

Questions

What is the most popular alternative to DeepSeek V4?

By GitHub stars, Anthropic Claude is the most used alternative to DeepSeek V4 listed on ScratchDB, with 2.1k stars.

Which DeepSeek V4 alternatives are open source?

StarCoder and Devstral are open source.

Which DeepSeek V4 alternatives have a free plan?

Anthropic Claude, StarCoder, Gemma 4 and Devstral have a free plan. The table on this page shows what each one includes.

All AI Models tools

DeepSeek V4 alternatives: 9 options compared (2026) | ScratchDB