by DeepSeek
DeepSeek-V4.1-Flash
- Context window
- 1Mtokens
- Prompt and output together
- Maximum output
- 384Ktokens
max_tokensup to 384,000- Default output cap
- 8,192tokens
- When
max_tokensis omitted
Pricing
USD per 1M tokens · the same price every hour
- Input, cache hitPrompt tokens the provider already has in its cache
- $0.010/ 1M
- Input, cache missPrompt tokens processed fresh
- $0.400/ 1M
- OutputGenerated tokens, reasoning included
- $1.600/ 1M
How prompt caching works
Caching is automatic. When a request starts with the same tokens as a recent one, such as a system prompt, tool definitions, or earlier turns of a conversation, those tokens are billed at the cache-hit rate. Each response reports the split in prompt_cache_hit_tokens and prompt_cache_miss_tokens.
Capabilities
- Streaming — SupportedServer-Sent Events with
stream: true - Tool calling — Supported
tools, including parallel calls - JSON output — Supported
response_formatset to JSON object - Reasoning — SupportedReturned in
reasoning_content, billed as output - Image input — Supported