deepseek-v4-pro — price, context and performance
deepseek-v4-pro is a DeepSeek model with a 1M context window supporting Reasoning, Tools. Input $1.32, output $3.96 per 1M tokens.
Overview
| Vendor | DeepSeek |
|---|---|
| Context | 1M |
| Capabilities | Reasoning, Tools |
| API formats | openai |
| Billing formula | p * 1.32 + cr * 0.044 + c * 3.96) : tier("off_peak", p * 0.66 + cr * 0.022 + c * 1.98 |
DeepSeek V4 Pro snapshot with million-token context and support for thinking and non-thinking modesPricing
| Plan | Multiplier | Input | Output | Cached input | Note |
|---|---|---|---|---|---|
| Base price | 1× | $1.32 | $3.96 | $0.04 | |
| Test | 0.1× | $0.13 | $0.40 | $0.0044 | Limited — degraded reasoning, unstable. Test only. |
| Eco | 0.3× | $0.40 | $1.19 | $0.01 | Standard — standard reasoning, moderate stability. |
| Pro | 2× | $2.64 | $7.92 | $0.09 | Enterprise — full reasoning, high stability. |
| Max | 4× | $5.28 | $15.84 | $0.18 | Premium — max reasoning & stability. |
Only groups enabled for this model are listed.
Performance
| API endpoint | https://api.airai.cc/v1 |
|---|---|
| OpenAI-compatible | OpenAI-compatible |
FAQ
How much does deepseek-v4-pro cost?
Input $1.32, output $3.96 per 1M tokens.
What is the context window of deepseek-v4-pro?
deepseek-v4-pro has a 1M context window: the combined token limit for input and output in a single request.
How do I call deepseek-v4-pro from code?
Point base_url to https://api.airai.cc/v1 and set model to deepseek-v4-pro. The API is fully OpenAI compatible.
Why does deepseek-v4-pro return error 429?
429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.
Model comparison
| Model | Vendor | Input | Output | Context |
|---|---|---|---|---|
| deepseek-v4-pro | DeepSeek | $1.32 | $3.96 | 1M |
| deepseek-flash-1017 | DeepSeek | Price not published | — | not specified |
| deepseek-v4.1-flash | DeepSeek | $0.30 | $1.20 | not specified |
| deepseek-v4-flash | DeepSeek | $0.30 | $1.20 | 1M |
| deepseek-v4-flash-vision-exp | DeepSeek | $0.30 | $1.20 | 1M |
| deepseek-v4-pro-260425 | DeepSeek | Price not published | — | not specified |
| DeepSeek-V4.1-Flash | DeepSeek | $0.14 | $0.28 | not specified |
| deepseek-v4-flash-0731 | DeepSeek | $0.44 | $1.32 | not specified |
| deepseek-flash | DeepSeek | $0.30 | $1.20 | 1M |
| deepseek-v3-1 | DeepSeek | $0.58 | $1.74 | not specified |
Troubleshooting
429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.
Common causes
- Too many concurrent requests
- Quota of the current plan exhausted
- Retrying immediately without backoff
How to fix
- Limit concurrency and retry with exponential backoff
- Switch to a plan with a larger quota
- Cache repeated requests
How to connect
curl https://api.airai.cc/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(
api_key="<YOUR_API_KEY>",
base_url="https://api.airai.cc/v1"
)
response = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "<YOUR_API_KEY>",
baseURL: "https://api.airai.cc/v1"
});
const response = await client.chat.completions.create({
model: "deepseek-v4-pro",
messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);const OpenAI = require("openai");
const client = new OpenAI({
apiKey: "<YOUR_API_KEY>",
baseURL: "https://api.airai.cc/v1"
});
client.chat.completions.create({
model: "deepseek-v4-pro",
messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));Replace <YOUR_API_KEY> with the API Key from your token settings.
Compatible endpoints
openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search
Gemini SDK · TypeScript
import { GoogleGenerativeAI } from "@google/generative-ai";
const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "deepseek-v4-pro" });
const result = await model.generateContent(
"Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());Authentication
All requests must include the Authorization: Bearer <TOKEN> header. Anthropic-format endpoints also accept the x-api-key header. Generate your API Key on the Tokens page, where you can scope access by model, group, IP, and rate limits.
Supported parameters
| Parameter | Type | Default | Range | Description |
|---|---|---|---|---|
temperature | float | 1 | 0–2 | Sampling temperature; lower is more stable |
top_p | float | 1 | 0–1 | Nucleus sampling cumulative probability |
max_tokens | integer | — | — | Maximum tokens in the response |
frequency_penalty | float | 0 | −2–2 | Penalizes repeated high-frequency tokens |
presence_penalty | float | 0 | −2–2 | Encourages introducing new topics |
stop | string[] | null | ≤ 4 | Up to 4 strings that stop generation |
seed | integer | null | — | Seed for more reproducible sampling |
n | integer | 1 | — | Number of candidate completions |
stream | boolean | false | — | Stream tokens via SSE |
response_format | object | — | — | Force JSON output or schema-conformant results |
tools | array | — | — | Function/tool declarations the model can call |
tool_choice | string | object | auto | — | Tool selection strategy or specific tool name |
logprobs | boolean | false | — | Return log probabilities for each token |
top_logprobs | integer | null | 0–20 | Number of top probabilities returned per token |
logit_bias | map | — | — | Logit bias mapping per token |
user | string | — | — | End-user identifier for risk auditing |
Rate limits
| Tier | RPM | TPM | RPD |
|---|---|---|---|
| Eco | 990 | 398K | 20K |
| Test | 980 | 393K | 20K |
Data updated: 2026-11-25 12:35