DeepSeek Application APIs Guide (2026): Web Search, URL Reading, and What Flash Costs
Key takeaways
- DeepSeek's API docs now list a full set of application APIs: web search, file input, URL reading, model safety, speech recognition (ASR), and text-to-speech (TTS).
- The deepseek-flash model costs $0.15 per 1M input tokens on a cache miss and $0.60 per 1M output tokens at off-peak rates.
- Peak rates are double the off-peak rates. Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday through Friday, excluding Chinese public holidays.
- A cache hit on deepseek-flash costs $0.003 per 1M input tokens off-peak, which is 50 times cheaper than a cache miss at the same tier.
- Both deepseek-flash and deepseek-v4-pro support a 1M-token context window and up to 384K output tokens.
DeepSeek's quick start page now says that the full suite of application APIs is available. The banner lists web search, file input, URL reading, model safety, ASR, and TTS. I checked the banner on November 15, 2026. The per-endpoint guide has the request formats for those tools, and this post does not cover them. Instead, it covers the chat API you can call today and the pricing you need to plan around.
What the application APIs add
Application APIs handle work that otherwise needs glue code: searching the web, reading a URL, processing an uploaded file, transcribing audio, or generating speech. Each one has its own request shape, so read its endpoint guide before you build on it. The docs also list DeepSeek as a backend for coding agents such as Claude Code, Codex, and OpenCode. Some teams can use that without writing any code.
Test rate limits and failure modes before you depend on a new endpoint. The docs list a concurrency limit of 2,500 for deepseek-flash and 500 for deepseek-v4-pro.
Pricing you need to plan around
DeepSeek bills per 1M tokens. The price depends on cache status and time of day. These numbers come from the Models and Pricing page.
| Model | Input, cache hit (off-peak / peak) | Input, cache miss (off-peak / peak) | Output (off-peak / peak) | Context / max output |
|---|---|---|---|---|
| deepseek-flash (DeepSeek-V4.1-Flash-1017) | $0.003 / $0.006 | $0.15 / $0.30 | $0.60 / $1.20 | 1M / 384K |
| deepseek-v4-pro (DeepSeek-V4-Pro-0813) | $0.022 / $0.044 | $0.66 / $1.32 | $1.98 / $3.96 | 1M / 384K |
The retired names deepseek-v4-flash and deepseek-v4-flash-vision-exp still resolve. The docs say their requests run on DeepSeek-V4.1-Flash-1017 at flash prices. Change your model string anyway, so your code does not depend on a retired name.
Peak hours matter for scheduling. For a team in Shanghai (UTC+8), the weekday peak windows fall at 09:00 to 12:00 and 14:00 to 18:00 local time. Off-peak windows on weekdays are 00:00 to 01:00 UTC (08:00 to 09:00 Shanghai), 04:00 to 06:00 UTC (12:00 to 14:00 Shanghai), and 10:00 to 24:00 UTC (18:00 to 08:00 Shanghai the next day). Weekends are off-peak all day. Run batch jobs in those windows.
Calling the chat API
The endpoint is OpenAI-compatible. Set the base URL to https://api.deepseek.com and use deepseek-flash as the model name. This curl call follows the docs example, with thinking enabled.
curl https://api.deepseek.com/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-d '{
"model": "deepseek-flash",
"messages": [
{"role": "system", "content": "You are a release-notes classifier."},
{"role": "user", "content": "Label this commit as feature, fix, or chore: Bump lodash to 4.17.22"}
],
"thinking": {"type": "enabled"},
"reasoning_effort": "high",
"stream": false
}'
The Python SDK has no field for the thinking flag, so it goes in extra_body:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["DEEPSEEK_API_KEY"],
base_url="https://api.deepseek.com",
)
resp = client.chat.completions.create(
model="deepseek-flash",
messages=[
{"role": "system", "content": "You are a release-notes classifier."},
{"role": "user", "content": "Label this commit as feature, fix, or chore: Bump lodash to 4.17.22"},
],
extra_body={"thinking": {"type": "enabled"}, "reasoning_effort": "high"},
)
print(resp.choices[0].message.content)
print(resp.usage)
Node.js works the same way. Thinking is on by default for deepseek-flash, so the call below leaves it out:
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.DEEPSEEK_API_KEY,
baseURL: "https://api.deepseek.com",
});
const resp = await client.chat.completions.create({
model: "deepseek-flash",
messages: [
{ role: "system", content: "You are a release-notes classifier." },
{ role: "user", content: "Label this commit as feature, fix, or chore: Bump lodash to 4.17.22" },
],
});
console.log(resp.choices[0].message.content);
console.log(resp.usage);
Cost math for a batch job
Take a nightly job that sends 2 million input tokens and gets 300,000 output tokens back. Assume 80% of the input is a cache hit, because the system prompt stays the same across calls.
| Setup | Cache hits (1.6M) | Cache misses (0.4M) | Output (0.3M) | Total |
|---|---|---|---|---|
| deepseek-flash, off-peak | $0.005 | $0.060 | $0.180 | $0.245 |
| deepseek-flash, peak | $0.010 | $0.120 | $0.360 | $0.490 |
| deepseek-v4-pro, off-peak | $0.035 | $0.264 | $0.594 | $0.893 |
Peak timing doubles the flash bill for this job. Pro costs about 3.6 times as much as flash off-peak. Use Pro only for the cases your eval set shows that flash gets wrong. Cache hit rate and output length drive the bill more than the model tier does. Keep the system prompt byte-identical across calls, and set max_tokens on classification jobs.
How the models compare
The table compares the two DeepSeek models with Gemini 4 Hydrogen, which Google made generally available on November 12, 2026. Gemini prices come from the Google AI pricing page.
| Model | Input per 1M (cache miss) | Output per 1M | Context | Main limit |
|---|---|---|---|---|
| deepseek-flash | $0.15 off-peak, $0.30 peak | $0.60 off-peak, $1.20 peak | 1M tokens | Peak rates double the price on weekdays from 01:00 to 10:00 UTC |
| deepseek-v4-pro | $0.66 off-peak, $1.32 peak | $1.98 off-peak, $3.96 peak | 1M tokens | No image input |
| Gemini 4 Hydrogen | $1.50 (paid tier) | $7.50 | 1,048,576 tokens | Input costs 10 times deepseek-flash off-peak. Default max output is 65,536 tokens. |
My take
Use deepseek-flash for bulk work where a wrong label costs little. Send the cases your eval set flags to a stronger model. Schedule the bulk run outside peak hours. Do not swap the application APIs into an existing pipeline until you have read each endpoint guide and run a small test.
Keep a second route
Every provider has outages. Build a second route into your code from the start. If you already call an OpenAI-compatible endpoint through KissAPI, keep it as the fallback for the models it lists. The retry path only needs a different base URL and model name.
Set up a fallback route before your next outage
Create a free account at api.kissapi.ai/register and test the fallback path while traffic is still light.
Start FreeFrequently asked questions
Is deepseek-flash the same model as the old deepseek-v4-flash?
The docs say deepseek-v4-flash is retired. Its requests now run on DeepSeek-V4.1-Flash-1017 at flash prices. Switch the model string to deepseek-flash.
When does DeepSeek peak pricing apply?
Peak pricing applies from 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday through Friday, excluding Chinese public holidays. Off-peak rates are half the peak rates. All other hours are off-peak.
Does deepseek-v4-pro accept image input?
No. The pricing page lists vision as supported for deepseek-flash and not supported for deepseek-v4-pro.