Skip to content

DeepSeek V4.1 Flash

DeepSeek V4.1 Flash is a sparse mixture-of-experts model from DeepSeek, and the first built on the company's Causal Encoder-Decoder (CED) architecture.

Pricing

Input
$0.0297per 1M tokens
Output
$0.126per 1M tokens
Cache read
$0.0006per 1M tokens
Max output
943,718tokens

OpenRouter's price plus OpenRouter's 5% platform fee. Deference adds no markup.

opencode.json

{
  "provider": {
    "deference": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
      "models": { "deepseek/deepseek-v4.1-flash": { "limit": { "context": 1048576, "output": 943718 } } }
    }
  }
}
OpenCode, set up for DeepSeek V4.1 Flash

Find us on