DeepSeek API (also written Deep Seek API) on APIMart: the current DeepSeek models, V4 Pro and V4.1 Flash, plus V3.2, R1 and DeepSeek-OCR, with 1M-token context on the V4 models and pay-per-token pricing.
Guides, comparisons and pricing analysis from the APIMart blog.
What's on your mind?
Ask APIMart
deepseek-v4-pro
Transparent pricing with no hidden fees. Pay only for what you use.
Your timezone: UTC
Peak
Mon–Sun · 00:00–14:00
Standard time rate · 20% total savings now
Off-peak
All other times
Extra 50% off
Per 1M tokens
| Rate | PeakCurrent | Off-peak | Official Price |
|---|---|---|---|
| Input | 10.2857CreditsPer 1M tokens ~$1.0286 | 5.1429CreditsPer 1M tokens ~$0.5143 | 12.8571CreditsPer 1M tokens ~$1.2857 |
| Cached input | 1.0286CreditsPer 1M tokens ~$0.1029 | 0.5143CreditsPer 1M tokens ~$0.0514 | 1.2857CreditsPer 1M tokens ~$0.1286 |
| Output | 30.8571CreditsPer 1M tokens ~$3.0857 | 15.4286CreditsPer 1M tokens ~$1.5429 | 38.5714CreditsPer 1M tokens ~$3.8571 |
Call DeepSeek's current models on APIMart: DeepSeek V4 Pro for hard reasoning, coding and agents, and DeepSeek V4.1 Flash for fast, low-cost chat and pipelines. Both take up to 1M tokens of context, switch thinking on or off per request, and cost half the peak rate during off-peak hours.
What you get with the DeepSeek V4 models on APIMart
Thinking is on by default. Set reasoning_effort to low, high or max, or turn thinking off for faster replies.
DeepSeek V4 Pro and V4.1 Flash accept up to 1M tokens of context and return up to 384K tokens of output.
On APIMart, the V4 models cost 50% of the peak rate during off-peak hours. The pricing table shows the current window in your time zone.
V4 Pro handles hard coding, debugging and multi-step agent work; V4.1 Flash keeps long agent loops affordable.
Use the OpenAI SDK with the APIMart base URL and change only the model name to a DeepSeek ID.
Both V4 models support function calling and JSON output, according to DeepSeek's official specs.
DeepSeek lists vision input for V4.1 Flash, while V4 Pro is text-only. For scanned pages, use deepseek-ocr.
DeepSeek publishes V4 weights under the MIT License. APIMart runs the API, so you don't need GPUs to use it.
How teams use DeepSeek models in production
Use V4 Pro for hard fixes and refactors, and V4.1 Flash for high-volume agent steps.
Load full contracts, reports or codebases into the 1M-token context for summaries and answers.
Build support and chat apps on V4.1 Flash with thinking turned off for quick, cheap replies.
Run proofs, analysis and step-by-step reasoning with V4 Pro at high or max effort.
Schedule large batch runs for off-peak hours to pay half the peak rate on the V4 models.
Translate and write in Chinese, English and other major languages.
Three steps to your first DeepSeek request on APIMart.
Create an APIMart account and top up your balance. It works for every model on the platform, including the DeepSeek API.
Generate an API key in your dashboard. The same key calls every DeepSeek model and all other models on APIMart.
Point the OpenAI SDK at https://api.apimart.ai/v1, set the model to deepseek-v4-pro or deepseek-v4.1-flash and pass stream explicitly.
Call DeepSeek V4 Pro with thinking on, or V4.1 Flash with thinking off, through the OpenAI-compatible Chat Completions endpoint.
Create an APIMart API key, add funds and set APIMART_API_KEY on your server. For Python or Node.js, install the openai package; all examples use the same key and base URL.
Thinking is on by default. Use reasoning_effort to choose low, high or max, or pass thinking with type disabled for faster replies. Pass stream explicitly.
curl --fail-with-body https://api.apimart.ai/v1/chat/completions \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"stream": false,
"reasoning_effort": "high",
"messages": [
{
"role": "user",
"content": "Explain when a long-context model is a better fit than retrieval for document Q&A."
}
]
}'import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["APIMART_API_KEY"],
base_url="https://api.apimart.ai/v1",
)
resp = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[{"role": "user", "content": "Summarize the benefits of off-peak batch processing in three bullet points."}],
stream=False,
# thinking is on by default; turn it off for faster, cheaper replies
extra_body={"thinking": {"type": "disabled"}},
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.APIMART_API_KEY,
baseURL: "https://api.apimart.ai/v1",
});
const resp = await client.chat.completions.create({
model: "deepseek-v4.1-flash",
messages: [{ role: "user", content: "Summarize the benefits of off-peak batch processing in three bullet points." }],
stream: false,
thinking: { type: "disabled" },
});
console.log(resp.choices[0].message.content);What developers say about our DeepSeek API
DeepSeek-R1 matches o1 on our math benchmarks at 1/10 the cost. Incredible value.
V3 is our default model for general chat. Fast, capable, and extremely affordable.
DeepSeek V4.1 Flash is perfect for our research assistant product. Fast answers and strong long-context analysis.
We run R1-distill-32b for high-volume tasks. Same great reasoning at a lower price point.
DeepSeek's coding ability is surprisingly strong. It handles complex refactoring tasks well.
Best price-to-performance ratio in the market. We migrated our entire pipeline to DeepSeek.
Choose between the current DeepSeek models, DeepSeek V4 Pro and V4.1 Flash, and the earlier DeepSeek V3.2 and R1. Compare APIMart token rates, context windows and use cases, then select a model to open its playground and detailed pricing.
Prices are APIMart Gold member rates in USD per 1M tokens at the peak rate. Input and output are billed separately; the cache-read price applies only to cache hits. The V4 models cost 50% of these rates during off-peak hours, shown in the detailed pricing above.
| Model / API ID | Input | Output | Cache read | Context window | When to choose it |
|---|---|---|---|---|---|
DeepSeek V4 Prodeepseek-v4-pro | $1.0286 | $3.0857 | $0.1029 | 1,000,000Max output 393,216 | Hard reasoning, complex coding and agent work. |
DeepSeek V4.1 Flashdeepseek-v4.1-flash | $0.2286 | $0.9143 | $0.0045 | 1,000,000Max output 393,216 | Fast, low-cost chat, extraction and pipelines. |
DeepSeek V3.2deepseek-v3.2 | $0.2056 | $0.3084 | — | 163,840 | Existing V3.2 integrations at a low rate. |
DeepSeek R1 (0528)deepseek-r1-0528 | $0.408 | $1.2322 | — | 163,840Max output 65,536 | Existing R1 reasoning workflows. |
APIMart routes DeepSeek requests to DeepSeek's official API, so context windows, max output and model features match DeepSeek's published specs; only the price differs. Limits for V3.2 and R1-0528 come from their official model cards. A dash means the value is unavailable.
Common questions about the DeepSeek API on APIMart
The DeepSeek API lets you call DeepSeek's language models from your own code. On APIMart, you use one API key and the OpenAI-compatible Chat Completions endpoint to call DeepSeek V4 Pro, V4.1 Flash and earlier DeepSeek models, and you pay per token.
The current models are deepseek-v4-pro and deepseek-v4.1-flash. APIMart also lists deepseek-v4-flash, deepseek-v3.2, deepseek-v3.2-exp, deepseek-v3.1-terminus, deepseek-v3-0324, deepseek-r1-0528, deepseek-r1-250528, deepseek-r1 and deepseek-ocr. Use these IDs as the model parameter; the playground above shows the full list.
Gold member rates per 1M input / output tokens are $1.03 / $3.09 for DeepSeek V4 Pro, $0.23 / $0.91 for V4.1 Flash, $0.21 / $0.31 for V3.2 and $0.41 / $1.23 for R1-0528. Cache hits cost less: $0.10 per 1M tokens on V4 Pro and $0.02 on V4.1 Flash. The pricing table shows live rates for every model.
On APIMart, deepseek-v4-pro, deepseek-v4.1-flash and deepseek-v4-flash cost 50% of the peak rate during off-peak hours. The pricing table shows the peak and off-peak windows in your time zone and which one is active now. Other DeepSeek models use one price at all times.
Sign up on APIMart, add funds and create a key on the API Keys page. The same key works for the DeepSeek API and every other model on APIMart, with pay-as-you-go billing and no subscription.
Yes. Sign in to APIMart, create an API key and add funds, then use the playground at the top of this page to chat with DeepSeek in your browser. Playground messages use your API key and are billed per token from your balance, at the same rates as the API.
Yes, in practice. deepseek-flash is the model name DeepSeek's official API uses for DeepSeek V4.1 Flash. On APIMart, call the same model as deepseek-v4.1-flash.
No. The DeepSeek chat app is free, but API calls are billed per token. On APIMart you pay only for what you use; V4.1 Flash with thinking turned off is the lowest-cost way to start, and off-peak hours halve the rate on the V4 models.
Use V4 Pro for hard reasoning, complex coding and agent tasks where quality matters most. Use V4.1 Flash for chat, extraction and high-volume pipelines: it costs about a quarter of V4 Pro per token and, per DeepSeek's specs, also accepts image input. Both have 1M-token context.
DeepSeek has retired V4 Flash: its official API serves the old deepseek-v4-flash name with DeepSeek V4.1 Flash. APIMart still lists deepseek-v4-flash, but for new projects use deepseek-v4.1-flash, which is the current model and has the lower rate on APIMart.
DeepSeek V4 Pro and V4.1 Flash support up to 1M tokens of context and up to 384K output tokens, per DeepSeek's official specs. DeepSeek V3.2 and R1-0528 have a 163,840-token context window in their model configs.
Thinking is on by default with high effort. Pass "thinking": {"type": "disabled"} to turn it off, or set reasoning_effort to low, high or max. With the OpenAI Python SDK, put thinking inside extra_body. The reasoning text is returned in reasoning_content.
Yes. APIMart lists deepseek-r1-0528, deepseek-r1-250528 and deepseek-r1. For new work, DeepSeek V4 Pro or V4.1 Flash with thinking on covers the same step-by-step reasoning with a much longer context window.
Yes. Set base_url to https://api.apimart.ai/v1, use your APIMart key and a DeepSeek model ID such as deepseek-v4-pro. Existing OpenAI SDK code works without other changes.
Use https://api.apimart.ai/v1 as the base URL. Requests go to https://api.apimart.ai/v1/chat/completions with your APIMart key in the Authorization: Bearer header.
APIMart routes DeepSeek requests to DeepSeek's official API, so the models, context windows and features are the same; only the price differs. You also use one key and one balance for DeepSeek, GPT, Claude, Gemini, Qwen and other models instead of separate accounts.
DeepSeek's official specs list vision input for V4.1 Flash; V4 Pro is text-only. For scanned documents and images with text, use deepseek-ocr to extract the text, then send it to V4 Pro or V4.1 Flash.
Yes. DeepSeek V4 Pro and V4.1 Flash support tool calls and JSON output, according to DeepSeek's official specs. In thinking mode, pass earlier reasoning_content back to the API when your request includes tools.
Repeated prompt prefixes are billed at the lower cache-hit rate when the cache matches. You don't need to set anything. The comparison table shows the cache-read price for each model.
Use DeepSeek V4 Pro with high or max reasoning effort for hard bugs, refactors and multi-file changes. For many small edits or long agent loops, V4.1 Flash keeps costs low.
DeepSeek publishes open weights for its V4 models under the MIT License on Hugging Face. On APIMart you use the hosted API, so you don't need to run the model yourself.
Requests to api.apimart.ai are sent over HTTPS. APIMart processes API data such as request logs and the prompts, inputs and outputs you send, as described in its Privacy Policy. Review the Privacy Policy before sending sensitive data.
Explore more models in the same category.
GPT 5.5
GPT-5.5 is the latest generation of large language model developed and released by OpenAI.
GPT 5.4 Mini
GPT-5.4 mini is a compact AI foundation model provided by OpenAI, belonging to the GPT-5.4 series of small and faster versions.
GPT 5.4 Nano
GPT-5.4 Nano is the smallest and most cost-effective variant in the GPT-5.4 series provided by OpenAI.
GPT 5.4 Pro
GPT-5.4 Pro is a high-performance general-purpose large language model variant developed by OpenAI.