APIMart
Back to all models

DeepSeek V3.2 API

DeepSeekModel ID deepseek-v3.2Text modelReleased December 1, 2025

Use DeepSeek V3.2 to decide from a tool’s order data whether a refund is allowed, track down why a test fails, or pull the latest to-dos and deadlines out of several meeting notes.

Max input
163,840 tokens
Max output
163,840 tokens
Input → output
Text → Text
  • Streaming
  • OpenAI SDK compatible

DeepSeek V3.2 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 V3.2.

Try DeepSeek V3.2 with your own material

Support and ops agents with tools

Connect DeepSeek V3.2 to lookup and action tools and let it decide the next step from the tool data and your business rules. Before launch, test a few edge-case conversations to see whether it calls the wrong tool.

Example: Can this order still be returned?

Material

User
Can I return order A1024? Today is November 19, 2026.
Tool get_order result
{ "order_id": "A1024", "status": "delivered", "delivered_at": "2026-11-10", "category": "electronics" }
Return policy
Electronics can be returned for any reason within 7 days of delivery; after 7 days, only quality issues are accepted.

PromptUsing the user’s question, the tool result and the return policy, decide whether a return is allowed, and say which tool to call next or whether to ask the user first.

Sample answer · written by hand to show the reasoning

Order A1024 was delivered on November 10; by November 19 that is 9 days, past the 7-day no-reason return window for electronics, so it can’t simply be returned. Don’t call the refund tool. First ask the user whether the item has a quality issue; if it does, call create_ticket to open a quality-issue ticket with order number A1024 and the description.

About the DeepSeek V3.2 API

  • Less compute at long context

    V3.2 uses DeepSeek Sparse Attention, which cuts computation sharply at long context while keeping quality. It is the only architectural change from V3.1-Terminus, added through continued training.

  • Thinking inside tool use

    DeepSeek says it is the first DeepSeek model to think directly while using tools, and both thinking and non-thinking modes can call tools; its training data covers 1,800+ environments and 85,000+ complex instructions.

  • DeepSeek’s daily driver

    DeepSeek calls V3.2 “your daily driver at GPT-5 level performance” and releases the weights under the MIT license. V3.2-Speciale, aimed at competition reasoning, was released separately and does not support tool calls.

  • DeepSeek V3.2 API key and access

    You don’t need a separate DeepSeek V3.2 API key: one APIMart key works for every model. Check the DeepSeek V3.2 pricing table on this page for current DeepSeek V3.2 API pricing, then call an OpenAI Chat Completions-compatible endpoint with the model ID deepseek-v3.2.

DeepSeek V3.2 official benchmark results

Selected results DeepSeek published at launch.

  • SWE Verified

    73.1%

    Resolving real issues in open-source projects (thinking mode). GPT-5 High scores 74.9%, Claude Sonnet 4.5 77.2%.

  • SWE Multilingual

    70.2%

    Real software engineering tasks across programming languages. Claude Sonnet 4.5 scores 68.0%.

  • Terminal Bench 2.0

    46.4%

    Multi-step tasks in a command-line terminal (Claude Code framework). GPT-5 High scores 35.2%.

  • BrowseComp

    51.4%

    Finding answers through multi-round search and browsing; 67.6% with context management.

  • τ²-Bench

    80.3

    Serving users with tools under policy in airline, retail and telecom settings. GPT-5 High scores 80.2.

  • AIME 2025

    93.1%

    American Invitational Mathematics Examination 2025 problems. GPT-5 High scores 94.6%.

How to call the DeepSeek V3.2 API

To call DeepSeek V3.2, 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-v3.2",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

DeepSeek V3.2 access details

Model IDdeepseek-v3.2
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 V3.2 API request parameters

DeepSeek V3.2 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-v3.2 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 V3.2 API pricing

The DeepSeek V3.2 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
Input2.056Credits~$0.20561.9532Credits~$0.19531.8504Credits~$0.1852.57Credits~$0.25720%
Output3.084Credits~$0.30842.9298Credits~$0.2932.7756Credits~$0.27763.855Credits~$0.385520%

Prices are for reference only. View full pricing

Why call DeepSeek V3.2 API through APIMart

  • 20% below official pricing

    DeepSeek V3.2 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below DeepSeek's official prices.

    See membership prices
  • One API key for 500+ models

    DeepSeek V3.2, 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 V3.2 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 V3.2 API key works for every model in the table; just change the model parameter.

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

DeepSeek V3.2 FAQ

Does DeepSeek V3.2 accept image input?

No. DeepSeek V3.2 takes text in and returns text. If your task needs image input, DeepSeek V4.1 Flash supports it; on APIMart you switch by changing the model parameter, and the endpoint and API key stay the same.

How does DeepSeek V3.2 relate to V3.2-Exp and V3.2-Speciale?

V3.2-Exp was the experimental release of September 29, 2025, built on V3.1-Terminus and the first to use DeepSeek Sparse Attention; V3.2 is its official successor. V3.2-Speciale is a high-compute reasoning variant with the same architecture, aimed at math and programming competitions, without tool calls, and DeepSeek’s API offered it only temporarily until December 15, 2025. APIMart offers deepseek-v3.2.

How do thinking and tool calls work together in DeepSeek V3.2?

DeepSeek says V3.2 is the first DeepSeek model to integrate thinking directly into tool use, and both thinking and non-thinking modes support tool calls. In the technical report, thinking mode does better on agent benchmarks: 46.4 on Terminal Bench 2.0 (37.1 without thinking) and 38.0 on MCP-Mark (26.5 without). For multi-step tool tasks, test quality and latency on a few real flows first.

What does DeepSeek Sparse Attention change for me?

DeepSeek Sparse Attention (DSA) is the only architectural change in V3.2 compared with V3.1-Terminus, designed to cut computation sharply at long context while keeping quality. When DeepSeek launched V3.2-Exp, it cut its official API prices by more than half. For callers the API usage is unchanged, and long-document and long-conversation requests become more economical.

Is the DeepSeek V3.2 context 128K or 163,840 tokens?

They measure different things. DeepSeek’s official API documentation gave V3.2 a 128K context, with up to 64K output in thinking mode and 8K in non-thinking mode. On APIMart, the limits shown on this page apply: up to 163,840 input tokens and 163,840 output tokens per request. The longer the input and output, the higher the latency and cost.

What sampling settings does DeepSeek recommend for V3.2?

The model card recommends temperature 1.0 and top_p 0.95 (for local deployment). Use these unless you have a reason not to; for steadier output, put the requirements in the prompt, such as a fixed output format and an example.

How can I try this model online?

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

Which model ID does the DeepSeek V3.2 API use?

Set model to deepseek-v3.2. 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 V3.2?

On APIMart, DeepSeek V3.2 accepts up to 163,840 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

DeepSeek V3.2 can output up to 163,840 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the DeepSeek V3.2 API cost?

The DeepSeek V3.2 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.2056 per million input tokens and $0.3084 per million output tokens. Diamond: $0.185 per million input tokens and $0.2776 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.