DeepSeek V4.1 Flash API

DeepSeek V4.1 Flash - multimodal MoE with 552B params, 1M context, CED architecture and controllable reasoning (1-100). Optimized for agentic workloads.

Provider: DeepSeek | Model ID: deepseek-v4-1-flash | Context Window: 1.0M tokens

On this model: 1.0M tokens context window, agentic workload class, 67% cached-input discount, routed through DeepSeek infrastructure.

Pricing

₹30/1M input · ₹100/1M output. Pay-as-you-go micro-metered billing. UPI and cards accepted with zero minimum commitment.

Token TypePrice (INR)
Input Tokens₹30/1M tokens
Output Tokens₹100/1M tokens
Prompt Caching Input₹10/1M tokens

Model Specifications

Model Identifierdeepseek-v4-1-flash
ProviderDeepSeek
Categoryagentic
Context Window1.0M tokens
Output Pricing Tiermid
API ProtocolOpenAI-compatible REST API (JSON)
Endpointhttps://api.luminoai.co.in/v1/chat/completions

OpenAI-Compatible Integration

Drop into existing OpenAI SDK code by changing the base URL to https://api.luminoai.co.in/v1. The request shape below is the agentic coding pattern.

curl https://api.luminoai.co.in/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LUMINO_API_KEY" \
  -d '{
    "model": "deepseek-v4-1-flash",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Read the failing test, locate the bug, and return a patch."}
    ]
  }'

Good fit for agentic coding

  • Autonomous coding agents that read files, run tools, and iterate
  • Multi-step workflow automation where the model calls your functions
  • Long repository or document context that must stay resident across turns
  • Internal developer tools that need reliable structured output

Why agentic workloads get expensive

Agent loops resend the whole conversation on every turn, and a failed tool call bills the entire history again. Three controls matter most: cap the loop iterations, trim tool output before it re-enters history, and set a realistic max_tokens instead of leaving the ceiling open.

DeepSeek V4.1 Flash API FAQ

Does DeepSeek V4.1 Flash support function calling?

Yes — send tools in the standard OpenAI tools array and the model returns tool calls in the same shape your existing client already parses.

What dominates the cost of an agent loop?

Input tokens, because the full history is resent every turn. Cached input pricing is what keeps long loops affordable.

How do I keep long sessions from drifting?

Keep the system prompt stable so the prefix stays cacheable, and summarise older turns instead of dropping them silently.

Explore all models in catalog | API Documentation | Test DeepSeek V4.1 Flash in Playground