DeepSeek-V4.1-Flash (1017)

起始价格
输入
$0.30/ 1M
输出
$1.20/ 1M
进入控制台

渠道

每个渠道均使用输入价格最低的档位参与比较,输入同价时比较输出价格。短横线表示 /api/pricing 未提供该费率。选择渠道会更新下方端点与调用示例。

deepseek/deepseek-v4.1-flash-1017
输入
$0.30 USD / 1M tokens
输出
$1.20 USD / 1M tokens
缓存读取
$0.006 USD / 1M tokens
缓存写入
- USD / 1M tokens

端点

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 模型