> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.empiriolabs.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.empiriolabs.ai/_mcp/server.

# DeepSeek V4.1 Flash

> Lightweight flagship of DeepSeek's new architecture with native image understanding, hybrid thinking, 1M context, and up to 384K output tokens.

![DeepSeek V4.1 Flash](https://media.empiriolabs.ai/model-logos/deepseek.png)

[DeepSeek](/providers/deepseek) · Text Generation

`POST /v1/chat/completions`

Lightweight flagship of DeepSeek's new architecture with native image understanding, hybrid thinking, 1M context, and up to 384K output tokens.

> **Warning**
>
> This model is **deprecated** and retires on **2026-10-27**. From that date, requests to `deepseek-v4-1-flash` and its alternate model ids are served by [DeepSeek V4.1 Flash 1017](/models/deepseek-v4-1-flash-1017), so code that sends them keeps working.

## At a glance

| Field               | Value                                                                                                                             |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Model id            | `deepseek-v4-1-flash`                                                                                                             |
| Model release date  | 2026-09-10                                                                                                                        |
| Input modalities    | Text, Image                                                                                                                       |
| Output modalities   | Text                                                                                                                              |
| Context window      | 1M                                                                                                                                |
| Weight precision    | -                                                                                                                                 |
| Max output tokens   | 393,216                                                                                                                           |
| Region              | Singapore                                                                                                                         |
| Features            | reasoning, vision, function_calling, agentic_coding                                                                               |
| Native inference    | No                                                                                                                                |
| New                 | Yes                                                                                                                               |
| Structured output   | JSON Mode                                                                                                                         |
| Supported endpoints | `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages`, `POST /v1beta/models/deepseek-v4-1-flash:generateContent` |
| Alternate model ids | `deepseek-v4.1-flash`, `deepseek/deepseek-v4-1-flash`, `deepseek-ai/deepseek-v4-1-flash`                                          |
| Deprecation date    | **2026-10-27**                                                                                                                    |

## Pricing

| Charge              | Spec                    | Rate    |
| ------------------- | ----------------------- | ------- |
| Input               | per 1M prompt tokens    | \$0.30  |
| Output              | per 1M generated tokens | \$1.20  |
| Web Search (Linkup) | per call when invoked   | \$0.013 |

## Example request

```bash
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model": "deepseek-v4-1-flash", "messages": [{"role":"user","content":"Hello"}]}'
```

## Parameters

| Parameter            | Type    | Required | Default    | Description                                                                                                                                                                                                                                                                                                       |
| -------------------- | ------- | -------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `temperature`        | number  | no       | `0.7`      | Sampling temperature. 0 = deterministic, 2 = maximum randomness. · Range: 0 – 2                                                                                                                                                                                                                                   |
| `top_p`              | number  | no       | `0.9`      | Nucleus sampling probability mass. Lower = more focused. · Range: 0 – 1                                                                                                                                                                                                                                           |
| `max_tokens`         | number  | no       | `4096`     | Maximum output tokens. · Range: 1 – 393216                                                                                                                                                                                                                                                                        |
| `stop`               | string  | no       | -          | Up to 4 strings where the model will stop generating further tokens.                                                                                                                                                                                                                                              |
| `enable_thinking`    | boolean | no       | true       | Enable step-by-step reasoning before answering.                                                                                                                                                                                                                                                                   |
| `thinking_budget`    | number  | no       | `32768`    | Maximum tokens reserved for the reasoning process. Up to 393216. · Range: 1 – 393216                                                                                                                                                                                                                              |
| `reasoning_effort`   | enum    | no       | `"medium"` | Reasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model. Sent as an OpenAI-style reasoning_effort field, translated into enable_thinking and thinking_budget for the model service. · Allowed: `none`, `low`, `medium`, `high`, `max` |
| `response_format`    | enum    | no       | -          | Return the output as a valid JSON object (JSON mode). Describe the fields you want in your prompt.                                                                                                                                                                                                                |
| `web_search_linkup`  | boolean | no       | false      | Optional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds \$0.013 per call when invoked on top of the model's normal token cost. Disabled by default.                               |
| `disable_formatting` | boolean | no       | false      | When enabled, the gateway will not append the "Sources" footer to assistant responses that used Linkup web search. Useful when the model output is piped to another system that expects no decoration.                                                                                                            |

## Notes

Thinking is enabled by default and can be disabled. Reasoning tokens are billed as output tokens. Image input is accepted alongside text. JSON mode is supported. Strict JSON Schema output is not available on this model. Optional Linkup web search is billed only when invoked. This model ID retires on October 27, 2026. From that date it keeps working, together with its alternate IDs, and is served by deepseek-v4-1-flash-1017 at the same price.

---

*Machine-readable schema:* `GET https://api.empiriolabs.ai/v1/models/deepseek-v4-1-flash`.