Claude Sonnet 5 vs DeepSeek V4 Pro — Preços comparativos
Preços de API e detalhes do tokenizador lado a lado para Claude Sonnet 5 (Anthropic) e DeepSeek V4 Pro (DeepSeek).
Preços comparativos
| Característica | Claude Sonnet 5 | DeepSeek V4 Pro |
|---|---|---|
| Provedor | Anthropic | DeepSeek |
| Entrada (por 1M tokens) | $2.00 | $0.435 |
| Saída (por 1M tokens) | $10.00 | $0.870 |
| Cache de contexto | Sim — 90% de desconto em tokens em cache | Sim — 99% de desconto em tokens em cache |
| Desconto de API em lote | 50% de desconto | Não disponível |
| Janela de contexto | 1M tokens | 1M tokens |
| Tokenizador | Anthropic tokenizer (Opus 4.7+) | SentencePiece (Llama) |
ⓘ Claude Sonnet 5: Introductory pricing through Aug 31, 2026. Standard price: $3.00 / $15.00 per MTok after that date.
Exemplo do mundo real
1.000 requisições de API por mês, cada uma com 500 tokens de entrada e 200 tokens de saída (500K de entrada + 200K de saída no total).
Claude Sonnet 5
$3.0000
Entrada: $1.0000 +Saída: $2.0000
DeepSeek V4 Pro
$0.3915
Entrada: $0.2175 +Saída: $0.1740
DeepSeek V4 Pro é 87% mais barato para esta carga de trabalho — economizando $2.6085 por mês neste volume.
Perguntas frequentes
Não, DeepSeek V4 Pro é mais barato para a carga de trabalho típica acima. Com $0.435/1M de entrada e $0.870/1M de tokens de saída, custa $0.3915 versus $3.0000 para Claude Sonnet 5 — uma diferença de 87%.
Claude Sonnet 5 suporta uma janela de contexto de 1M tokens. DeepSeek V4 Pro suporta uma janela de contexto de 1M tokens. Uma janela de contexto maior permite incluir mais texto — documentos, histórico de conversa ou código — em uma única chamada de API.
Claude Sonnet 5 supports context caching (90% off repeated tokens). It offers a 50% Batch API discount. DeepSeek V4 Pro supports context caching (99% off repeated tokens). It does not offer a batch API discount.
No, they use different tokenizers. Claude Sonnet 5 uses the Anthropic tokenizer (Opus 4.7+), while DeepSeek V4 Pro uses SentencePiece (Llama). Different tokenizers split text differently, so the same prompt will produce different token counts on each model — the effective cost difference may be larger or smaller than the per-token price difference alone suggests.
Claude Sonnet 5 (Anthropic): $2 input / $10 output per 1M tokens. DeepSeek V4 Pro (DeepSeek): $0.435 input / $0.87 output per 1M tokens. Rates shown before caching or batch discounts.
For an 80% output / 20% input workload — typical for code generation or long-form writing — Claude Sonnet 5 costs $8.4000 per 1M total tokens and DeepSeek V4 Pro costs $0.7830. DeepSeek V4 Pro is 91% cheaper for this pattern. For your exact ratio, paste a real prompt into the calculator above.
Claude Sonnet 5 has a 1M-token context window — approximately 750K words or ~3K pages of standard text. DeepSeek V4 Pro has a 1M-token context window — approximately 750K words or ~3K pages. (Estimates assume ~0.75 words per token.)
Calcule custos para seu prompt real
Cole seu prompt na calculadora e obtenha contagens exatas de tokens usando o tokenizador real de cada modelo — tudo no seu navegador.
Abrir calculadora