DeepSeek V4 Flash

DeepSeek V4 Flash is an efficiency-optimized Mixture-of-Experts model with 284B total parameters and 13B activated parameters, supporting a 1M-token context window. It is designed for fast inference and high-throughput applications, ideal for chat, summarization, and general-purpose tasks.

Quick Reference

PropertyValue
Model IDdeepseek/deepseek-v4-flash
Context window1,000,000 tokens
Max output8,192 tokens
Training data cutoff2024
Streaming
Function calling
Structured output
Batch API

Pricing

TypePrice
Input$0.27 / 1M tokens / 1M tokens
Output$0.67 / 1M tokens / 1M tokens

When to Use Flash vs Pro

ScenarioRecommended
Chatbots with high QPSFlash
Complex code generationPro
Bulk classification / taggingFlash
Math proof verificationPro
Real-time conversationFlash
Multi-step reasoningPro

Example

from openai import OpenAI

client = OpenAI(
    base_url="https://openapi.linkwo.ai/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash",
    messages=[
        {"role": "user", "content": "Summarize this article in 3 bullet points: ..."}
    ],
    temperature=0.5
)

print(response.choices[0].message.content)