DeepSeek V4 Flash API

DeepSeek V4 Flash and Pro are large language models for chat and reasoning tasks with up to 1M context length. They support both standard and thinking modes, enabling efficient responses or deeper reasoning workflows.

Modalities
TextText
In / Out price
$0.2645/$0.4221per 1M
Context window
1M tokens
Released
Apr 24, 2026

DeepSeek V4 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 Flash through AI/ML API

DeepSeek V4 Flash by DeepSeek

DeepSeek V4 Flash and Pro are large language models for chat and reasoning tasks with up to 1M context length.

DeepSeek V4 Flash specs

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

What is DeepSeek V4 Flash API?

DeepSeek V4 Flash and Pro are large language models for chat and reasoning tasks with up to 1M context length. They support both standard and thinking modes, enabling efficient responses or deeper reasoning workflows.

Where to Use DeepSeek V4 Flash

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Use cases

DeepSeek V4 Flash is documented as suited to everyday dialogue, content creation, basic RAG applications, and batch text processing.

It is also described as a good fit for chat and conversational experiences, high-volume content generation, classification, summarization, and extraction.

Another documented fit is real-time copilot and assistant use, especially where low latency and high throughput matter.

A further stated use case is agentic AI and tool-use workflows, including complex problem-solving in mathematics, software engineering, and enterprise AI assistants.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs
  • Web search

DeepSeek V4 Flash benchmarks by Artificial Analysis

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

Speed

Output tokens / second

Benchmark results

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

Humanity's Last Exam

Expert-written questions across academic subjects.

DeepSeek V4 Flash API pricing

DeepSeek V4 Flash pricing in US dollars
UsagePriceUnit
Input$0.26451M tokens
Output$0.42211M tokens
Cached input$0.0061M tokens

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

DeepSeek V4 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 Flash$0.2645$0.4221
DeepSeek Chat (V4.1 Flash)$0.3$1.2
DeepSeek 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

How to use the DeepSeek V4 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-flash",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

DeepSeek V4 Flash FAQ

What is the context window of DeepSeek V4 Flash?

DeepSeek V4 Flash has a 1,000,000 tokens context window and can return up to 384,000 tokens.

What inputs and outputs does DeepSeek V4 Flash support?

DeepSeek V4 Flash takes text as input and returns text.

What is the model ID for DeepSeek V4 Flash?

Use deepseek/deepseek-v4-flash as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

When was DeepSeek V4 Flash released?

DeepSeek V4 Flash became available on April 24, 2026.

How much does DeepSeek V4 Flash cost?

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

Does DeepSeek V4 Flash support streaming?

Yes, DeepSeek V4 Flash can stream responses as they are generated.

Who created DeepSeek V4 Flash?

DeepSeek V4 Flash was built by DeepSeek.

What is DeepSeek V4 Flash intended for?

It is a chat and reasoning model supporting both standard and deeper thinking modes for various language tasks.

Start building with DeepSeek V4 Flash

DeepSeek V4 Flash API

deepseek/deepseek-v4-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-flash",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'