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
- Input, cache hitPrompt tokens the provider already has in its cache
Normal price: $0.010, launch price $0.004≈ Rp72/ 1M- Input, cache missPrompt tokens processed fresh
Normal price: $0.400, launch price $0.250≈ Rp4,500/ 1M- OutputGenerated tokens, reasoning included
Normal price: $1.600, launch price $1.000≈ Rp18,000/ 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