deepseek-v4-pro API pricing
deepseek-v4-pro on InferSpeed: $0.396 input, $1.19 output, $0.0132 cache read per 1M tokens, 40% below the official list price. OpenAI-compatible API, pay per token.
Price (USD per 1M tokens)
| Input | Output | Cache read | |
|---|---|---|---|
| Price | $0.396 | $1.19 | $0.0132 |
| Official list price | $0.66 | $1.98 | — |
40% below the official list price.
Endpoints
| API | Base URL |
|---|---|
OpenAI Chat Completions (/chat/completions) | https://api.inferspeed.ai/v1 |
Authentication: Authorization: Bearer $INFERSPEED_API_KEY (x-api-key also works).
FAQ
How much does the deepseek-v4-pro API cost?
InferSpeed charges $0.396 per 1M input tokens, $1.19 per 1M output tokens and $0.0132 per 1M cache-read tokens (USD), billed per token from a prepaid balance. The official list price is $0.66 input / $1.98 output, so this is 40% below the official list price.
Which APIs can I call deepseek-v4-pro with?
The price list names these APIs for deepseek-v4-pro: OpenAI Chat Completions (POST https://api.inferspeed.ai/v1/chat/completions). Authentication: Authorization: Bearer $INFERSPEED_API_KEY (x-api-key also works).
Which API key do I need for deepseek-v4-pro?
One API key calls every live model, deepseek-v4-pro included. New here? Sign up at https://inferspeed.ai/register first, then create a key at https://inferspeed.ai/keys and name the model in the request. Each request is billed at the price of the model that served it.
Which environment variables do I set for deepseek-v4-pro?
Copy and paste:
export INFERSPEED_API_KEY="YOUR_API_KEY"
# OpenAI SDKs, OpenAI-compatible tools
export OPENAI_BASE_URL="https://api.inferspeed.ai/v1"
export OPENAI_API_KEY="$INFERSPEED_API_KEY"
The key variable is spelled exactly INFERSPEED_API_KEY.
Can I try deepseek-v4-pro for free?
New InferSpeed accounts get $1 of free credit when they sign up with GitHub or Google (no card; valid 3 days): sign up at https://inferspeed.ai/register, then create a key at https://inferspeed.ai/keys. At $1.19 per 1M output tokens, $1 is about 841K output tokens of deepseek-v4-pro.
How do I call deepseek-v4-pro?
Set the model explicitly in the request:
curl https://api.inferspeed.ai/v1/chat/completions \
-H "Authorization: Bearer $INFERSPEED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"messages": [{"role": "user", "content": "Say hello in one sentence."}]
}'
What happens if I request a model my key cannot call?
A live model is always served as written. Any other name, such as an agent default (claude-*, gpt-*, codex-*, o*, gemini-*, grok-*), a model not on sale yet or a typo, is routed to a live model (glm-5.3, then kimi-k3) instead of failing. The model field and the X-Served-Model header name the model that served the request (the name you sent is in X-Model-Routed-From), and you are billed at that model's price. You get an error instead only with X-Model-Strict: 1, for a name of the key's own vendor that it does not serve, for a name longer than 64 characters, or when the key has no live routing target.
More
Setup for Claude Code, Codex CLI, OpenCode and SDKs: /developers.md. All models and prices: /model-plaza. Prices as JSON: /api/v1/public/pricing.
Related models
- deepseek-v4-flash API pricing: $0.09 input / $0.36 output per 1M tokens
- deepseek-v4.1-flash API pricing: $0.09 input / $0.36 output per 1M tokens
- MiniMax-M3 API pricing: $0.18 input / $0.72 output per 1M tokens
- MiniMax-M3.1-Flash-Preview API pricing: $0.18 input / $0.72 output per 1M tokens