DeepSeek V4.1 Flash API

DeepSeek's current Flash build: 1M context, thinking mode on by default and image understanding.

Modalities
Image, TextText
In / Out price
$0.3/$1.2per 1M
Context window
1.05M tokens
Released
Sep 10, 2026

DeepSeek V4.1 Flash overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by DeepSeek V4.1 Flash through AI/ML API

DeepSeek V4.1 Flash by DeepSeek

DeepSeek V4.1 Flash is the current DeepSeek Flash build, a 1M-context chat and reasoning model with thinking mode enabled by default and image understanding.

DeepSeek V4.1 Flash specs

Model ID
deepseek/deepseek-v4.1-flash
Developer
DeepSeek
Context window
1,048,576 tokens
Max output
384,000 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What Is DeepSeek V4.1 Flash?

DeepSeek V4.1 Flash is the current build in DeepSeek's Flash line: a chat and reasoning model with a 1M-token context window, thinking mode enabled by default and image understanding. DeepSeek reports that it surpasses V4 Pro on performance, cost and speed.

Compared with earlier Flash builds, the notable change is multimodal input, the model reads images alongside text rather than text alone.

Technical Specifications

  • Context window: 1,048,576 tokens
  • Tool calling and structured outputs

Where DeepSeek V4.1 Flash Fits

Whole-repository and long-document work
A 1M-token window holds an entire codebase or a stack of filings in a single prompt, and a 384K output ceiling leaves room for long answers.

Multimodal analysis
Image understanding lets screenshots, diagrams and scanned pages go straight into the same request as the text.

Agentic workflows
Tool calling and structured outputs suit agent loops that plan, call tools and iterate.

The model also answers to the shorter alias deepseek-flash.

Use cases

DeepSeek V4.1 Flash is documented as suited to multimodal image-and-text tasks, with native support for processing images and text. It is also positioned for code-related work through official partner support with CodeBuddy and OpenCode. The model is further presented as a fit for agentic or tool-use workflows in the provider ecosystem.

Capabilities

  • Reasoning
  • Streaming
  • Structured outputs
  • Function calling
  • Vision

DeepSeek V4.1 Flash benchmarks by Artificial Analysis

See how DeepSeek V4.1 Flash compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 5 models available on AI/ML API across 4 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

DeepSeek V4.1 Flash API pricing

DeepSeek V4.1 Flash pricing in US dollars
UsagePriceUnit
Input$0.31M tokens
Output$1.21M tokens
Cached input$0.0061M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

DeepSeek V4.1 Flash vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
DeepSeek V4.1 Flash$0.3$1.2
DeepSeek Chat (V4.1 Flash)$0.3$1.2
DeepSeek V4 Flash Vision Exp$0.44$1.32
DeepSeek V4.1 Flash 1017$0.39$1.56
DeepSeek V4 Pro 0813$1.84$3.68

How to use the DeepSeek V4.1 Flash API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "deepseek/deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

DeepSeek V4.1 Flash FAQ

How much does DeepSeek V4.1 Flash cost?

DeepSeek V4.1 Flash costs $0.3 input and $1.2 output per 1M tokens on AI/ML API, billed as you go with no subscription.

What is DeepSeek V4.1 Flash?

DeepSeek V4.1 Flash is the current build in DeepSeek's Flash line: a chat and reasoning model with a 1M-token context window, thinking mode enabled by default and image understanding.

How does V4.1 Flash compare with V4 Pro?

DeepSeek reports that V4.1 Flash surpasses V4 Pro on performance, cost and speed. It also accepts image input, which V4 Pro does not.

Does DeepSeek V4.1 Flash accept images?

Yes. It takes both image and text input and returns text, so screenshots, diagrams and scanned pages can go into the same request as your prompt.

Is thinking mode on by default?

Yes. Thinking mode is enabled by default, so the model reasons through a problem before answering unless you tell it otherwise.

How large is the context window?

1,048,576 tokens, with up to 384,000 tokens of output.

Does DeepSeek V4.1 Flash support tool calling?

Yes, it supports function calling and structured outputs, alongside streaming responses.

What is DeepSeek V4.1 Flash best suited for?

Work that needs a very large window: whole-repository code analysis, long-document review, and agent loops that accumulate a lot of context. Image input widens that to mixed text-and-visual material.

Is there a shorter model name I can use?

Yes. The model also answers to the alias deepseek-flash.

How do I call DeepSeek V4.1 Flash on AI/ML API?

Send a request to the chat completions endpoint with the model id deepseek/deepseek-v4.1-flash. The request shape is the same as for any other chat model on AI/ML API.

Start building with DeepSeek V4.1 Flash

DeepSeek V4.1 Flash API

deepseek/deepseek-v4.1-flash

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "deepseek/deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'