> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepSeek V4.1 Flash

> DeepSeek V4.1 Flash is the lab's current general model: a 1M-token context window, native image input and a thinking mode, at the Flash price band. DeepSeek positions it ahead of V4 Pro and routes V4 Pro requests onto it from 2026-09-14, so it is the DeepSeek id to pick for new work.

## Overview

DeepSeek released V4.1 Flash on 2026-09-10 as the successor to both V4 Flash and V4 Pro. Its card lists a 1M context window, thinking and non-thinking modes, JSON output, tool calls and image input. The lab's own note says its results land ahead of V4 Pro and that its KV cache needs a quarter of the memory of the previous generation.

On Kyma it is served through the OpenAI-compatible endpoint with automatic failover across three routes and exact cost reporting in the usage.cost field. Prompt caching is not exposed on the primary route, so every input token bills at the input rate.

The weights are published under the MIT license. The output cap on Kyma is 131,072 tokens per request.

## Specs

| Field              | Value                                                  |
| ------------------ | ------------------------------------------------------ |
| Model ID           | `deepseek-v4.1-flash`                                  |
| Best for           | General, coding, long context, vision at value pricing |
| Context window     | 1.048576M                                              |
| Max output tokens  | 131K                                                   |
| Input modalities   | Text, Image                                            |
| Output modalities  | Text                                                   |
| Tool calling       | Yes                                                    |
| Structured outputs | Yes                                                    |
| Prompt caching     | No                                                     |
| Speed              | Fast                                                   |
| Cost band          | Cheap                                                  |
| Release stage      | Stable                                                 |

## Pricing

|        | Per 1M tokens |
| ------ | :-----------: |
| Input  |     \$0.27    |
| Output |     \$0.81    |

## Use this when

* **Coding** — Tool calling and structured outputs with a 1M-token window put whole repositories in one request.
* **Vision at value pricing** — Image input on a Flash-priced model — screenshots, diagrams and documents without moving to a flagship.
* **Long-context analysis** — The 1M-token window takes document collections or long agent transcripts in a single call.
* **High-volume pipelines** — Flash-band pricing suits background jobs and batch processing that run thousands of times a day.

## Not ideal for

Prompt-cache-heavy workloads — the primary route publishes no cached-input rate, so repeated prefixes bill in full.

## Pick something else when

* You want the cheapest DeepSeek and can accept the previous checkpoint: use [`deepseek-v4-flash`](/models/deepseek-v4-flash).
* You want the best general default overall: use [`qwen-3.6-plus`](/models/qwen-3.6-plus).

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.chat.completions.create(
    model="deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "..."}],
    tools=[...],  # function calling supported
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=chat&tools=true&quality_tier=frontier-open"
```

## FAQ

**How is DeepSeek V4.1 Flash different from V4 Flash?**

It is a newer checkpoint (2026-09-10) with native image input and a thinking mode, and DeepSeek says its results land ahead of V4 Pro. V4 Flash stays on Kyma as the cheaper previous checkpoint.

**Does it support images?**

Yes — image input is native. Send images the same way as any other vision model on the OpenAI-compatible endpoint.

**Why use DeepSeek V4.1 Flash through Kyma?**

One API key and one OpenAI-compatible endpoint cover this and every other model on the platform, with automatic failover across its three routes and the exact cost of every request in usage.cost.
