2026-11-26 15:39 UTC

DeepSeek documents standalone Search and Fetch APIs at $0.75 per 1,000 successful calls

state: significantheat: mediumuncertainty: mediumrelevance: highdeepseek search-api agent-toolingDeepSeek

What is this?

DeepSeek’s official API documentation describes two raw JSON endpoints for agents and retrieval-augmented generation: Search, which uses DeepSeek’s in-house search engine to return structured web results, and Fetch, which retrieves one page as Markdown. Both use a DeepSeek API key. The docs price each at $0.75 per 1,000 successful requests; failed requests, empty searches and timeouts are not billed. They also specify account-level limits of 5 requests per second for each endpoint, with an additional per-domain limit for Fetch, and note that Fetch depends on the target site’s availability and access policies. The endpoints and pricing are documented by DeepSeek; the supplied sources do not provide independent quality or scale evaluations.

Why it matters

This makes web retrieval a directly callable, low-cost component that developers can add to agents and RAG systems without building their own search-and-page-extraction stack. That can lower the cost and integration barrier for agents that gather current information, though price alone says little about result quality, reliability, coverage or suitability at higher traffic. The docs’ 5-QPS account limits are a material constraint. A newer DeepSeek chatbot guide also documents built-in web search, multi-step search while thinking and URL reading in its chat APIs, indicating that retrieval is available both as standalone infrastructure and as a managed model feature.

Current assessment

The central development is supported by DeepSeek’s official Search & Fetch documentation: Search returns structured results from its in-house search engine; Fetch returns a page’s content as Markdown. Each costs $0.75 per 1,000 successful requests, charged per request rather than by result count; unsuccessful requests and empty results are not billed. The documented limits are 5 QPS per account for each API, plus a per-domain Fetch limit. This establishes availability and stated terms, not independent evidence of search quality, page coverage, latency, reliability, or economics under production traffic. A later official guide, fetched November 14, describes DeepSeek chat APIs with web search, multi-step search while thinking, URL reading, and file input; it supports tracking DeepSeek’s broader hosted retrieval and chatbot tooling, but does not revise the standalone endpoints’ pricing. A third-party CLI post dated October 29 describes a wrapper for using Search with agents, but is not adoption evidence at meaningful scale. The original documentation says server-side Search and Fetch calls through DeepSeek Harness, Claude Code, or Codex were free at that time, with per-request billing scheduled to begin November 1, 2026; the supplied sources do not confirm whether that transition occurred. Key open questions include retrieval quality, site-access behavior, rate-limit increases, and the status of that scheduled billing change.

Measured heat

now 0 pts/hpeak 7 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 962h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-14 20:37⭐ origin directly observedDeepSeek releases chat, web tools API
anigbrowl on hacker news
—
10-17 13:00first on blog (echo) · published · +-679.6hDeepSeek Search and Fetch APIs give agents and RAG applications access to live web content via raw JSON APIs, billed at $0.75 per 1000 succe
DeepSeek
—
10-18 06:50first on hacker news · published · +-661.8hDeepSeek search and fetch – $0.75 per 1000 successful requests
fagnerbrack
—
10-18 06:50amplified on hacker news 👑hn.story.50138531
fagnerbrack
peak 607 · 261 comments · 99% of case engagement
10-29 00:20amplified on hacker newshn.story.50282799
lglen
peak 1 · 0 comments · 0% of case engagement
11-14 20:37amplified on hacker newshn.story.50500577
anigbrowl
peak 5 · 0 comments · 1% of case engagement
10-18 07:27our radar first saw it · +-661.2hdiscovery anchor: hn.story.50138531—
pace: p91 vs 879 stories at the 720h mark (now 962h old) — ahead of worldtui-learned-terminal-world-model (1.0x), behind ai-assisted-paper-fabricated-citations (1.0x)

Evidence (4) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnDeepSeek search and fetch – $0.75 per 1000 successful requests
Retrieved article excerpt

Open article · Retrieved 2026-10-18T07:28:28.763259+00:00

On this page

# Search & Fetch

The Search API and the Fetch API give agents and RAG applications access to live web content:

- **Search API** finds web pages for a query and returns structured results. It is powered by DeepSeek's in-house search engine.
- **Fetch API** retrieves a single web page and returns its content as Markdown.

Both are raw JSON APIs. They use the same bearer authentication as the DeepSeek API.

The base URL is `https://api.deepseek.com`:

| API | Endpoint |
| --- | --- |
| Search | `POST https://api.deepseek.com/v1/tools/search` |
| Fetch | `POST https://api.deepseek.com/v1/tools/fetch` |

See the [Search API Reference](https://api-docs.deepseek.com/api/search) and [Fetch API Reference](https://api-docs.deepseek.com/api/fetch) for the complete request and response schemas.

---

## Authentication[​](https://api-docs.deepseek.com/guides/search/#authentication "Direct link to Authentication")

Send your API key and the JSON content type in the request headers:

| Header | Required | Value |
| --- | --- | --- |
| `Authorization` | Yes | `Bearer <DeepSeek API Key>` |
| `Content-Type` | Yes | `application/json` |

---

## Search API[​](https://api-docs.deepseek.com/guides/search/#search-api "Direct link to Search API")

### Request[​](https://api-docs.deepseek.com/guides/search/#request "Direct link to Request")

```
curl https://api.deepseek.com/v1/tools/search \  
  -H "Authorization: Bearer <DeepSeek API Key>" \  
  -H "Content-Type: application/json" \  
  -d '{  
    "query": "DeepSeek V4 release",  
    "count": 5,  
    "need_content": true  
  }'
```

```
import requests  
  
response = requests.post(  
    "https://api.deepseek.com/v1/tools/search",  
    headers={  
        "Authorization": "Bearer <DeepSeek API Key>",  
    },  
    json={  
        "query": "DeepSeek V4 release",  
        "count": 5,  
        "need_content": True,  
    },  
)  
response.raise_for_status()  
  
for result in response.json()["results"]:  
    print(result["title"], result["url"])  
    print(result["summary"])
```

Request fields:

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `query` | string | Yes | - | The search query must contain 1 to 128 Unicode characters, cannot be all whitespace, and supports the query operators listed below. |
| `count` | integer | No | `10` | The number of results to return, between 1 and 50. |
| `ori_question` | string | No | - | The user's original question that triggered the search, between 1 and 128 characters, to improve query understanding, with `null` treated as not provided. |
| `localization` | string | No | `""` | An optional IP address used to localize search results. |
| `need_content` | boolean | No | `false` | Whether to return page content in `content`, which is always an empty string when `false`. |

Unknown fields in the request body are ignored.

### Query Operators[​](https://api-docs.deepseek.com/guides/search/#query-operators "Direct link to Query Operators")

The query is forwarded with its search syntax intact. The examples below combine operators with a search term; you can combine multiple operators in one query.

| Operator | Example | Description |
| --- | --- | --- |
| `site:` | `DeepSeek site:github.com` | Restrict results to the given site, and to target multiple sites, separate the `site:` clauses with spaces and join them with `OR`, for example `DeepSeek site:github.com OR site:huggingface.co`. |
| `-site:` | `DeepSeek -site:example.com` | Exclude the given site, and separate multiple sites with spaces. |
| `-` | `DeepSeek -advertisement` | Exclude pages containing the term, and separate multiple terms with spaces. |
| `-"..."` | `DeepSeek -"release notes"` | Exclude pages containing the exact phrase, which can contain spaces, and separate multiple phrases with spaces. |
| `"..."` | `DeepSeek "exact phrase"` | Match an exact phrase, and separate multiple phrases with spaces. |
| `lang:` | `DeepSeek lang:zh,en` | Restrict results to the given language codes, separating multiple codes with commas, for example `lang:zh,en`. |
| `after:` | `DeepSeek after:2025` or `DeepSeek after:2025-01-01` | Restrict results to pages published after a date. |
| `before:` | `DeepSeek before:2026` or `DeepSeek before:2026-06-01` | Restrict results to pages published before a date. |

For example:

```
{  
  "query": "DeepSeek site:github.com OR site:huggingface.co lang:en after:2025",  
  "count": 10  
}
```

### Response[​](https://api-docs.deepseek.com/guides/search/#response "Direct link to Response")

A successful request returns HTTP 200 with a `results` array. A normal search with no matches returns an empty array.

```
{  
  "results": [  
    {  
      "rerank_score": 2.4,  
      "title": "DeepSeek V4 model released",  
      "url": "https://example.com/deepseek-v4",  
      "snippet": "DeepSeek V4 is now available, with tool calling and long-context support.",  
      "summary": "DeepSeek has released the V4 model. The release adds improved tool calling and long-context support for agent workflows.",  
      "content": "DeepSeek V4 is now generally available...",  
      "site_name": "Example News",  
      "site_icon": "https://example.com/favicon.ico",  
      "date": "2026-06-01T00:00:00+00:00",  
      "authority": 3  
    }  
  ]  
}
```

Each item in `results` contains:

| Field | Type | Description |
| --- | --- | --- |
| `rerank_score` | number | A relevance score from 0 to 3 that combines signals such as relevance, authority, and freshness, with scores of 1.5 or above considered high-quality results. |
| `title` | string | The title of the result. |
| `url` | string | The URL of the result. |
| `snippet` | string | A short summary related to the query, typically 100 to 200 characters, intended for display in a UI. |
| `summary` | string | A long summary related to the query, typically 600 to 800 characters, intended to be read by a model. |
| `content` | string | The page content, which is empty when `need_content` is `false` or when the content is unavailable. |
| `site_name` | string or null | The name of the site, or `null` when unavailable. |
| `site_icon` | string or null | The URL of the site icon, or `null` when unavailable. |
| `date` | string or null | The publication time in UTC, formatted as RFC 3339, or `null` when unknown. |
| `authority` | integer | The authority tier of the page, 0 to 4 (`-1` means unknown), with values of 3 or above indicating highly authoritative sources. |

---

## Fetch API[​](https://api-docs.deepseek.com/guides/search/#fetch-api "Direct link to Fetch API")

### Request[​](https://api-docs.deepseek.com/guides/search/#request-1 "Direct link to Request")

```
curl https://api.deepseek.com/v1/tools/fetch \  
  -H "Authorization: Bearer <DeepSeek API Key>" \  
  -H "Content-Type: application/json" \  
  -d '{  
    "url": "https://example.com/article"  
  }'
```

```
import requests  
  
response = requests.post(  
    "https://api.deepseek.com/v1/tools/fetch",  
    headers={  
        "Authorization": "Bearer <DeepSeek API Key>",  
    },  
    json={"url": "https://example.com/article"},  
)  
response.raise_for_status()  
  
page = response.json()  
print(page["title"])  
print(page["content"])
```

Request fields:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The page URL to fetch, which must be at most 8192 characters, an HTTP or HTTPS URL with a host, and must not contain a username or password. |

### Response[​](https://api-docs.deepseek.com/guides/search/#response-1 "Direct link to Response")

```
{  
  "title": "Example article",  
  "content": "# Example article\n\nArticle content."  
}
```

| Field | Type | Description |
| --- | --- | --- |
| `title` | string | The title of the page, empty when the title is unavailable. |
| `content` | string | The fetched page content as Markdown text. |

Fetching is subject to the target site's availability and access policies.

---

## Errors[​](https://api-docs.deepseek.com/guides/search/#errors "Direct link to Errors")

Errors follow the OpenAI-compatible error format. The `param` field is always `null`.

```
{  
  "error": {  
    "message": "'count' must be between 1 and 50",  
    "type": "invalid_request_error",  
    "param": null,  
    "code": "invalid_request_error"  
  }  
}
```

| HTTP Status | Description |
| --- | --- |
| 400 | The request headers or body are invalid, including malformed JSON or an invalid field value. |
| 401 | The API key is missing or invalid. |
| 402 | The account has insufficient balance. |
| 403 | The Fetch request was rejected by the security policy. |
| 404 | Fetch could not retrieve usable page content, for example due to an unavailable URL, a URL blocked by site policy, an error from the target site, an unsupported content type, or a page with no extractable Markdown content. |
| 408 | Reading the request body timed out. |
| 413 | The request body is too large. |
| 429 | The Search or Fetch QPS limit was exceeded. |
| 500 | An internal server error occurred. |
| 504 | A downstream request timed out. |

Search and Fetch are read-only. For HTTP 408, 429, or 5xx errors, wait and retry. For HTTP 402, top up your account before retrying. Do not retry other 4xx errors without changing the request.

---

## Billing[​](https://api-docs.deepseek.com/guides/search/#billing "Direct link to Billing")

Search and Fetch are billed per successful request, not by tokens or by the number of returned results:

| API | Unit | Price |
| --- | --- | --- |
| Search | Per 1,000 successful requests | $0.75 |
| Fetch | Per 1,000 successful requests | $0.75 |

A request is billable only when it returns HTTP 200 and produces a result (Search must return a non-empty `results` array, and Fetch must return page content). Failed requests, empty search results, and timeouts are not billed. `count` only controls how many results are returned and does not affect the per-request price.

Note: when you use the DeepSeek API through DeepSeek Harness, Claude Code, or Codex, server-side tool calls already hit the Search and Fetch APIs. These calls are currently free of charge; per-request billing starts at 00:00 Beijing time on November 1, 2026.

---

## Rate Limits[​](https://api-docs.deepseek.com/guides/search/#rate-limits "Direct link to Rate Limits")

For each account, Search and Fetch are limited independently, and traffic to one does not consume the other's quota:

| API | QPS Limit |
| --- | --- |
| Search | 5 |
| Fetch | 5 |

The QPS (requests per second) limits are calculated at the account level, regardless of which API key is used, and are separate from the model concurrency limits. Requests above the account-level QPS limit receive HTTP 429. In addition to the account-level limit, Fetch is also subject to a per-domain QPS limit, and requests above that limit also receive HTTP 429.
fagnerbrack607245
🟧 echo.blogDeepSeek Search and Fetch APIs give agents and RAG applications access to live web content via raw JSON APIs, billed at $0.75 per 1000 succeDeepSeek——
🟧 hnShow HN: Simple DeepSeek web search CLI written in TypeScript (fast/cheap)lglen10
🟧 hn ⭐DeepSeek releases chat, web tools API
Retrieved article excerpt

Open article · Retrieved 2026-11-14T21:22:05.921674+00:00

On this page

Copy MarkdownCopy Markdown

[Open Markdown](https://api-docs.deepseek.com/guides/build_a_chatbot.md "Open Markdown in a new tab")

# Build a Chatbot



The DeepSeek API offers the same conversation features as DeepSeek Chat on the web and in the app: web search, deep thinking search, file input and URL reading, plus basic risk control for model content safety. You can use them to build your own chatbot.

The service runs the searches and URL reading. Your client only shows the returned blocks and passes them back unchanged in the next round.

---

## Feature Map[​](https://api-docs.deepseek.com/guides/build_a_chatbot/#feature-map "Direct link to Feature Map")

| Chatbot feature | Description | Guide |
| --- | --- | --- |
| Web search | With thinking disabled and the `deepseek_web_search` tool enabled, the model runs web or image searches as the question requires and answers with citations | [Web Search](https://api-docs.deepseek.com/guides/web_tools#web-search) |
| Deep thinking search | With thinking enabled and the `deepseek_web_search` tool enabled, the model searches the web and reads links on its own over multiple reasoning steps | [Deep Thinking Search](https://api-docs.deepseek.com/guides/web_tools#search-while-thinking) |
| File input | Upload files such as PDF, Word, PowerPoint and image files; after plain-text extraction or rich-layout parsing, they are added to the conversation context for the model to answer from | [File Parsing](https://api-docs.deepseek.com/guides/document_parsing) |
| URL reading | With the `deepseek_read_url` tool enabled, the model detects links in the user message, fetches the pages and answers with them in context | [URL Reading](https://api-docs.deepseek.com/guides/web_tools#read-links) |
| Model content safety | With the safety check parameter enabled, we provide basic risk control: the model input and output are reviewed, and a refusal marker is returned when a risk is found. If you provide a service to the public, enable this parameter and fulfill obligations such as content safety review, large model registration and AI labeling | [Model Content Safety](https://api-docs.deepseek.com/guides/safety) |
| User metadata marker | Tell the model the current date and the user's location and language, so that answers fit the user's situation | [User Metadata Marker](https://api-docs.deepseek.com/guides/latest_reminder) |
| Conversation title | Generates a short title from the conversation when the answer ends | [Conversation Title](https://api-docs.deepseek.com/guides/conversation_title) |
| Read aloud | Turns the model's answer into speech | [Text to Speech](https://api-docs.deepseek.com/guides/tts) |
| Voice input | Transcribes the user's speech into text to send as a message | [Speech to Text](https://api-docs.deepseek.com/guides/asr) |

---

## Demo[​](https://api-docs.deepseek.com/guides/build_a_chatbot/#demo "Direct link to Demo")

DeepSeek provides an open-source demo chat client that shows how to build a chatbot with these APIs. Enter your API key to start. You can also import the chat history you exported from DeepSeek Chat and continue your conversations.

- Try the demo: <https://cdn.deepseek.com/chat-demo>
- Source code: <https://github.com/deepseek-ai/chat-demo>

Your API key, conversations and uploaded images are stored only in your browser. The demo is for demonstration only.

The demo shows:

- Web search, deep thinking search and URL reading
- Uploading images and documents
- Model content safety, including image review
- Conversation titles, and renaming and deleting conversations
- Editing a message, regenerating, and continuing a reply
- Reading answers aloud, and voice input
- Choosing a language and location in the settings, which are passed to the model as the user metadata marker
- Importing and exporting chat history (an import replaces the existing history)
- Markdown rendering, including Mermaid diagrams
- A Chinese and English interface, with light and dark themes

---

## Choose a Protocol[​](https://api-docs.deepseek.com/guides/build_a_chatbot/#choose-a-protocol "Direct link to Choose a Protocol")

The chat features are available in the Messages API, the Responses API and the Chat Completions API.

| Protocol | Endpoint |
| --- | --- |
| Messages | `POST https://api.deepseek.com/anthropic/v1/messages` |
| Responses | `POST https://api.deepseek.com/responses` |
| Chat Completions | `POST https://api.deepseek.com/chat/completions` |

Use the `deepseek-flash` model.

---

## Quick Example[​](https://api-docs.deepseek.com/guides/build_a_chatbot/#quick-example "Direct link to Quick Example")

A streaming request with the web tools, safety review and the conversation title enabled:

- Messages
- Responses
- Chat Completions

```
curl https://api.deepseek.com/anthropic/v1/messages \  
  -H "Content-Type: application/json" \  
  -H "x-api-key: ${DEEPSEEK_API_KEY}" \  
  -d '{  
    "model": "deepseek-flash",  
    "thinking": {"type": "enabled"},  
    "tools": [  
      {"type": "deepseek_web_search", "name": "deepseek_web_search"},  
      {"type": "deepseek_read_url", "name": "deepseek_read_url"}  
    ],  
    "safety_check": {"level": "high"},  
    "title": {"enabled": true},  
    "messages": [{"role": "user", "content": "What is new in DeepSeek V4.1?"}],  
    "stream": true  
  }'
```

The stream of this request, shortened:

```
event: message_start  
data: {"type":"message_start","message":{"id":"b161a9be-...","type":"message","role":"assistant","model":"deepseek-flash","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":40,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":0,"service_tier":"standard"}}}  
  
event: content_block_start  
data: {"type":"content_block_start","index":0,"content_block":{"type":"thinking","thinking":"","signature":""}}  
  
event: content_block_delta  
data: {"type":"content_block_delta","index":0,"delta":{"type":"thinking_delta","thinking":"..."}}  
  
event: content_block_delta  
data: {"type":"content_block_delta","index":0,"delta":{"type":"signature_delta","signature":"b161a9be-..."}}  
  
event: content_block_stop  
data: {"type":"content_block_stop","index":0}  
  
event: content_block_start  
data: {"type":"content_block_start","index":1,"content_block":{"type":"server_tool_use","id":"srvtoolu_ds_00_b2baebaf...","name":"deepseek_web_search","input":{"action":"search","queries":["DeepSeek V4.1 new features","DeepSeek V4.1 release notes"]},"caller":{"type":"direct"},"kind":"deep_search"}}  
  
event: content_block_stop  
data: {"type":"content_block_stop","index":1}  
  
event: content_block_start  
data: {"type":"content_block_start","index":2,"content_block":{"type":"web_search_tool_result","tool_use_id":"srvtoolu_ds_00_b2baebaf...","content":[{"type":"web_search_result","title":"...","url":"https://api-docs.deepseek.com/news/news261017/","encrypted_content":"...","page_age":"2026-10-16T16:00:00+00:00","snippet":"...","site_name":"DeepSeek","site_icon":"https://cdn.deepseek.com/site-icons/deepseek.com"}],"kind":"deep_search"}}  
  
...  
  
event: content_block_start  
data: {"type":"content_block_start","index":15,"content_block":{"type":"text","text":""}}  
  
event: content_block_delta  
data: {"type":"content_block_delta","index":15,"delta":{"type":"text_delta","text":"Deep"}}  
  
event: content_block_delta  
data: {"type":"content_block_delta","index":15,"delta":{"type":"citations_delta","citation":{"type":"web_search_result_location","url":"https://api-docs.deepseek.com/news/news261017/","title":"...","encrypted_index":"","cited_text":"..."}}}  
  
...  
  
event: message_delta  
data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null,"title":"..."},"usage":{"input_tokens":9078,"cache_creation_input_tokens":0,"cache_read_input_tokens":4096,"output_tokens":1686,"service_tier":"standard","server_tool_use":{"web_search_requests":1,"web_fetch_requests":0,"tool_search":2,"tool_fetch":0,"tool_image_search":0}}}  
  
event: message_stop  
data: {"type":"message_stop"}
```

```
curl https://api.deepseek.com/responses \  
  -H "Content-Type: application/json" \  
  -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \  
  -d '{  
    "model": "deepseek-flash",  
    "reasoning": {"effort": "high"},  
    "tools": [  
      {"type": "deepseek_web_search"},  
      {"type": "deepseek_read_url"}  
    ],  
    "safety_check": {"level": "high"},  
    "title": {"enabled": true},  
    "input": "What is new in DeepSeek V4.1?",  
    "stream": true  
  }'
```

```
curl https://api.deepseek.com/chat/completions \  
  -H "Content-Type: application/json" \  
  -H "Authorization: Bearer ${DEEPSEEK_API_KEY}" \  
  -d '{  
    "model": "deepseek-flash",  
    "thinking": {"type": "enabled"},  
    "tools": [  
      {"type": "deepseek_web_search"},  
      {"type": "deepseek_read_url"}  
    ],  
    "safety_check": {"level": "high"},  
    "title": {"enabled": true},  
    "messages": [{"role": "user", "content": "What is new in DeepSeek V4.1?"}],  
    "stream": true  
  }'
```

---

## Render a Response[​](https://api-docs.deepseek.com/guides/build_a_chatbot/#render-a-response "Direct link to Render a Response")

A chatbot response contains several kinds of content blocks. The screenshot below marks where each block appears in DeepSeek Chat.

A DeepSeek Chat conversation with the thinking, search, page reading and answer blocks marked

| Block | What to show |
| --- | --- |
| `thinking` | The collapsible thinking panel |
| `server_tool_use` + `web_search_tool_result` | A search step with result cards (title, site name, icon) |
| `server_tool_use` + `web_fetch_tool_result` | A page that was opened or a link that was read |
| `text` with `citations` | The answer, with citation markers that link to the sources |
| `stop_reason: "refusal"` | Replace the answer with your refusal message |

See [Web Tools](https://api-docs.deepseek.com/guides/web_tools#response-blocks) and [Model Content Safety](https://api-docs.deepseek.com/guides/safety#handling-refusals) for the block formats.

---

## Ignored Parameters[​](https://api-docs.deepseek.com/guides/build_a_chatbot/#ignored-parameters "Direct link to Ignored Parameters")

When a request declares `deepseek_web_search` or `deepseek_read_url`, sets `safety_check` to `high`, or enables `title`, the service decides the following parameters, and the values in the request are ignored:

| Protocol | Ignored parameters |
| --- | --- |
| Messages | `temperature`, `top_p`, `top_k`, `stop_sequences`, `thinking.budget_tokens`, `preserve_thinking`, `tool_choice.disable_parallel_tool_use`, `metadata` (except `user_id`) |
| Responses | `temperature`, `top_p`, `reasoning.summary`, `text.verbosity`, `include`, `max_tool_calls`, `truncation`, `metadata`, `parallel_tool_calls`, `store` |
| Chat Completions | `temperature`, `top_p`, `frequency_penalty`, `presence_penalty`, `stop`, `seed`, `n`, `preserve_thinking`, `parallel_tool_calls` |

`max_tokens` (`max_output_tokens` in the Responses API) works as usual. It limits the output of each inference step in a round, not the total output of the round.

---

## Compliance Requirements[​](https://api-docs.deepseek.com/guides/build_a_chatbot/#compliance "Direct link to Compliance Requirements")

- With the safety check parameter enabled, we provide basic risk control: the model input and output are reviewed, and a refusal is returned when a risk is detected. If you provide a service to the public, enable this parameter, and fulfill on your own the obligations of a service provider, such as content safety review, large model registration and AI labeling.
- Please comply with our Open Platform Terms of Service: [DeepSeek Open Platform Terms of Service](https://cdn.deepseek.com/policies/en-US/deepseek-open-platform-terms-of-service.html).
anigbrowl50

Interpretation history

Decision trace