Felo API PlatformFelo API Platform
Back to models
DeepSeekmessages

DeepSeek V4.1 Flash 1017 API

DeepSeek V4.1 Flash 1017 is an open-weight multimodal mixture-of-experts model with up to one million tokens of input context and continuously adjustable reasoning effort.

DeepSeek V4.1 Flash 1017 is a multimodal mixture-of-experts model from DeepSeek that accepts text and image input and produces text output. It supports up to one million tokens of input context and a maximum output of 384,000 tokens. Reasoning effort is continuously controllable, so users can tune how deeply the model thinks for a given task. The model is released under the MIT license, which permits commercial use and self-hosting, and it is available as open weights that can be downloaded and run on your own hardware.

The model does not rely on a Jinja-format chat template. Instead, it provides a self-contained Python reference implementation for prompt encoding, and it ships deepseek-recipe, a set of Rust libraries with Python bindings that offer the same prompt format. One source reports 763.2 billion total parameters, while another lists 552 billion backbone parameters with 8 billion active during prefill and 16 billion active during decode. The model was trained on 45 trillion tokens, and its knowledge cutoff is May 2025.

DeepSeek V4.1 Flash 1017 fits long-context multimodal reasoning, coding, document understanding and analysis, chart interpretation, visual question answering, and tool-using agentic applications that consume text and images and generate text. It is positioned as the cost-efficient tier of the V4.1 family. Reports indicate it exceeds DeepSeek V4 Pro on performance, speed, and task completion time, and that it outperforms K3, GLM-5.3, and GPT-5.6 Sol in many cases, though it trails Opus 5 on several benchmarks.

Updated:

MODEL ID

deepseek-v4.1-flash-1017
Context
1.049M
Max output
393.216K
Recommended API
messages
Input
text / image
Output
text

Highlights

  • Up to one million tokens of input context
  • Continuously controllable reasoning effort
  • MIT license for commercial use and self-hosting
  • Open weights for local deployment
  • Text and image input, text output
  • 384,000-token output limit

Providers

Best price
5 providers

Compare API prices across providers. Select a provider to view all charges and conditions.

Provider · Pricing details
Uptime
$0.3$1.2$0.007
$0.02$1.8$0.015
$0.2$0.8$0.007
$0.3$0.27$1.2$1.08$0.007$0.0063
$0.3$1.2$0.007

What $10 buys

Input
33.3M tokens
Output
8.3M tokens

Estimated from current input and output prices, before discounts.

Benchmarks

  • HLE (without tools)

    The previous DeepSeek V4.1 Flash scored 36.8.

    42.6
  • Terminal-Bench 4.0

    The previous DeepSeek V4.1 Flash scored 31.2.

    42.3
  • DeepSWE v1.1

    77.0
  • ProgramBench

    29.1
  • NL2Repo-Bench

    68.2
  • Automation-Bench v1.0.6

    60.5
  • Agents Last Exam

    35.4
  • Apex Bench v1.1

    72.1

Scores as published by the model provider.

Reasoning

Default effort
high
Enabled by default
Yes
Always enabled
No
Available effort levels
max / high / low / none

Quick Start

Drop-in code to call this model with Felo API Platform compatible APIs. Start in the Playground when you want to test prompts before writing code.

1

Get your API key

Create a key from your Felo API Platform account and set it as an environment variable.

export FELO_API_KEY="YOUR_API_KEY"
2

Make your first request

Use this model ID with the Felo API Platform endpoint. Optional request headers such as X-Request-Id can help troubleshooting.

deepseek-v4.1-flash-1017

This model is reasoning-capable. If your selected protocol and model route expose reasoning controls, preserve the returned reasoning metadata when continuing a conversation.

const response = await fetch("https://openapi.felo.ai/api/v1/messages", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.FELO_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "model": "deepseek-v4.1-flash-1017",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Using third-party SDKs

Use compatible SDKs by setting baseURL to https://openapi.felo.ai/api/v1. Use the Anthropic-compatible base URL for Claude-style clients. https://openapi.felo.ai/api.

3

Enable streaming

Add stream: true to receive responses as server-sent events.

curl -N https://openapi.felo.ai/api/v1/messages \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v4.1-flash-1017",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "stream": true
}'

Endpoint

Felo API Platform exposes compatible model-calling surfaces. Pick the surface your app or agent client already supports.

SurfaceMethodURL

Messages

Anthropic-compatible messages for Claude-style clients.

POST

https://openapi.felo.ai/api/v1/messages

Parameters

NameTypeDefaultDescription
modelstringdeepseek-v4.1-flash-1017Public model ID to call.
max_tokensinteger—Maximum generated tokens.
messagesarray—Conversation messages for Chat Completions.
seed———
stop———
min_p———
toolsarray—Tool calling definitions following compatible schema.
top_k———
top_p———
logprobs———
reasoning———
logit_bias———
temperaturenumber—Controls response variety when supported.
tool_choicestring or object—Controls whether a tool should be called.
top_logprobs———
response_formatobject—Request structured output when supported.
presence_penalty———
reasoning_effort———
frequency_penalty———
include_reasoning———
repetition_penalty———
structured_outputs———
parallel_tool_calls———
max_completion_tokens———

Frequently asked questions

What is DeepSeek V4.1 Flash 1017?

DeepSeek V4.1 Flash 1017 is a multimodal mixture-of-experts model from DeepSeek that accepts text and image input and produces text output. It supports up to one million tokens of input context and a maximum output of 384,000 tokens. Reasoning effort is continuously controllable, so users can tune how deeply the model thinks for a given task. The model is released under the MIT license, which permits commercial use and self-hosting, and it is available as open weights that can be downloaded and run on your own hardware. The model does not rely on a Jinja-format chat template. Instead, it provides a self-contained Python reference implementation for prompt encoding, and it ships deepseek-recipe, a set of Rust libraries with Python bindings that offer the same prompt format. One source reports 763.2 billion total parameters, while another lists 552 billion backbone parameters with 8 billion active during prefill and 16 billion active during decode. The model was trained on 45 trillion tokens, and its knowledge cutoff is May 2025. DeepSeek V4.1 Flash 1017 fits long-context multimodal reasoning, coding, document understanding and analysis, chart interpretation, visual question answering, and tool-using agentic applications that consume text and images and generate text. It is positioned as the cost-efficient tier of the V4.1 family. Reports indicate it exceeds DeepSeek V4 Pro on performance, speed, and task completion time, and that it outperforms K3, GLM-5.3, and GPT-5.6 Sol in many cases, though it trails Opus 5 on several benchmarks.

How is usage billed?

Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.

What input types and output does DeepSeek V4.1 Flash 1017 support?

It accepts text and image input and generates text output.

How much context can it handle?

It supports up to one million tokens of input context, with a maximum output of 384,000 tokens.

Can I adjust how much reasoning it does?

Yes. Reasoning effort is continuously controllable, so you can adjust the reasoning depth to fit the task.

Can it be self-hosted and used commercially?

Yes. It is released under the MIT license, which permits commercial use and self-hosting, and the open weights can be downloaded and run on your own hardware.

Does it use a Jinja-format chat template?

No. It provides a self-contained Python reference implementation for prompt encoding and ships deepseek-recipe, Rust libraries with Python bindings that offer the same prompt format.

How does it differ from DeepSeek V4 Pro?

DeepSeek V4.1 Flash 1017 is positioned as the cost-efficient tier of the V4.1 family. Reports indicate it exceeds DeepSeek V4 Pro on performance, speed, and task completion time.

Related models