# DeepSeek: deepseek-v4-flash

- Model ID: `deepseek-v4-flash`
- Provider: DeepSeek
- Web version: https://www.moleapi.com/en/models/deepseek/deepseek-v4-flash
- Content status: verified

## Model introduction

DeepSeek V4-Flash is the fast, economical open-weight V4 model. It supports a 1M context window, thinking and non-thinking modes, and OpenAI- and Anthropic-compatible APIs.

## Model capabilities

- OpenAI compatible
- Responses API
- Anthropic compatible
- Gemini compatible
- Prompt cache
- Reasoning

### Verified specifications

- Official positioning: Fast, efficient, economical V4 model
- Context window: 1,000,000 tokens
- Maximum output: 384,000 tokens
- Model size: 284B total / 13B active parameters

### Independent capability evaluation

- Reasoning, max effort
- Intelligence: 40 (#11/97)
- Output speed: 120.4 tok/s (#12/97)
- Time to first token: 1.26s
- Source: https://artificialanalysis.ai/models/deepseek-v4-flash

Trades a modest composite-score gap for much higher speed and lower price, making it a throughput-first open-weight option.

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $0.22 / 1M tokens
- Output: $0.67 / 1M tokens
- Cache read: $0.0075 / 1M tokens
- Cache write: $0.275 / 1M tokens

### Discount (discount, x0.8)

- Input: $0.176 / 1M tokens
- Output: $0.536 / 1M tokens
- Cache read: $0.006 / 1M tokens
- Cache write: $0.22 / 1M tokens

### Relay (relay, x0.3)

- Input: $0.066 / 1M tokens
- Output: $0.201 / 1M tokens
- Cache read: $0.0023 / 1M tokens
- Cache write: $0.0825 / 1M tokens

### Temporary (availability may vary) (temp, x0.1)

- Input: $0.022 / 1M tokens
- Output: $0.067 / 1M tokens
- Cache read: $0.0008 / 1M tokens
- Cache write: $0.0275 / 1M tokens

### Access protocols

| Protocol | Method | Endpoint |
| --- | --- | --- |
| openai | POST | /v1/chat/completions |
| openai-response | POST | /v1/responses |
| anthropic | POST | /v1/messages |
| gemini | POST | /v1beta/models/{model}:generateContent |
| openai-response-compact | POST | /v1/responses/compact |
| openai-alpha-search | POST | /v1/alpha/search |

- Live pricing source: https://home.moleapi.com/api/pricing

## About deepseek-v4-flash

DeepSeek-V4-Flash is an API model in the DeepSeek V4 series. It supports thinking and non-thinking modes and provides capabilities including long context, JSON Output, tool calling, chat prefix continuation, and FIM Completion.[4]

## Model Positioning and Core Capabilities

DeepSeek-V4-Flash is designed for text generation workflows that can switch between thinking and non-thinking modes. Thinking mode is enabled by default.[4] The model supports JSON Output, Tool Calls, chat prefix continuation (Beta), and FIM Completion (Beta).[4]

Thinking mode can be used for generation tasks involving reasoning processes, while non-thinking mode provides an alternative generation mode.[4] DeepSeek describes V4 Preview as having stronger Agent capabilities and reasoning capabilities, and it is available on the web, in the App, and through the API.[6]

## Capabilities and Specifications

DeepSeek-V4-Flash provides a 1M context window and a maximum output length of 384K, making it suitable for tasks that process long inputs and generate longer results.[4] The officially listed concurrency limit is 2500.[4]

| Specification | Parameter |
| --- | --- |
| Context length | 1M tokens [4] |
| Maximum output length | 384K tokens [4] |
| Thinking mode | Supported, enabled by default [4] |
| Non-thinking mode | Supported [4] |
| JSON Output | Supported [4] |
| Tool Calls | Supported [4] |
| Chat prefix continuation | Supported, Beta [4] |
| FIM Completion | Supported, Beta; non-thinking mode only [4] |
| Concurrency limit | 2500 [4] |

## Use Cases

The 1M context window of DeepSeek-V4-Flash supports long-document processing, multi-turn conversations, and text generation workflows that need to retain substantial context.[4] JSON Output and Tool Calls can be used for structured result generation and tool-calling workflows.[4]

Chat prefix continuation is suitable for workflows that continue generating from existing text.[4] FIM Completion can be used for scenarios that require completing content within existing text, but this capability is available only in non-thinking mode.[4]

## Important Limitations

FIM Completion supports only non-thinking mode and cannot be used together with thinking mode.[4] Both chat prefix continuation and FIM Completion are labeled as Beta features.[4]

The model concurrency limit is 2500. Rate limiting and isolation rules when this limit is exceeded are defined by DeepSeek's applicable service rules.[4]

## Sources

[4] [DeepSeek 模型 & 价格文档](https://api-docs.deepseek.com/zh-cn/quick_start/pricing)
[6] [DeepSeek 官网](https://deepseek.com/en/index.html)



## Code examples

### cURL

```bash
curl https://api.moleapi.com/v1/responses \
  -H "Authorization: Bearer $MOLEAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4-flash","input":"Explain this problem step by step."}'
```

### Python

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.moleapi.com/v1", api_key="YOUR_MOLEAPI_API_KEY")
response = client.responses.create(model="deepseek-v4-flash", input="Explain this problem step by step.")
print(response.output_text)
```

### TypeScript

```typescript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.moleapi.com/v1", apiKey: process.env.MOLEAPI_API_KEY });
const response = await client.responses.create({ model: "deepseek-v4-flash", input: "Explain this problem step by step." });
console.log(response.output_text);
```

## More related models

- [deepseek-v4-pro](https://www.moleapi.com/en/models/deepseek/deepseek-v4-pro) — DeepSeek
- [deepseek-v4-flash-260425](https://www.moleapi.com/en/models/deepseek/deepseek-v4-flash-260425) — DeepSeek
- [deepseek-v4-flash-vision-exp](https://www.moleapi.com/en/models/deepseek/deepseek-v4-flash-vision-exp) — DeepSeek
- [gpt-5.6-luna](https://www.moleapi.com/en/models/openai/gpt-5.6-luna) — OpenAI
- [gpt-5.6-sol](https://www.moleapi.com/en/models/openai/gpt-5.6-sol) — OpenAI
- [gpt-5.6-terra](https://www.moleapi.com/en/models/openai/gpt-5.6-terra) — OpenAI

## Frequently asked questions

### How is deepseek-v4-flash priced?

Prices are read from the MoleAPI console API and update with model prices, context tiers, and account groups.

### How can I access deepseek-v4-flash?

The catalog currently lists openai, openai-response, anthropic, gemini, openai-response-compact, openai-alpha-search.

### How do I switch an existing project to deepseek-v4-flash?

Keep the MoleAPI API address and key, replace the model parameter, and check protocol-specific parameters.

### Where do the deepseek-v4-flash details come from?

Capabilities and limitations are checked against DeepSeek and the other cited pages; pricing and protocols come from the MoleAPI console.
