# DeepSeek V4.1 Flash

DeepSeek V4.1 Flash costs $0.15 per 1M input tokens and $0.6 per 1M output tokens on LLM API, with a 1M-token context window.

Model ID: `deepseek/deepseek-v4.1-flash` · DeepSeek · Text generation · Released September 10, 2026
Updated: 2026-11-09
Canonical: https://llmapi.ai/models/deepseek-deepseek-v4-1-flash/

- Input: $0.15 per 1M tokens
- Output: $0.6 per 1M tokens
- Cache read: $0.003 per 1M tokens
- Context: 1M tokens

## Pricing

Lowest price among 6 providers, after discounts.

| Price | Amount | Per |
| --- | --- | --- |
| Input | $0.15 | per 1M tokens |
| Output | $0.6 | per 1M tokens |
| Cache read | $0.003 | per 1M tokens |
| Cache write, 5 minutes | $0.15 | per 1M tokens |

**Volume pricing.** At higher monthly volume, DeepSeek V4.1 Flash may cost less. Book a call and sales will quote a price for your usage. [Book a call with sales](https://meetings.hubspot.com/julia-andriienko/llmapi) or [Create an account first](https://app.llmapi.ai/signup).

## Providers

Prices after each provider’s discount; the lowest in bold.

| Provider | Input / 1M | Output / 1M | Cache read / 1M | Context |
| --- | --- | --- | --- | --- |
| [Novita AI](https://llmapi.ai/providers/novita/) | $0.3 | $1.2 | $0.006 | 1M |
| [Melious](https://llmapi.ai/providers/melious/) | $0.354 | $1.416 | $0.0354 | 1M |
| [Alibaba Cloud](https://llmapi.ai/providers/alibaba-cloud/) | **$0.15** | **$0.6** | $0.015 | 1M |
| [DeepSeek](https://llmapi.ai/providers/deepseek/) | **$0.15** | **$0.6** | **$0.003** | 1M |
| [Boundless](https://llmapi.ai/providers/boundless/) | $0.24 | $0.96 | $0.0048 | 1.05M |
| [Together AI](https://llmapi.ai/providers/together-ai/) | $0.3 | $1.2 | $0.006 | 1M |

## Features

“Some providers”: not every provider of this model supports it.

- Tools: Yes
- Parallel tool calls: No
- Image input: Yes
- Reasoning: Yes (Levels: low, medium, high, xhigh, max · default medium)
- Prompt caching: Yes
- Structured outputs: Some providers
- JSON mode: Yes
- Streaming: Yes
- Web search: Yes
- Also accepts: deepseek-v4.1-flash

## Call DeepSeek V4.1 Flash

### Chat Completions (`POST /v1/chat/completions`)

Set LLMAPI_KEY to your LLM API key.

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

response = client.chat.completions.create(
    model="deepseek/deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
```

Docs: [Chat Completions docs](https://docs.llmapi.ai/api/v1/chat/completions)

## More from DeepSeek

- [DeepSeek V4.1 Flash 1017](https://llmapi.ai/models/deepseek-v4-1-flash-1017/): $0.15 / $0.6 per 1M input / output
- [DeepSeek V4 Pro](https://llmapi.ai/models/deepseek-deepseek-v4-pro/): $0.66 / $1.98 per 1M input / output
- [DeepSeek V4 Flash 0731](https://llmapi.ai/models/deepseek-v4-flash-0731/): $0.126 / $0.252 per 1M input / output

Prices synced 2026-11-09.

Next step: [Get API key](https://app.llmapi.ai/signup)
