APIMart
Back to all models

DeepSeek V4 Pro API

DeepSeekModel ID deepseek-v4-proText modelReleased August 13, 2026

Use DeepSeek V4 Pro to find why a payment retry charges twice, compare two long contracts clause by clause, or let a coding agent work through a multi-step fix at max thinking effort.

Max input
1,000,000 tokens
Max output
393,216 tokens
Input → output
Text → Text
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

DeepSeek V4 Pro API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on DeepSeek V4 Pro.

Try DeepSeek V4 Pro with your own material

Coding agents on long tasks

Give DeepSeek V4 Pro a repository, a failing test and your tools, and let it read, edit and rerun until the test passes. Keep the tool log and review the final diff yourself before merging.

Example: Why does this payment retry charge the customer twice?

Material

Code
for attempt in range(3): key = uuid4() resp = charge(order_id, amount, idempotency_key=key) if resp.ok: break
Log
attempt 1: timeout after 10s; attempt 2: ok. Payment provider shows two charges.

PromptFind the bug that can charge a customer twice, explain how it happens, and show the smallest fix.

Sample answer · written by hand to show the reasoning

The idempotency key is created inside the loop, so each retry looks like a new payment. When attempt 1 timed out, the provider had already processed it, and attempt 2 charged again. Create the key once before the loop, for example from the order ID, and pass the same key on every attempt.

About the DeepSeek V4 Pro API

  • DeepSeek’s largest V4 model

    1.6T total parameters with 49B active per token, and a 1M-token context. The weights of DeepSeek-V4-Pro-0813 are open under the MIT License.

  • Three thinking levels, up to Max

    Thinking is on by default at high effort. Set it to low for simple requests or max for the hardest ones, or turn thinking off for the fastest replies.

  • Built up for agent work

    The August release raised agent results well above the preview, for example DeepSWE from 12.8 to 62.7. JSON output and tool calls are supported; input and output are text only.

  • DeepSeek V4 Pro API key and access

    You don’t need a separate DeepSeek V4 Pro API key: one APIMart key works for every model. The model ID is deepseek-v4-pro, the same as on DeepSeek’s API, so moving over means changing base_url and the key.

DeepSeek V4 Pro official benchmark results

Selected results DeepSeek published at launch.

  • Terminal Bench 2.1

    87.9

    Coding tasks completed in a terminal. Kimi K3 scored 88.3 and Claude Opus 4.8 85.0; the V4 Pro preview scored 72.1.

  • CyberGym

    83.3

    Cybersecurity tasks on real software vulnerabilities. Kimi K3 scored 80.0 and Claude Opus 4.8 78.3.

  • DeepSWE

    62.7

    Long-horizon software engineering tasks solved by an agent. Kimi K3 scored 67.5 and Claude Opus 4.8 58.0; the preview scored 12.8.

  • Toolathlon-Verified

    74.1

    Multi-step tasks that use many real tools. Kimi K3 scored 76.5 and Claude Opus 4.8 76.2.

  • AutomationBench (Public)

    31.8

    Business process automation. Kimi K3 scored 30.8 and Claude Opus 4.8 27.2.

  • Humanity's Last Exam (no tools / with tools)

    42.7 / 60.0

    Hard questions across many disciplines. Claude Opus 4.8 scored 49.8 / 57.9 and GLM-5.2 40.5 / 54.7.

How to call the DeepSeek V4 Pro API

To call DeepSeek V4 Pro, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v4-pro",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

DeepSeek V4 Pro access details

Model IDdeepseek-v4-pro
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

DeepSeek V4 Pro API request parameters

DeepSeek V4 Pro uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use deepseek-v4-pro for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

DeepSeek V4 Pro API pricing

The DeepSeek V4 Pro API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input10.2857Credits~$1.02869.7714Credits~$0.97719.2571Credits~$0.925712.8571Credits~$1.285720%
Cached input1.0286Credits~$0.10290.9771Credits~$0.09770.9257Credits~$0.09261.2857Credits~$0.128620%
Output30.8571Credits~$3.085729.3143Credits~$2.931427.7714Credits~$2.777138.5714Credits~$3.857120%

Prices are for reference only. View full pricing

Why call DeepSeek V4 Pro API through APIMart

  • 20% below official pricing

    DeepSeek V4 Pro API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below DeepSeek's official prices, and cached input costs just $0.1029 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    DeepSeek V4 Pro, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try DeepSeek V4 Pro with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which DeepSeek model should you choose?

Base prices per 1M tokens (USD). Your DeepSeek V4 Pro API key works for every model in the table; just change the model parameter.

Differences between DeepSeek models
ComparisonDeepSeek V4 Pro CurrentDeepSeek R1DeepSeek R1-0528DeepSeek V3.2DeepSeek V4.1 Flash
Best forAgentic coding, Long documents, Hard reasoningOriginal reasoning model, Competition math and coding, MIT licensed, distillation allowedDeep reasoning, Math and code, Open weightsAgents and tool use, Long context, Open weightsAgentic coding, Image understanding, High-volume agents
Input typesTextTextTextTextText, Image
Max input1,000,000 tokens65,536 tokens163,840 tokens163,840 tokens1,000,000 tokens
Max output393,216 tokens8,192 tokens32,768 tokens163,840 tokens393,216 tokens
Input price$1.0286$0.448$0.408$0.2056$0.2286
Output price$3.0857$1.792$1.2322$0.3084$0.9143

DeepSeek V4 Pro FAQ

DeepSeek V4 Pro vs V4.1 Flash: which should I use?

DeepSeek says tests by multiple parties put V4.1 Flash ahead of V4 Pro on performance, cost, speed and total runtime, and V4.1 Flash reads images, which V4 Pro does not. DeepSeek V4 Pro API pricing is also higher than V4.1 Flash. V4 Pro is the larger model and stays available for work already tuned to it. Both use one APIMart API key; to compare them on your own tasks, change only the model parameter.

How do I use max thinking effort on DeepSeek V4 Pro?

Max is the highest thinking effort, not a separate model: set reasoning_effort to max. The other levels are low and high, and high is the default. DeepSeek suggests low for simple tasks, high for everyday agent work and max for complex problems. Sending thinking with type disabled turns thinking off.

Is DeepSeek V4 Pro being retired?

No retirement date has been announced. DeepSeek’s September 10, 2026 release note said deepseek-v4-pro requests would route to V4.1 Flash from September 14, but its change log from the same day says DeepSeek decided to keep serving V4 Pro after that date with billing unchanged, and its pricing page lists deepseek-v4-pro as DeepSeek-V4-Pro-0813. DeepSeek says it will give notice of any change.

Does DeepSeek V4 Pro accept images?

No. DeepSeek lists vision as not supported for deepseek-v4-pro, so requests should be text only. For screenshots, charts or scanned pages, use deepseek-v4.1-flash with the same APIMart API key.

Is the DeepSeek V4 Pro max output 384K or 393,216 tokens?

They are the same limit written two ways. DeepSeek’s docs list the maximum output as 384K tokens, counting 1K as 1,024, which is 393,216 tokens; this page shows 393,216.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select DeepSeek V4 Pro in the text category to start exploring.

Which model ID does the DeepSeek V4 Pro API use?

Set model to deepseek-v4-pro. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of DeepSeek V4 Pro?

On APIMart, DeepSeek V4 Pro accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

DeepSeek V4 Pro can output up to 393,216 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the DeepSeek V4 Pro API cost?

The DeepSeek V4 Pro API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.0286 per million input tokens and $3.0857 per million output tokens. Diamond: $0.9257 per million input tokens and $2.7771 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.