APIMart
Back to all models

DeepSeek R1-0528 API

DeepSeekModel ID deepseek-r1-0528Text modelReleased May 28, 2025

Use DeepSeek R1-0528 to work through a probability problem and check it another way, find out why a piece of code is slow, or check a rota against a set of rules one by one.

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

DeepSeek R1-0528 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 R1-0528.

Try DeepSeek R1-0528 with your own material

Solve and verify math problems

Give DeepSeek R1-0528 the problem and ask for a full derivation, then a check by a different method. If the two disagree, ask it to point to the step that went wrong.

Example: What is the chance of a multiple of 3 or 5?

Material

Problem
An integer is picked at random from 1 to 100. What is the probability that it is divisible by 3 or 5?

PromptSolve this problem, show the derivation, then check the answer by another method.

Sample answer · written by hand to show the reasoning

Derivation: from 1 to 100 there are 33 multiples of 3, 20 multiples of 5 and 6 numbers that are multiples of both (multiples of 15). By inclusion–exclusion, 33 + 20 − 6 = 47 numbers are divisible by 3 or 5, so the probability is 47/100. Check: count the numbers divisible by neither. 100 − 33 = 67 are not divisible by 3; of those, 20 − 6 = 14 are divisible by 5, leaving 67 − 14 = 53. 100 − 53 = 47, which matches.

About the DeepSeek R1-0528 API

  • Deeper reasoning, big math gains

    DeepSeek added compute and improved algorithms in post-training. AIME 2025 accuracy rose from 70.0% to 87.5%, and average reasoning per question grew from about 12K to about 23K tokens.

  • Better front-end code, fewer hallucinations

    DeepSeek says this version is stronger at front-end code and hallucinates less, and it adds JSON output and function calling support; LiveCodeBench rose from 63.5 to 73.3.

  • System prompts supported

    Unlike the original R1, R1-0528 supports system prompts and no longer needs a think tag at the start of the output to force reasoning. DeepSeek’s official web and app use temperature 0.6.

  • DeepSeek R1-0528 API key and access

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

DeepSeek R1-0528 official benchmark results

Selected results DeepSeek published at launch.

  • AIME 2025

    87.5%

    American Invitational Mathematics Examination 2025 problems. The previous R1 scores 70.0%.

  • GPQA-Diamond

    81.0

    Graduate-level science questions. The previous R1 scores 71.5.

  • LiveCodeBench

    73.3

    New coding problems from August 2024 to May 2025. The previous R1 scores 63.5.

  • SWE Verified

    57.6%

    Resolving real issues in open-source projects (Agentless framework). The previous R1 scores 49.2%.

  • Aider-Polyglot

    71.6%

    Editing code across many programming languages to spec. The previous R1 scores 53.3%.

  • Humanity's Last Exam

    17.7

    Hard questions across many subjects, text-only subset. The previous R1 scores 8.5.

How to call the DeepSeek R1-0528 API

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

DeepSeek R1-0528 access details

Model IDdeepseek-r1-0528
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 R1-0528 API request parameters

DeepSeek R1-0528 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-r1-0528 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 R1-0528 API pricing

The DeepSeek R1-0528 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
Input4.08Credits~$0.4083.876Credits~$0.38763.672Credits~$0.36725.1Credits~$0.5120%
Output12.3216Credits~$1.232211.7055Credits~$1.170611.0894Credits~$1.108915.402Credits~$1.540220%

Prices are for reference only. View full pricing

Why call DeepSeek R1-0528 API through APIMart

  • 20% below official pricing

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

Differences between DeepSeek models
ComparisonDeepSeek R1-0528 CurrentDeepSeek R1DeepSeek V3.2DeepSeek V4 ProDeepSeek V4.1 Flash
Best forDeep reasoning, Math and code, Open weightsOriginal reasoning model, Competition math and coding, MIT licensed, distillation allowedAgents and tool use, Long context, 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 output32,768 tokens8,192 tokens163,840 tokens393,216 tokens393,216 tokens
Input price$0.408$0.448$0.2056$1.0286$0.2286
Output price$1.2322$1.792$0.3084$3.0857$0.9143

DeepSeek R1-0528 FAQ

Should I use DeepSeek R1-0528 or DeepSeek V3.2?

R1-0528 is a dedicated reasoning model that reasons more deeply, scoring 87.5% on AIME 2025. DeepSeek V3.2 is a general model that can call tools in both thinking and non-thinking modes. Both take text only. On APIMart you switch between them with the model parameter: deepseek-r1-0528 or deepseek-v3.2.

How is DeepSeek R1-0528 different from the original DeepSeek R1?

R1-0528 is a minor version upgrade of R1 from May 2025 that reasons more deeply: AIME 2025 accuracy rose from 70.0% to 87.5%, and GPQA-Diamond from 71.5 to 81.0. DeepSeek says it hallucinates less, writes better front-end code, adds JSON output and function calling support, and now supports system prompts. On APIMart they are separate model IDs; R1-0528 uses deepseek-r1-0528.

Why does DeepSeek R1-0528 use more tokens for the same question?

Because it reasons for longer. DeepSeek reports about 23K tokens per question on average on AIME, against about 12K for the previous version. Reasoning counts as output and is billed at the output rate, so set max_tokens high enough to leave room for both the reasoning and the answer. For simple Q&A, rewriting or classification it isn’t worth it; use a model that doesn’t reason or reasons briefly.

How should I set prompts and temperature for DeepSeek R1-0528?

R1-0528 supports system prompts, and you no longer need to start the output with a think tag to force reasoning. DeepSeek sets temperature to 0.6 in its official web and app, and its evaluations use temperature 0.6 and top_p 0.95. Clear requirements and a defined output format help more than repeatedly tuning sampling settings.

Is the DeepSeek R1-0528 context 64K or 163,840 tokens?

The two numbers measure different things. DeepSeek’s official API documentation capped R1-0528 input at 64K, with reasoning and answer not counted; the DeepSeek R1 model card lists a 128K context for the model. On APIMart, the limits shown on this page apply: up to 163,840 input tokens and 32,768 output tokens per request.

DeepSeek R1-0528 has open weights. Why use the API?

DeepSeek published the weights on Hugging Face under the MIT license, which allows commercial use and distillation, but the full model is a mixture-of-experts model with hundreds of billions of parameters, so self-hosting needs a multi-GPU server and someone to run it. Through the API you pay per token with no hardware, and the same key works for other models. Consider self-hosting when data must stay on your own machines or your usage is large and steady.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select DeepSeek R1-0528 in the text category to start exploring.

Which model ID does the DeepSeek R1-0528 API use?

Set model to deepseek-r1-0528. 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 R1-0528?

On APIMart, DeepSeek R1-0528 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 R1-0528 can output up to 32,768 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the DeepSeek R1-0528 API cost?

The DeepSeek R1-0528 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.408 per million input tokens and $1.2322 per million output tokens. Diamond: $0.3672 per million input tokens and $1.1089 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.