Skip to content

DeepSeek V4.1 Flash

DeepSeek V4.1 Flash is DeepSeek's open-weight large language model. On Mango Inference you call it by its model ID through the OpenAI-compatible and Anthropic-compatible APIs, with no servers to run, and pay per token.

At a glance

Property Value
Model ID deepseek-ai/DeepSeek-V4.1-Flash-1017
Developer DeepSeek
Input Text, image, file (PDF)
Output Text
Context window 1,048,576 tokens
Max output tokens 1,048,576 tokens
Features Tool calling, structured output, reasoning, images and PDFs
Price Per token. See the pricing page.
Model card deepseek-ai/DeepSeek-V4.1-Flash-1017 on Hugging Face

The model catalogue changes over time. The live list is authoritative: see Models and pricing.

Call DeepSeek V4.1 Flash

Get an API key, then send a request with deepseek-ai/DeepSeek-V4.1-Flash-1017 as the model.

curl https://api.mangoboost.io/v1/chat/completions \
  -H "Authorization: Bearer $MANGOINFERENCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
    "messages": [
      {"role": "user", "content": "Explain tool calling in one paragraph."}
    ]
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mangoboost.io/v1",
    api_key="<your-api-key>",
)

resp = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V4.1-Flash-1017",
    messages=[{"role": "user", "content": "Explain tool calling in one paragraph."}],
)
print(resp.choices[0].message.content)
export ANTHROPIC_BASE_URL="https://api.mangoboost.io"
export ANTHROPIC_API_KEY="<your-api-key>"
export ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-ai/DeepSeek-V4.1-Flash-1017"
export ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-ai/DeepSeek-V4.1-Flash-1017"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-ai/DeepSeek-V4.1-Flash-1017"

See Claude Code for the full setup.

DeepSeek V4.1 Flash reads images and PDF documents as well as text: send them inline, base64-encoded. See Images and PDFs.

DeepSeek V4.1 Flash is a reasoning model: responses can carry the model's reasoning alongside the answer. See Reasoning for how to read it and what it costs.

Supported request parameters

Parameter Supported
temperature Yes
max_tokens Yes
stop Yes
logprobs, top_logprobs Yes
response_format Yes
tools, tool_choice Yes

For every parameter and its values, see Chat Completions.