deepseek-v4.1-flash

文本

DeepSeek-V4.1-Flash 是 DeepSeek 当前主力模型,官方 API 模型名为 deepseek-flash。支持 1M 上下文与最大 384K 输出,默认可切换思考/非思考模式,具备图像理解、工具调用、JSON Output,并兼容 OpenAI 与 Anthropic API。

Input price

¥0.409459% off

Market: ¥0.9985

/ M

Output price

¥1.637659% off

Market: ¥3.9941

/ M

Cache read

¥0.008259% off

Market: ¥0.02

/ M

Input

Text

Output

Text

Peak / off-peak billing

Prices vary by time of day (UTC+8)

Currently peak

Time-of-day price table

  • Input
    Off-peak¥0.4094
    Peak hours¥0.8188
  • Output
    Off-peak¥1.6376
    Peak hours¥3.2751
  • Cache read
    Off-peak¥0.0082
    Peak hours¥0.0164
FieldOff-peakPeak hours
Input¥0.4094¥0.8188
Output¥1.6376¥3.2751
Cache read¥0.0082¥0.0164

Peak hours (UTC+8), daily: 09:00 - 12:00、14:00 - 18:00

API

Quick Start

Drop-in code to call this model with EasyAPI's OpenAI-compatible API.

1

Get your API key

Create an API key from your dashboard and set it as an environment variable:

Replace sk-xxxxxxxx with your API token from the console (Bearer token).

Create API token
shell
export EASYAPI_API_KEY=sk-xxxxxxxx
2

Make your first request

Use deepseek/deepseek-v4.1-flash with the EasyAPI API:

cURL
curl https://token.easyapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{
  "model": "deepseek/deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'
3

Enable streaming

Add "stream": true to your request body to receive responses as server-sent events:

curl
curl -N https://token.easyapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{"model":"deepseek/deepseek-v4.1-flash","messages":[{"role":"user","content":"Hello!"}],"stream":true}'

Endpoint

Sends a chat completion request. Supports streaming and non-streaming modes.

POSThttps://token.easyapi.com/v1/chat/completions
Authorization
Bearer $EASYAPI_API_KEY
Content-Type
application/json
Model
deepseek/deepseek-v4.1-flash

Send a chat completion request, with streaming or non-streaming responses. Docs

GEThttps://token.easyapi.com/v1/models
Authorization
Bearer $EASYAPI_API_KEY

List the models available to the current account. Docs

Parameters

NameTypeDefaultDescription
modelstring—Model ID, e.g. openai/gpt-4o or anthropic/claude-3-5-sonnet
messagesarray—List of conversation messages, each with role and content
streambooleanfalseWhen true, the response is streamed via SSE
temperaturefloat1Sampling temperature; higher values are more random
max_tokensinteger—Maximum number of tokens generated in a single reply
top_pfloat1Nucleus sampling; limits the cumulative probability of candidate tokens
frequency_penaltyfloat0Frequency penalty; reduces repeated wording
presence_penaltyfloat0Presence penalty; encourages new topics

Using third-party SDKs

Official OpenAI and other SDKs work by swapping the base URL. See integration guide