DeepSeek/DeepSeek V4.1 Flash

-30%vs official

DeepSeek V4.1 Flash is the smallest, open-weight model of DeepSeek's new architecture family. The 1017 checkpoint scores higher, finishes faster and answers shorter than the first release, and builds games and 3D models better. Image input, 1M-token context, 384K output, thinking mode, JSON output, tool calls.

24-hour availability —CodeInput $0.105/1MOutput $0.42/1MData privacy
View docs

Input

Output

Send a message on the left. The reply appears here.

Availability 24 hours

Hourly success rate of all completed requests to this site.

Loading…

Pricing

This model is priced by the usage dimensions listed here. Compare all pricing.

Prices are shown in USD. Charges depend on the model and your actual usage.

Billing itemOur priceCurrent priceOfficial priceSavings
Input$0.105/1M tokens$0.15/1M tokens30% cheaper than official
Cache read$0.0021/1M tokens$0.003/1M tokens30% cheaper than official
Output$0.42/1M tokens$0.6/1M tokens30% cheaper than official

Reference prices checked on 2026-12-02: Official pricing

README

DeepSeek V4.1 Flash

deepseek-v4.1-flash-1017 is the 1017 checkpoint of V4.1 Flash, with open weights; it scores higher, finishes faster and answers shorter than the first release. Image input, 1M-token context, 384K output, switchable thinking, JSON output and tool choice.

Why Choose This?

From a goal to a runnable prototype
The 1017 revision focuses on implementing an end-to-end project. Provide the user journey, sample data, and expected output, then request a minimal runnable scope. Use the observed result to decide what the next revision should address.
Cross-check visual and written material
The V4.1 Flash family provides native image understanding. Pair a screenshot with written expectations and identify the region to inspect. Ask for a list of visible differences and a way to verify each one.
Keep each iteration bounded
Split a larger goal into reviewable passes for data, state, and presentation. Supply the material relevant to the current pass and ask for a passing example and a few likely edge cases before planning the next round.

Parameters

ParameterRequiredDescription
modelstringRequiredModel ID to call. Use deepseek-v4.1-flash-1017.
messagesarrayRequiredConversation history as a list of role and content messages.
system_instructionstringOptionalInstructions that set the assistant behavior.
temperaturenumberOptionalSampling temperature. Lower is more focused, higher is more varied. Default: 1.
top_pnumberOptionalNucleus sampling threshold. Default: 1.
max_tokensintegerOptionalMaximum number of tokens to generate.
stoparrayOptionalStop Words
streambooleanOptionalStream the reply as server-sent events. Default: false.
stream_optionsobjectOptionalStream Options
thinkingobjectOptionalThinking Mode
response_formatobjectOptionalFormat of the returned result, such as a URL or base64 data.
toolsarrayOptionalTools
tool_choiceenumOptionalTool Choice Options: none, auto, required.
logprobsbooleanOptionalReturn Logprobs Default: false.
top_logprobsintegerOptionalTop Logprobs
user_idstringOptionalUser Isolation ID

How to Use

  1. Try it here first — Sign in and run the model in the playground above to check the output before you write code.
  2. Create an API key — Open Console → API Keys and create a key. The same key works for every model.
  3. Write your messages — Put the task and its context in the messages array; add a system prompt to set the assistant behavior.
  4. Set optional parameters — Adjust the optional parameters listed above to control the output.
  5. Send the request — Call POST /v1/chat/completions with the model ID deepseek-v4.1-flash-1017.
  6. Read the reply — The reply and its token usage come back in the response and are logged in the console.

Writing Effective Prompts

Clear instructions get better answers. Tell the model who it is, what you need and how the answer should look.

1. Set the role and goal

Open with who the model should act as and what the task is. Put rules that never change in the system prompt.

You are a senior Python reviewer. Review the function below for bugs and readability.

2. Give the context

Paste what the answer depends on: documents, code, data or earlier decisions. Separate each part with a heading or tag.

3. Specify the output

Name the format, length and tone: a table, JSON with given keys, five bullet points, a 200-word summary.

4. Show an example

One or two input and output examples fix the style faster than a long description.

5. Iterate

When an answer misses, add the missing constraint to the prompt instead of starting over.

Prompt
WeakWrite about our product.
StrongYou are a B2B copywriter. Write three 40-word LinkedIn posts announcing our invoicing API for small accounting firms. Tone: confident, plain English, no emojis. End each post with a question.

Pricing

Billing itemPriceOfficial price
Input$0.105 per 1M tokens$0.15 / 1M tokens
Cache read$0.0021 per 1M tokens$0.003 / 1M tokens
Output$0.42 per 1M tokens$0.60 / 1M tokens

That is 30% below the official list price.

Example: a request with 10,000 input tokens and 1,000 output tokens costs about $0.0015.

Prices are shown in USD. Charges depend on the model and your actual usage. Compare all pricing

Best Use Cases

  • Turn a goal description into a small interactive projectGive the 1017 revision an interaction objective, asset list, and completion criteria. Request a narrowly scoped prototype that can be started locally, then test feedback, navigation, and exit behavior with the actual controls.
  • Prototype an internal formProvide role rules, required fields, and two sample workflows. Ask for a minimal state structure and a runnable page, then verify error messages and saved records with both valid and deliberately incomplete inputs.
  • Review interaction in a 3D sceneSpecify the camera range, object list, and intended actions. Build a small interactive scene first, then use screenshots from the actual render to review visibility, labels, and the clarity of the controls.
  • Turn requirements into a testable scriptGive input and output examples, environment constraints, and unusual values. Ask the model to map each rule to a test first, then implement the script and review how it fails on boundary inputs.

Pro Tips

  • Define the smallest deliverable first — Describe who will use the result, what normal behavior means, and what can wait. Add alternate paths or visual polish after that scope passes so each change can be reviewed against a clear goal.
  • Bring real execution results to each pass — Include a reproducible command, test result, or numbered screenshot. Tie the next change to one checkable issue and rerun the previous success case to catch behavior that should have remained stable.
  • Set boundaries for screenshot analysis — Identify the version and the part of the image that matters. Ask the model to record visible evidence and details it could not verify so a reviewer can separate what the screen shows from a proposed explanation.

FAQ

What is DeepSeek V4.1 Flash?

deepseek-v4.1-flash-1017 is the 1017 checkpoint of V4.1 Flash, with open weights; it scores higher, finishes faster and answers shorter than the first release. Image input, 1M-token context, 384K output, switchable thinking, JSON output and tool choice.

How do I call the DeepSeek V4.1 Flash API?

Send POST /v1/chat/completions with the model ID deepseek-v4.1-flash-1017 and your API key. Ready-to-run samples are in the API section above.

How is billing calculated?

Charges are based on the selected model, its billing method, and your actual usage.

Where do I get an API key?

Create one in Console → API Keys. The same key works for every model on the gateway.

Can I use the output commercially?

Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.

About DeepSeek V4.1 Flash on DreamTo

deepseek-v4.1-flash-1017 is the 1017 checkpoint of V4.1 Flash, with open weights; it scores higher, finishes faster and answers shorter than the first release. Image input, 1M-token context, 384K output, switchable thinking, JSON output and tool choice.