DeepSeek V4.1 Flash 1017
Text generationDeepSeek-V4.1-Flash-1017
DeepSeek V4.1 Flash 1017 on FlexAI: DeepSeek LLM, MIT license, $0.08 / $0.605 per M tokens on the OpenAI-compatible Token Factory.
Recommended for
Pricing and availability
| Rate | Price |
|---|---|
| Input | $0.08 / M tokens |
| Output | $0.605 / M tokens |
| Cached input | $0.0055 / M tokens |
| Availability | Serverless, on the shared Token Factory API |
Deployment requirements
- Context
- 1.0M tokens
- Capabilities
- Accepts image input
- API endpoint
- /v1/chat/completions
- Compatibility
- OpenAI
- Parameters
- 763.2B
- License
- MIT
- Hardware
- 16× H100
- GPUs to self-host
- 16× H100
- Quantization (served)
- FP8
- Native precision
- FP8, from quantization_config
- Weights
- deepseek-ai/DeepSeek-V4.1-Flash-1017
- Published by
- DeepSeek
- Origin
- China
- Agent-ready
- Tool calling (measured)
Estimate your monthly cost
Share of input tokens served from prompt cache: repeated system prompts, long documents, and multi-turn context.
Estimate only, at the current market-tracked rate. Usage-based; no minimums.
Get an API keyServerless or dedicated for DeepSeek V4.1 Flash 1017
A dedicated 16× H100 endpoint costs $50,574/month and serves at most 70.08B tokens a month, which is less serverless spend than it costs. Serverless is cheaper at every volume for this model.
Assumes a 70/30 input/output token mix and an always-on endpoint at 730 hours a month. Dedicated bills per minute and autoscales, so serving less than continuously moves the crossover earlier. Your mix moves the crossover. Open the full calculator.
How to call DeepSeek V4.1 Flash 1017
from openai import OpenAI
client = OpenAI(base_url="https://api.flex.ai/v1", api_key="your-api-key")
response = client.chat.completions.create(
model="DeepSeek-V4.1-Flash-1017",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": "What's in this image?"},
{"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}},
],
}],
)
print(response.choices[0].message.content)Swap models, not your agent
DeepSeek V4.1 Flash 1017 runs behind the same OpenAI-compatible key as every other model in the catalog. Change the model string and your skills, tools, scoped memory, and governance carry over unchanged. The same setup scales to a dedicated endpoint or your own private cloud.