DeepSeek-V4.1-Flash (1017)

起始價
輸入
$0.30/100 萬
輸出
$1.20/100 萬
開啟控制台

通道

每個通道都以它輸入價最低的計費檔進行比較,輸入價相同時看輸出價。破折號表示 /api/pricing 未提供該費率。選擇通道後,下方的端點與呼叫範例會一併更新。

deepseek/deepseek-v4.1-flash-1017
輸入
$0.30 美元 / 每 100 萬 token
輸出
$1.20 美元 / 每 100 萬 token
快取讀取
$0.006 美元 / 每 100 萬 token
快取寫入
- 美元 / 每 100 萬 token

端點

POST/v1/chat/completionsChat Completions

API 呼叫規格

依據對此通道的真實測試呼叫觀察而得。名稱、路徑與取值皆與 API 實際使用的完全一致。 已於 2026年10月19日 透過測試呼叫驗證。

POST/v1/chat/completions

支援串流輸出在串流中回傳用量
串流選項include_usage
輸入系統訊息: 是以 data URL 傳入圖片: 是
請求參數 24 個支援的參數

核心

  • messagesarraybody必填支援已觀察到效果
  • messages[].role=systemarraybody支援已觀察到效果
  • modelstringbody必填支援已觀察到效果
  • nintegerbody不支援

輸出長度

  • max_tokensintegerbody支援已觀察到效果
    接受的取值384000384001
    被拒絕的取值1536000
    最大值
    384001
  • max_completion_tokensintegerbody不支援

取樣

  • frequency_penaltynumberbody支援已驗證
    接受的取值-202
    被拒絕的取值-33
    最小值
    -2
    最大值
    2
  • logprobsbooleanbody支援已觀察到效果
  • presence_penaltynumberbody支援已驗證
    接受的取值-202
    被拒絕的取值-33
    最小值
    -2
    最大值
    2
  • seedintegerbody支援已接受
    接受的取值1
  • temperaturenumberbody支援已驗證
    接受的取值00.712
    被拒絕的取值-13
    最小值
    0
    最大值
    2
  • top_kintegerbody支援已接受
    接受的取值120
  • top_logprobsintegerbody支援已觀察到效果
  • top_pnumberbody支援已驗證
    接受的取值0.10.51
    被拒絕的取值-0.52
    最小值
    0.1
    最大值
    1

停止序列

  • stoparraybody支援已觀察到效果

推理

  • reasoning_effortstringbody支援已驗證
    接受的取值highlowmedium
    被拒絕的取值bogus
  • thinking.typestringbody支援已觀察到效果
    接受的取值disabledenabled
    被拒絕的取值bogus
    • 開啟或關閉推理

結構化輸出

  • response_format.type=json_objectstringbody支援已觀察到效果
  • response_format.type=json_schemastringbody不支援

工具

  • parallel_tool_callsbooleanbody支援已接受
  • tool_choiceobjectbody支援已觀察到效果
    接受的取值autonone
    被拒絕的取值{"type":"function","function":{"name":"get_weather"}}required
  • toolsarraybody支援已觀察到效果
  • tools[].type=functionarraybody支援已觀察到效果

串流輸出

  • streambooleanbody支援已觀察到效果
  • stream_options.include_usagebooleanbody支援已觀察到效果

多模態輸入

  • messages[].content[].type=image_urlarraybody支援已觀察到效果

中繼資料

  • userstringbody支援已接受
    接受的取值ops-probe
回應欄位 49 個欄位
  • choices
    array一律回傳在每個資料區塊中串流回傳
  • choices[].delta.content
    string有條件回傳 · 串流輸出時在每個資料區塊中串流回傳
  • choices[].delta.reasoning_content
    string有條件回傳 · 串流輸出時在每個資料區塊中串流回傳
  • choices[].delta.role
    string有條件回傳 · 串流輸出時在每個資料區塊中串流回傳
  • choices[].finish_reason
    string一律回傳在每個資料區塊中串流回傳
  • choices[].index
    integer一律回傳在每個資料區塊中串流回傳
  • choices[].logprobs
    null一律回傳在每個資料區塊中串流回傳
  • choices[].logprobs.content
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].bytes
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].bytes[]
    integer有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].logprob
    number有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].token
    string有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].top_logprobs
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].top_logprobs[].bytes
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].top_logprobs[].bytes[]
    integer有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].top_logprobs[].logprob
    number有條件回傳 · 要求對數機率時
  • choices[].logprobs.content[].top_logprobs[].token
    string有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].bytes
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].bytes[]
    integer有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].logprob
    number有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].token
    string有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].top_logprobs
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].top_logprobs[].bytes
    array有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].top_logprobs[].bytes[]
    integer有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].top_logprobs[].logprob
    number有條件回傳 · 要求對數機率時
  • choices[].logprobs.reasoning_content[].top_logprobs[].token
    string有條件回傳 · 要求對數機率時
  • choices[].message.content
    string一律回傳
  • choices[].message.reasoning_content
    string一律回傳
  • choices[].message.role
    string一律回傳
  • choices[].message.tool_calls
    array有條件回傳 · 使用工具時
  • choices[].message.tool_calls[].function.arguments
    string有條件回傳 · 使用工具時
  • choices[].message.tool_calls[].function.name
    string有條件回傳 · 使用工具時
  • choices[].message.tool_calls[].id
    string有條件回傳 · 使用工具時
  • choices[].message.tool_calls[].index
    integer有條件回傳 · 使用工具時
  • choices[].message.tool_calls[].type
    string有條件回傳 · 使用工具時
  • created
    integer一律回傳在每個資料區塊中串流回傳
  • id
    string一律回傳在每個資料區塊中串流回傳
  • model
    string一律回傳在每個資料區塊中串流回傳
  • object
    string一律回傳在每個資料區塊中串流回傳
  • system_fingerprint
    string一律回傳在每個資料區塊中串流回傳
  • usage
    null有條件回傳 · 串流輸出時在最後一個資料區塊中回傳
  • usage.completion_tokens
    integer一律回傳在最後一個資料區塊中回傳
  • usage.completion_tokens_details.reasoning_tokens
    integer一律回傳在最後一個資料區塊中回傳
  • usage.prompt_cache_hit_tokens
    integer一律回傳在最後一個資料區塊中回傳
  • usage.prompt_cache_miss_tokens
    integer一律回傳在最後一個資料區塊中回傳
  • usage.prompt_tokens
    integer一律回傳在最後一個資料區塊中回傳
  • usage.prompt_tokens_details.cached_tokens
    integer一律回傳在最後一個資料區塊中回傳
  • usage.total_tokens
    integer一律回傳在最後一個資料區塊中回傳
結束原因lengthstoptool_calls

快取

自動提示詞快取

快取有效期5m

實測最小可快取提示詞:4877 個 token

用量欄位prompt_cache_hit_tokensprompt_cache_miss_tokensprompt_tokens_details.cached_tokens

呼叫看看

使用中 deepseek/deepseek-v4.1-flash-1017

1from openai import OpenAI23client = OpenAI(4    base_url="https://www.realrelay.ai/v1",5    api_key="sk-***",6)78response = client.chat.completions.create(9    model="deepseek/deepseek-v4.1-flash-1017",10    messages=[{"role": "user", "content": "Hello"}],11)1213print(response.choices[0].message.content)
1import OpenAI from "openai";23const client = new OpenAI({4  baseURL: "https://www.realrelay.ai/v1",5  apiKey: process.env.REALRELAY_API_KEY,6});78const response = await client.chat.completions.create({9  model: "deepseek/deepseek-v4.1-flash-1017",10  messages: [{ role: "user", content: "Hello" }],11});1213console.log(response.choices[0].message.content);
1curl https://www.realrelay.ai/v1/chat/completions \2  -H "Authorization: Bearer $REALRELAY_API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "model": "deepseek/deepseek-v4.1-flash-1017",6    "messages": [{ "role": "user", "content": "Hello" }]7  }'

價格與可用狀態以 2026年10月19日 發布的內容為準。

能力

推理工具使用影像理解
輸入
文字圖像
輸出
文字

常見問題

DeepSeek-V4.1-Flash (1017) 是什麼?
DeepSeek-V4.1-Flash (1017) 是 DeepSeek 的模型。RealRelay.ai 透過一個 OpenAI 相容 API 提供它。
DeepSeek-V4.1-Flash (1017) 的價格是多少?
DeepSeek-V4.1-Flash (1017) 輸入每 100 萬 token $0.30 起,輸出每 100 萬 token $1.20 起。價格分檔,這裡是起始檔。
DeepSeek-V4.1-Flash (1017) 支援哪些輸入和輸出?
輸入:文字和圖像。輸出:文字。
DeepSeek-V4.1-Flash (1017) 的上下文視窗有多大?
DeepSeek-V4.1-Flash (1017) 的上下文視窗為 1M token。單次最多輸出 384K token。
DeepSeek-V4.1-Flash (1017) 能做什麼?
列出的能力:推理、工具使用和影像理解。
如何透過 API 呼叫 DeepSeek-V4.1-Flash (1017)?
在 OpenAI 相容 API 中使用模型 ID deepseek/deepseek-v4.1-flash-1017 與 RealRelay.ai API 金鑰。

DeepSeek 的其他模型

查看全部 6 個 DeepSeek 模型