跳到主要内容

用例

Qwen3.8 Flash Next 用于长上下文

Qwen3.8 Flash Next 是检索和长文档工作流的快速、低成本选择。1M 上下文窗口可在单次 prompt 中包含检索材料,每百万 token 输入 $0.12、输出 $0.376。

$0.12 / $0.376 per 1M tokens

qwen3.8-flash-next目录

上下文
1M
最大输出
131,072
思考模式
否
API
Chat Completions · Responses

为什么适合 RAG

根据目录的 1M 上下文上限安排检索材料。每百万输入 token 价格为 $0.12。请使用自己的文档评估召回效果,尤其是在接近上限时。

RAG 流水线模式

检索最相关的段落,将它们放入 prompt,并要求模型根据段落回答。如果语料超过 1M,先按章节摘要再回答。

  1. 1 · 检索最相关的段落
  2. 2 · 放入prompt 中(≤ 1M tokens)
  3. 3 · 提问要求根据这些段落作答

语料 > 1M → 先按章节摘要,再回答

快速上手代码

python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.quicksilverpro.io/v1",
    api_key="sk-qsp-...",
)

document = open("annual-report.txt").read()

resp = client.chat.completions.create(
    model="qwen3.8-flash-next",
    messages=[
        {"role": "system", "content": "Answer using only the provided document."},
        {"role": "user", "content": f"Document:\n{document}\n\nQuestion: What was free cash flow in Q3?"},
    ],
    max_tokens=500,
)
print(resp.choices[0].message.content)

常见问题

用你自己的 key 开始