• DeepSeek
  • Text
  • 1M context
  • Reasoning

DeepSeek V4.1 Flash API: pricing, capabilities and setup

DeepSeek V4.1 Flash API through llmbox: DeepSeek's newest Flash model with a 1M-token context window and image input, for code, agents and high-volume tasks.

pay as you go · no subscription · key right after sign-up

Model ID
Input
$0.10 / 1M
Output
$0.27 / 1M
Get a key No subscription · pay as you go

How much DeepSeek V4.1 Flash costs

  • Input
    $0.10
    per 1M tokens
  • Output
    $0.27
    per 1M tokens
  • Cache read
    $0.0117
    per 1M tokens
  • Cache write
    $0.125
    per 1M tokens

Cost calculator

100 M tokens

75%

The rest is output

With llmbox
$14

What a typical task costs

TaskTokens (input / output)With llmbox
Short chat2 000 / 500$0.00034
Code review20 000 / 2 000$0.00254
Document summary40 000 / 2 000$0.00454
Agent session600 000 / 30 000$0.0681

Specs

  • Context
    1M
    tokens
  • Max output
    384K
    tokens
  • Input
    text, images

Capabilities

  • Tool calling
  • JSON schema output
  • Reasoning
  • Streaming
  • Prompt caching
  • Image input

Endpoints

  • /v1/chat/completions
  • /v1/responses
  • /v1/messages

Setup in three steps

  1. 01
    Get a key

    Sign up and create an API key in the dashboard.

    Get a key →
  2. 02
    Set the base URL

    In any OpenAI-compatible client, point the API address to:

  3. 03
    Pass the model id

    Put this identifier in the model field:

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://llmbox.cc/v1",
    api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
    model="deepseek/deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)

What DeepSeek V4.1 Flash is good for

DeepSeek V4.1 Flash is DeepSeek's newest Flash model and the first one built on the company's new architecture. DeepSeek calls it the smallest model in the new family and cites comparisons from several sources in which it outperforms the larger model of the previous generation, V4 Pro. According to DeepSeek's documentation, the context window is 1M tokens and a single response can run up to 384K tokens; the model accepts text and images as input and replies with text. The weights are open under the MIT license.

What it's good for

The main use case is coding agents: terminal work, edits across a repository, building a project from scratch. DeepSeek trained the model specifically for developing projects end to end, and the October 17 release cut both task completion time and response length. The model is a good fit for agent sessions with a lot of input — long history, files, tool results. A repeated prefix of such requests can hit the cache.

Per DeepSeek's documentation, V4.1 Flash understands images natively: you can pass UI screenshots, charts and document scans together with your text. Reasoning is on by default, and its depth is set with the levels low, high and max. The low level suits high-volume requests, the high level suits everyday agent work. Output can be constrained to a JSON schema, which helps when the answer goes straight into your code.

When to pick another model

  • Tasks that depend above all on the breadth of factual knowledge — compare the result with the larger DeepSeek V4 Pro.
  • Image generation — V4.1 Flash replies with text only; image models are collected on the image models page.

How to connect

The model is available in two formats: Chat Completions for Cursor, OpenCode and the OpenAI SDK, and Responses for Codex CLI. All you need is an llmbox key and the model ID deepseek/deepseek-v4.1-flash — no DeepSeek account and no DeepSeek API key. The base URL and a first request are in the Quickstart, and step-by-step settings for each tool are in Integrations. The same key works with the other DeepSeek models and every other vendor in the catalog.

Pricing and billing

Rates per 1M input and output tokens, as well as for cache reads and cache writes, are listed on this page. Reasoning tokens count as output, so a low reasoning level on simple agent steps noticeably reduces spend. You pay from a prepaid balance as you go; there is no subscription and no monthly fee. Every request with its status, tokens and cost appears in the request log in your dashboard.

Typical tasks

  • Coding agents in Codex CLI, Cursor and OpenCode
  • Long agent sessions with a large amount of input context
  • Reading screenshots, charts and documents alongside text
  • High-volume tasks with JSON-schema output

DeepSeek V4.1 Flash or DeepSeek V4 Pro?

ModelInput · 1MOutput · 1M
DeepSeek V4.1 Flash$0.10$0.27
DeepSeek V4 Pro$0.19$0.555

DeepSeek V4.1 Flash vs neighbours

ModelInput · 1MOutput · 1M
DeepSeek V4.1 Flash$0.10$0.27
DeepSeek V4.1 Flash 1017 $0.09$0.36
DeepSeek V4 Flash 0731 $0.10$0.28
DeepSeek V4 Pro 0813 $0.10$0.28
DeepSeek V4 Flash $0.144$0.396
Gemini 3.1 Flash Lite Google$0.10$0.40
All DeepSeek models

DeepSeek V4.1 Flash is also compared with

Other DeepSeek models

Articles about the model

FAQ

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

V4.1 Flash is built on DeepSeek's new architecture and understands images natively, while V4 Flash belongs to the previous V4 generation. In DeepSeek's lineup V4.1 Flash has replaced V4 Flash as the main Flash model, so pick it for new projects.

Should I choose V4.1 Flash or V4 Pro?

V4.1 Flash is the newer model: DeepSeek cites comparisons from several sources in which it outperforms V4 Pro. Start with V4.1 Flash and compare it with V4 Pro on your own tasks if the results fall short.

Do I need a DeepSeek API key?

No. Requests use an llmbox key, which you create in the API keys section of your dashboard. The same key works with models from every other vendor in the catalog.

What model name do I pass to the API?

Pass deepseek/deepseek-v4.1-flash. The model is available in the Chat Completions and Responses formats, so it works with Cursor, OpenCode and Codex CLI; setup steps are in the Integrations section of the docs.

How is DeepSeek V4.1 Flash billed?

Per input and output token, from a prepaid balance as you go — there is no subscription. The rates, including cache reads and cache writes, are listed on this page. Reasoning tokens count as output, and spend on different kinds of tasks is visible in the request log in your dashboard.