DeepSeek V4 Pro API — pricing & specs
DeepSeek V4 Pro is a 1M-context text model. DeepSeek says API service continues after September 14, 2026 with its upstream billing method unchanged. On KeepRouter, DeepSeek V4 Pro costs $1.32 per 1M input tokens and $3.96 per 1M output tokens, billed pay-as-you-go with no monthly fee. Call it through a compatible KeepRouter endpoint supported by its active route, with the model id deepseek-v4-pro.
| Maker | DeepSeek |
|---|---|
| Modality | Text |
| Context window | 1,048,576 tokens |
| Max output | 393,216 tokens |
| Released | 2026-08-13 |
| Input price | $1.32 per 1M tokens |
| Output price | $3.96 per 1M tokens |
| Cached input | $0.0440 per 1M tokens |
| Capabilities | Chat completions, Streaming where supported, Tool calling where supported |
| Endpoint | POST /v1/chat/completions or POST /v1/messages (compatible chat routes) |
| Model id | deepseek-v4-pro |
How pricing works for DeepSeek V4 Pro
DeepSeek V4 Pro is billed per token — $1.32 per 1M input tokens and $3.96 per 1M output tokens, with cached input at $0.0440 per 1M tokens. The published price is pay-as-you-go, with no monthly fee; actual request cost depends on measured token usage.
Calling DeepSeek V4 Pro on KeepRouter
Point a compatible client at the supported KeepRouter endpoint and set the model to deepseek-v4-pro. KeepRouter preserves the client-facing request shape while handling upstream routing or translation. Use POST /v1/chat/completions or, on compatible chat routes, POST /v1/messages; streaming and tool support depend on the model's active route.
cURL
curl https://keeprouter.com/v1/chat/completions \
-H "Authorization: Bearer $KEEPROUTER_KEY" -H "Content-Type: application/json" \
-d '{"model":"deepseek-v4-pro","messages":[{"role":"user","content":"Hello"}]}'Python
import os
from openai import OpenAI
client = OpenAI(base_url="https://keeprouter.com/v1", api_key=os.environ["KEEPROUTER_KEY"])
r = client.chat.completions.create(model="deepseek-v4-pro", messages=[{"role":"user","content":"Hello"}])JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://keeprouter.com/v1", apiKey: process.env.KEEPROUTER_KEY });
const r = await client.chat.completions.create({ model: "deepseek-v4-pro", messages: [{ role: "user", content: "Hello" }] });Estimate API costs
At the current KeepRouter customer price, an example workload of 1,000 total input tokens, no cached input, and 500 output tokens per request costs approximately $0.003300 per request. At 100 requests per day, that is $9.90 over 30 days. This is a usage estimate, excluding processing fees, taxes, retries and application infrastructure. Actual usage, cache hits and supported generation durations need their own checks.
Adjust quantities in the API cost calculator.
How to evaluate DeepSeek V4 Pro
DeepSeek V4 Pro is listed on KeepRouter as text under the exact id deepseek-v4-pro. Use /v1/chat/completions for the listed route; a maker's upstream features do not automatically apply to this gateway endpoint. The published context window is 1,048,576 tokens and the published output limit is 393,216 tokens. These are limits, not a recommended request size.
First workload: Start with one representative text task, such as summarizing a document or drafting a structured answer. Compare answer quality, latency and billed input/output tokens.
Before production: For agent use, test tool calls and structured output on this exact model route before production; an OpenAI-compatible chat endpoint alone does not prove either feature.
Agent setup paths
OpenCode
OpenCode documents a custom OpenAI-compatible provider. Set baseURL to https://keeprouter.com/v1 and list deepseek-v4-pro as a model; validate tool behavior on the exact route. Official setup.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"keeprouter": {
"npm": "@ai-sdk/openai-compatible",
"name": "KeepRouter",
"options": {
"baseURL": "https://keeprouter.com/v1",
"apiKey": "{env:KEEPROUTER_API_KEY}"
},
"models": {
"deepseek-v4-pro": {
"name": "DeepSeek V4 Pro"
}
}
}
}
}Continue
Continue documents provider: openai with a custom apiBase. Set apiBase to https://keeprouter.com/v1 and model to deepseek-v4-pro; validate the selected feature and endpoint. Official setup.
name: KeepRouter
version: 0.0.1
schema: v1
models:
- name: DeepSeek V4 Pro
provider: openai
model: deepseek-v4-pro
apiBase: https://keeprouter.com/v1
apiKey: <YOUR_KEEPROUTER_API_KEY>These are documented configuration paths; model-specific tool, streaming and multimodal behavior still needs a real request test.
Public model usage evidence
OpenRouter identifies the corresponding variant as deepseek/deepseek-v4-pro-20260813. The figures below are OpenRouter token volume, not API call counts, KeepRouter traffic or market-wide usage.
- Hermes Agent (agent): 729B tokens attributed to this exact model in OpenRouter's public Apps block; observed 2026-09-28. The model page does not state the Apps block's measurement window. OpenRouter model apps.
- pi (agent): 173B tokens attributed to this exact model in OpenRouter's public Apps block; observed 2026-09-28. The model page does not state the Apps block's measurement window. OpenRouter model apps.
App attribution is opt-in and reflects traffic through OpenRouter. It does not prove the app uses KeepRouter, endorse this gateway, or establish a model quality ranking. Tokenizers and windows can differ; do not add the weekly total to the app figures.
Source: OpenRouter model Apps observed 2026-09-28. The model Apps block does not state its measurement window.
Published examples and cases
OpenRouter's model-specific Apps view publicly attributes traffic to Hermes Agent and pi. This is a public adoption signal, not a published implementation study or a KeepRouter customer claim.
Source and verification boundary
Official DeepSeek V4 Pro documentation. KeepRouter's live catalog is authoritative for the customer price and enabled endpoint shown here; the maker remains authoritative for upstream model capabilities and limits.
Pricing and implementation guides
- DeepSeek API pricing and cached-token cost
- Calculate your API workload cost
- KeepRouter API keys: move from free to paid models
Guides
Related models
- DeepSeek V4.1 Flash by DeepSeek — $0.3000 per 1M input tokens and $1.20 per 1M output tokens
- DeepSeek V3.2 by DeepSeek — $0.2288 per 1M input tokens and $0.3432 per 1M output tokens
- DeepSeek V3.1 by DeepSeek — $0.2100 per 1M input tokens and $0.7900 per 1M output tokens
- Devstral Medium by Mistral AI — $0.4000 per 1M input tokens and $2.00 per 1M output tokens
- Doubao 2.0 Mini by ByteDance — $0.1500 per 1M input tokens and $1.50 per 1M output tokens
- Doubao Seed 2.1 Pro by ByteDance — $0.9000 per 1M input tokens and $4.48 per 1M output tokens
All models & pricing · Quickstart · KeepRouter vs OpenRouter · Glossary · Get an API key
Catalog facts and prices last changed .
Page content reviewed .