Risky change review
CodingList every risky change in this diff with file and line, and explain what could break. <paste diff here>
DeepSeek V4.1 Flash: very low-cost fast model with a 1M-token context.
低至$0.018/ 百万输入 tokens
模型 IDdeepseek-v4.1-flash
输入
文本
输出
对话
供应商
8 家供应商
近 7 天表现 · 近期请求较少,暂无统计数据。
价格按单位计费;未指定供应商时,会路由到支持该参数组合且价格最低的供应商。
| 规格 | 价格(美元) |
|---|---|
| 全部规格 | $0.9 / 百万输出 tokens 90 积分 |
写代码之前,先测试生成效果、对比各供应商价格并预估费用。
先按 max_tokens 预扣积分,完成后按实际用量结算。
开始对话。回复以流式返回,按实际 token 用量计费。
可直接使用的提示词,一键载入 Playground 再调整。
共 19 条提示词
List every risky change in this diff with file and line, and explain what could break. <paste diff here>
Read this scanned invoice and return vendor, date, line items and total as JSON.
Tag each of these support tickets with a product area and an urgency from 1 to 3. Return CSV. <paste tickets here>
Summarize the content without using lists, Markdown, or exceeding 80 words.
Fix the invalid JSON structure without changing the original meaning.
Generate a response that is exactly 3 sentences, no more and no less, while fully answering the question.
该模型的接口、请求字段与可直接运行的调用示例。
Base URL
https://01router.com/api/v1将 API_KEY 设为项目密钥,在服务端运行示例。示例中的媒体地址需替换为您自己的公开地址。
自动路由会选择支持当前请求的供应商。选择指定供应商,可查看它的参数约束和调用示例。
curl https://01router.com/api/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [{ "role": "user", "content": "Hello!" }],
"stream": false
}'这里只列出当前模型相关的接口,路径已包含 /api/v1。点击接口可跳转到使用说明。
以 Bearer Token 方式发送 API Key,费用从 Key 所属账户的积分中扣除。
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonmessages 直接放在请求体最外层,对话接口不使用 input 包装。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| model | string | 是 | "deepseek-v4.1-flash" |
| provider | string | 否 | 指定供应商;不传则自动路由到最便宜的。可选: 01router | wavespeed | kie | apimart | evolink | atlascloud | vercel | openrouter |
| messages | object[] | 是 | OpenAI 格式的消息数组,每项含 role 与 content。 |
| stream | boolean | 否 | 为 true 时以 SSE 流式返回。 |
| max_tokens | integer | 否 | 最大输出 token,按此预扣积分(默认 4096)。 |
示例使用 stream: false,从 choices[0].message.content 读取回复。stream: true 时接收 SSE 事件,读取 choices[].delta,直到 [DONE]。
{
"id": "chatcmpl-example",
"object": "chat.completion",
"model": "deepseek-v4.1-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 8,
"total_tokens": 17
}
}| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | Chat completion ID |
| object | string | 是 | chat.completion |
| model | string | 是 | deepseek-v4.1-flash |
| choices | object[] | 是 | 回复列表;非流式回复文本位于 message.content。 |
| usage | object | 否 | Token 用量:prompt_tokens、completion_tokens、total_tokens;是否返回取决于供应商。 |
此公开接口返回模型参数,以及各供应商支持的参数约束和价格。
curl "https://01router.com/api/v1/models/deepseek-v4.1-flash"结合 HTTP 状态码和 error.message 排查。参数或认证错误需修正后再重试;生成任务失败则通过任务本身的 status 和 error 返回。
{
"error": {
"message": "Invalid or missing API key",
"code": "unauthorized"
}
}400请求体或参数取值不合法
401缺少或无效的 API Key
402积分不足
404模型或任务不存在
429请求过于频繁,请稍后重试
502所有供应商都拒绝了任务(积分已退回)
将本模型文档交给编程助手:纯文本包含接口、输入约束、输出字段和请求示例。
并排对比规格与起步价,选择前建议用同一提示词实测。
| DeepSeek V4.1 Flash | GPT-6 Astra | GPT-6 Sol | GPT-6 Luna | |
|---|---|---|---|---|
| 厂商 | DeepSeek | OpenAI | OpenAI | OpenAI |
| 起步价 | $0.018 / 百万输入 tokens | $2.52 / 百万输入 tokens | $0.54 / 百万输入 tokens | $0.027 / 百万输入 tokens |
| 输入 | 文本 | 文本 | 文本 | 文本 |
| 供应商 | 8 家供应商 | 7 家供应商 | 7 家供应商 | 8 家供应商 |
V4.1 Flash 新增原生图片理解(V4 Flash 只支持文本),并采用更高效的 MoE 架构,显存占用大幅降低。
上下文约 100 万 token,最多输出约 38.4 万 token,支持文本和图片(PNG、JPEG、WebP、GIF)输入。
在 DeepSeek 官方接口上默认开启思考,也有更快的非思考模式。具体可用的控制项因供应商而异。
编程助手、终端智能体、OCR 和截图识别、图表数据提取,以及对成本敏感的大批量分类和抽取任务。
按每百万输入/输出 token 计费。各供应商价格差异较大,可在价格表中对比;不指定供应商时会自动选最便宜的。
同一个 API Key 即可调用的其他模型。
OpenAI GPT-6 Astra: the most capable GPT-6 tier for hard reasoning, coding and agents. 1.05M context.
OpenAI GPT-6 Sol: balanced GPT-6 tier for everyday reasoning, coding and tool use. 1.05M context.
OpenAI GPT-6 Luna: the fastest, lowest-cost GPT-6 tier for high-volume tasks. 1.05M context.
OpenAI GPT-5.6 Sol: flagship GPT-5.6 tier for complex reasoning and coding.
OpenAI GPT-5.6 Terra: mid GPT-5.6 tier balancing quality and cost.
OpenAI GPT-5.6 Luna: small, fast GPT-5.6 tier.