DeepSeek

deepseek/deepseek-flash

1M context · $0.1800 / M input tokens · $0.7200 / M output tokens

DeepSeek V4.1 Flash is a DeepSeek model route on OurToken for developers who need native image understanding, very long context, and cost-efficient production traffic. It replaces the retired V4 Flash line and is called through the deepseek-flash model ID.

Get API Key
24H Status Monitor

Historical uptime data is collected over time. Current status reflects the latest health check.

Pricing

Pay-per-use

No upfront costs, pay only for what you use

60% of official price
Input$0.30 / M$0.1800 / M Tokens
Output$1.20 / M$0.7200 / M Tokens
Cached input$0.006 / M$0.0036 / M Tokens
Cache writes$0 / M$0 / M Tokens

API Usage

API Access Guide

Base URLhttps://api.ourtoken.ai/v1
API Endpointchat/completions
Full URLhttps://api.ourtoken.ai/v1/chat/completions
Model IDdeepseek-flash
Get API Key

Code examples

Use the OurToken API endpoint for this model. The examples below use direct HTTP requests and the recommended endpoint for the model family.

curl https://api.ourtoken.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "deepseek-flash",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ],
    "max_tokens": 256
  }'

Chat Completions API Reference

Create a chat response with the OpenAI Chat Completions-compatible endpoint. Use https://api.ourtoken.ai/v1 as the SDK Base URL and POST /chat/completions as the endpoint.

Authorization

Content-Typeapplication/json
AuthorizationBearer YOUR_API_KEY

Request Body

FieldTypeRequiredDescription
modelstringRequiredModel ID to call.
messagesarray<object>RequiredConversation messages sent to the model.
max_tokensintegerOptionalMaximum number of output tokens.
temperaturenumberOptionalSampling temperature.
top_pnumberOptionalNucleus sampling parameter.
streambooleanOptionalWhether to return a streaming response.
stream_optionsobjectOptionalAdditional options for streaming responses.
toolsarray<object>OptionalTools available to the model.
tool_choicestring | objectOptionalControls how the model selects tools.
response_formatobjectOptionalControls structured output, such as JSON object responses.

Response Body

FieldTypeRequiredDescription
idstringRequiredUnique chat completion identifier.
object"chat.completion"RequiredObject type returned by the Chat Completions API.
createdintegerRequiredUnix timestamp when the response was created.
modelstringRequiredModel that produced the response.
choicesarray<object>RequiredCandidate responses returned by the model.
choices[].message.rolestringRequiredRole of the returned chat message.
choices[].message.contentstringOptionalText content in the returned chat message.
choices[].finish_reasonstringOptionalReason generation stopped.
usageobjectOptionalToken usage information for the chat completion.
usage.prompt_tokensintegerOptionalInput token count.
usage.completion_tokensintegerOptionalOutput token count.
usage.total_tokensintegerOptionalTotal token count.
usage.prompt_tokens_detailsobjectOptionalBreakdown of input token usage.
usage.prompt_tokens_details.cached_tokensintegerOptionalTokens served from cache.

Model Introduction

DeepSeek deepseek-flash

DeepSeek V4.1 Flash is a DeepSeek model route on OurToken for developers who need native image understanding, very long context, and cost-efficient production traffic. It replaces the retired V4 Flash line and is called through the deepseek-flash model ID.

DeepSeek V4.1 Flash gives teams a lower-cost DeepSeek route with a 1M-token context window, native image understanding, and up to 384K output tokens for application work that needs long prompts and predictable pricing. Use DeepSeek V4.1 Flash API when you want to test DeepSeek workflows through the OurToken unified API while keeping model IDs, usage logs, cache costs, and price review in one dashboard.

Why It Looks Great

  • 60% of the official peak DeepSeek V4.1 Flash reference price for input and output tokens.
  • OpenAI-compatible API setup through the same OurToken endpoint used by other supported models.
  • A 1M-token context window with up to 384K output tokens for long documents, repositories, and multi-turn agents.
  • Native image understanding, so vision and text prompts can travel in a single request.
  • Dashboard logs and usage visibility help teams review request cost after launch.

Key Features

  • Model ID: deepseek-flash
  • Input price: $0.1800 per 1M tokens on OurToken
  • Output price: $0.7200 per 1M tokens on OurToken
  • Cache read price: $0.0036 per 1M tokens on OurToken
  • Cache write price: $0 per 1M tokens on OurToken
  • Provider: DeepSeek

Specifications

ProviderDeepSeek
Model TypeMultimodal Mixture-of-Experts (MoE) LLM
Model IDdeepseek-flash
Total Parameters552B (MoE)
Active Parameters8B input / 16B output
Context Length1M tokens
Max Output384K tokens
Thinking ModeEnabled by default, non-thinking optional
Image InputSupported
OurToken Input Price$0.1800 / 1M tokens
OurToken Output Price$0.7200 / 1M tokens
OurToken Cache Read Price$0.0036 / 1M tokens
OurToken Cache Write Price$0 / 1M tokens
Official Peak Input Reference$0.30 / 1M tokens
Official Peak Output Reference$1.20 / 1M tokens
Official Peak Cache Read Reference$0.006 / 1M tokens

DeepSeek V4.1 Flash API Features

OurToken covers DeepSeek V4.1 Flash API access, pricing, model ID, context limits, and developer workflow. This route keeps a single key across chat, coding, and agent traffic while usage logs and cost stay visible.

Unified API Access

Call DeepSeek V4.1 Flash API through the same OpenAI-compatible endpoint OurToken uses for every supported model. One API key covers chat completions, responses, and Anthropic-style messages, so you can compare DeepSeek V4.1 Flash against other routes without maintaining a separate provider integration path.

Transparent Token Pricing

OurToken lists DeepSeek V4.1 Flash price per million tokens for input, output, cache read, and cache write, next to the official peak reference price. Because the model bills cache hits far below cache misses and off-peak traffic below peak, checking this table before you scale helps you forecast spend.

1M Context Window

DeepSeek V4.1 Flash supports a 1M-token context window with up to 384K output tokens, which suits long documents, large repositories, and multi-turn agents. On OurToken you can send long prompts and watch how cache read pricing changes the cost of repeated context.

Vision and Multimodal Input

V4.1 Flash is DeepSeek's first Flash build with native image understanding, so a single deepseek v4.1 flash api call can mix screenshots, scanned pages, or diagrams with text instructions. Combine that with a 1M context window for document review and visual QA workflows.

Thinking and Tool Calls

The model runs in thinking mode by default and also supports non-thinking mode, tool calls, JSON output, and structured responses. That combination fits assistants that must reason through a task and then return machine-readable payloads your application can validate.

Agent and Coding Workflows

Point coding agents such as Claude Code, Codex CLI, or OpenCode at the OurToken endpoint and select DeepSeek V4.1 Flash as the model. OurToken publishes setup guides for these tools, and the Responses API plus Anthropic-compatible endpoint keep existing agent integrations working.

How to Use DeepSeek V4.1 Flash on OurToken

Follow six steps to move from a new API key to production traffic: pick the model ID, send a first request, compare DeepSeek V4.1 Flash API pricing, then monitor usage and cost.

Create an API Key

Sign in to OurToken and create a key from the API Keys page. Copy it into your environment rather than into source control, then confirm the key is active before you build the rest of the integration around DeepSeek V4.1 Flash.

01

Select the Model ID

Use deepseek-flash as the model value for new integrations. If you already ship deepseek-v4-flash or deepseek-v4-flash-vision-exp, those names still resolve and are served by V4.1 Flash, so migration can wait until your next release cycle.

02

Send Your First Request

Point your client at the OurToken chat completions endpoint and send a short prompt before adding complexity. Streaming, system prompts, and multi-turn history all follow the OpenAI request shape, so existing SDK code usually needs only a base URL and model change.

03

Compare Pricing and Cache Cost

Check the DeepSeek V4.1 Flash price table for input, output, and cache read, and note that off-peak traffic costs less than peak hours. Then estimate your own prompt mix, because cache hit rates decide most of the bill in agent workloads.

04

Configure Thinking and Tools

Decide whether each workload should run in thinking mode or non-thinking mode, then define your tools and JSON schema if the response feeds another system. Test both settings against the same prompts before you commit to a default.

05

Monitor Usage and Cost

Watch request logs, token counts, and cost per model in the OurToken dashboard after launch. Compare latency and quality against the routes you already run, and recheck DeepSeek V4.1 Flash API pricing whenever DeepSeek updates official rates.

06

DeepSeek V4.1 Flash FAQ

Answers to the questions developers ask before adopting this route: what it is, what it costs, which model ID to use, what it supports, and how the V4 Pro change affects existing traffic.

01

What is DeepSeek V4.1 Flash API?

DeepSeek V4.1 Flash is the model behind the deepseek-flash API name, released on September 10, 2026 as DeepSeek's newest Flash build. It is a 552B mixture-of-experts model with 8B active parameters on input and 16B on output, a 1M-token context window, up to 384K output tokens, and native image understanding. OurToken exposes it through one unified endpoint.
02

How much does DeepSeek V4.1 Flash API cost?

Official peak pricing is $0.30 per million cache-miss input tokens, $1.20 per million output tokens, and $0.006 per million cache-hit input tokens, with off-peak rates at half. OurToken lists this DeepSeek V4.1 Flash API route at 60% of the official peak price, so check the price table on this page for the input, output, cache read, and cache write numbers you will be billed.
03

Which model ID should I use for DeepSeek V4.1 Flash?

Use deepseek-flash for new integrations; that is the name DeepSeek publishes. Providers and blog posts often write the same model as deepseek-v4.1-flash or deepseek v4.1-flash, so those spellings appear in third-party docs even though they are not the official API value. The previous names deepseek-v4-flash and deepseek-v4-flash-vision-exp still resolve and are served by V4.1 Flash.
04

How do I call DeepSeek V4.1 Flash API on OurToken?

Create an API key, point your client at the OurToken endpoint, and pass deepseek-flash as the model value. Requests follow the OpenAI chat completions shape, and responses and Anthropic-style messages are also available if your tooling already uses them. Then compare latency, quality, and cost against your current route before switching production traffic.
05

Is DeepSeek V4.1 Flash good for coding and agent workflows?

It is a reasonable default for coding assistants and agents: the model supports tool calls, JSON output, a 1M-token context for large repositories, and thinking mode for multi-step tasks. OurToken publishes setup guides for Claude Code, Codex CLI, and OpenCode, so you can test it in the tools your team already uses. Measure it on your own prompts.
06

Will deepseek-v4-pro stop working on September 14?

From 12:00 Beijing time on September 14, 2026, requests to deepseek-v4-pro are routed to V4.1 Flash and billed at the Flash price, so the name keeps working while the model behind it changes. If you need stable behavior, pin a specific model ID and retest your prompts after the switch.