Speed
Output tokens / second
Custom pricing for production workloads
DeepSeek's newest Flash build: stronger benchmarks, faster task completion and shorter outputs, with a 1M context window.
DeepSeek V4.1 Flash 1017 is DeepSeek's newest Flash build, a 1M-context chat and reasoning model with stronger benchmarks, faster task completion and shorter outputs than V4.1 Flash.
deepseek/deepseek-v4.1-flashhttps://api.aimlapi.com/v1DeepSeek V4.1 Flash 1017 is the newest build in DeepSeek's Flash line, released on October 17, 2026. DeepSeek reports stronger benchmark performance, faster task completion and shorter outputs than the previous V4.1 Flash, a Pareto improvement in performance and cost. Like V4.1 Flash, it is a chat and reasoning model with a 1M-token context window, thinking mode enabled by default and image understanding.
Compared with V4.1 Flash, the 1017 build is optimized for DeepSeek Harness (v0.2.1-rc.1 or later), Tencent CodeBuddy, WorkBuddy and other coding agents.
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.
Shorter outputs and faster task completion keep long agent runs cheaper.
DeepSeek V4.1 Flash 1017 is documented as suited to multimodal image-and-text tasks, with native support for processing images and text. It is optimized for coding agents and tools such as DeepSeek Harness, Tencent CodeBuddy and WorkBuddy, and is a fit for agentic or tool-use workflows where faster task completion and shorter outputs keep cost down.
See how DeepSeek V4.1 Flash 1017 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 5 models available on AI/ML API across 4 independent benchmarks.
Expert-written questions across academic subjects.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.39 | 1M tokens |
| Output | $1.56 | 1M tokens |
| Cached input | $0.0078 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.39 | $1.56 | |
| $0.3 | $1.2 | |
| $0.3 | $1.2 | |
| $0.44 | $1.32 | |
| $1.84 | $3.68 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"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."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "deepseek/deepseek-v4.1-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "deepseek/deepseek-v4.1-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());DeepSeek V4.1 Flash 1017 costs $0.39 input and $1.56 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes. Thinking mode is enabled by default, so the model reasons through a problem before answering unless you tell it otherwise.
1,048,576 tokens, with up to 384,000 tokens of output.
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.
Yes, it supports tool calling and JSON mode (json_object); json_schema structured outputs are not supported.
Send a request to the chat completions endpoint with the model id deepseek/deepseek-v4.1-flash-1017. The request shape is the same as for any other chat model on AI/ML API.
DeepSeek reports that V4.1 Flash 1017 brings stronger benchmark performance, faster task completion and shorter outputs than V4.1 Flash, a Pareto improvement in performance and cost. Both models accept image input and offer a 1M-token context window.
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.
DeepSeek V4.1 Flash 1017 is the newest build in DeepSeek's Flash line, released on October 17, 2026: a chat and reasoning model with a 1M-token context window, thinking mode enabled by default and image understanding. DeepSeek reports stronger benchmark performance, faster task completion and shorter outputs than the previous V4.1 Flash.
Use deepseek/deepseek-v4.1-flash as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.