Models

deepseek-v4.1-flash — API, Pricing & Context Window | Vivgrid

deepseek-v4.1-flash on Vivgrid: DeepSeek's fast, ultra-affordable V4.1 model with image input, a 1M-token context window, up to 384K output tokens, and both Chat Completions and Responses API support.

deepseek-v4.1-flash is the fast, ultra-affordable member of DeepSeek's V4.1 family, released in September 2026. It keeps the V4 line's 1M-token context window and 384K-token max output, adds native image input, and is priced at $0.31 per 1M input tokens, $0.01 cached, and $1.23 output.

It is a separate model id, not an in-place upgrade: deepseek-v4-flash stays available and unchanged, so you can pin either one.

It is available on both OpenAI surfaces — Chat Completions (/chat/completions) and the Responses API (/responses) — so coding CLIs that expect the Responses wire format, such as Codex and Pi, work against the same key.

Specifications

ProviderDeepSeek
Model IDdeepseek-v4.1-flash
Best forCoding
Available onVibe coding, Chat Completions
Context window1,000,000 tokens
Max output384,000 tokens
ModalitiesText, Image
Tool / function callingYes
Knowledge cutoff—
Acceleration🌐 Global (Centralized)

Pricing

Pricing in USD per 1M tokens, matching the provider's rates.

InputCached inputOutput
$0.31$0.01$1.23

What one request costs

The rates above applied to a 20K-token prompt with a 2K-token reply — a typical single agent turn, small enough that every request is billed at the base rate.

RequestCost
Cold prompt, nothing cached$0.00866
Warm prompt, 90% of the input served from cache$0.00326

API surfaces

The Vivgrid Console catalogs deepseek-v4.1-flash on 2 surfaces, all behind the same API key. The endpoint shown is the one the Console previews for that surface.

SurfacePrimary endpointUse it for
Vibe coding/chat/completionsCoding CLIs and IDE agents that drive the model themselves — point the tool at Vivgrid and keep your own loop.
Chat Completions/chat/completionsAgent projects, where Vivgrid injects the model, system prompt and tools server-side, and Model API calls that name the model per request.

Quick start

Get an API key from the Vivgrid Console, then call deepseek-v4.1-flash directly.

curl https://api.vivgrid.com/v1/chat/completions \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash",
    "messages": [
      { "role": "user", "content": "Say hello in English, Chinese and Spanish." }
    ],
    "stream": true
  }'

Choosing within the DeepSeek V4 family

Prices are USD per 1M tokens at the base rate. Rows marked this page are the model described here.

ModelContextMax outputInputOutput
deepseek-v4-pro1,000,000384,000$1.74$3.48
deepseek-v4.1-flash — this page1,000,000384,000$0.31$1.23
deepseek-v4-flash1,000,000384,000$0.44$1.32
deepseek-v4-flash-vision-exp1,000,000384,000$0.44$1.32

Ideal use cases

  • Very high-volume, cost-sensitive coding and agent traffic
  • Tool-calling workflows that mix text with screenshots or diagrams
  • Long-context summarization and extraction over whole repositories
  • First-pass steps in multi-model pipelines ahead of a flagship model

On this page