Qwen3.8 Flash 是阿里巴巴推出的多模態推理模型。它適用於程式碼輔助、智能體工作流程、視覺理解、文件和程式碼庫分析、桌面互動、圖表分析以及長影片分析。
| 輸入 / 1M tokens | $0.150 |
|---|---|
| 輸出 / 1M tokens | $0.470 |
| 快取讀取 / 1M | $0.018 |
| 快取寫入 / 1M | $0.230 |
| 貨幣 | USD |
1.6M 輸入 × $0.15/M + 400K 輸出 × $0.47/M
提示快取按一半輸入 token 命中快取估算,快取讀取價 $0.02/M。
基於標價的估算
| 情境 | 輸入 / 輸出 token | 每次請求 | 每 1,000 次請求 |
|---|---|---|---|
| 聊天回覆 | 200 / 300 | $0.0002 | $0.171 |
| 長文件摘要 | 30K / 1K | $0.0050 | $4.97 |
| 程式碼審查 | 8K / 2K | $0.0021 | $2.14 |
僅為估算——實際 Token 數取決於供應商的分詞器。
使用任何相容 OpenAI 的 SDK,或直接發送 HTTP 請求。 取得 API Key
export ORCAROUTER_API_KEY=…https://api.orcarouter.ai/v1import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.orcarouter.ai/v1",
api_key=os.environ["ORCAROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="qwen/qwen3.8-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content){
"id": "chatcmpl-…",
"object": "chat.completion",
"created": 1763280000,
"model": "qwen/qwen3.8-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 10,
"total_tokens": 19
}
}choices[0].message.content — 模型的回答。finish_reason — "stop" 表示回答已完整結束;"length" 表示達到 max_tokens 被截斷。usage — 本次呼叫計費的輸入和輸出 token 數。回傳 HTTP 200 且 finish_reason 為 "stop",表示呼叫成功。
| 參數 | 作用 |
|---|---|
max_tokens | 模型最多生成的 token 數。 |
temperature | 取樣隨機性:越低越穩定,越高越多樣。 |
tools | 模型可呼叫的函式,以 JSON Schema 描述。 |
response_format | 強制輸出 JSON,可指定 JSON Schema。 |
top_p | 核取樣:只從累計機率在此範圍內的 token 中選取。 |
stop | 遇到這些序列時模型停止生成。 |
tool_choice | 控制模型必須、可以或不得呼叫工具。 |
structured_outputs | 模型能嚴格遵循 response_format 中給定的 JSON Schema。 |
reasoning | 設定模型推理:推理強度、token 預算或關閉。 |
include_reasoning | 隨回答一併回傳模型的推理過程文字。 |
seed | 對相同輸入盡量回傳可重現的結果。 |
frequency_penalty | 依 token 已出現的次數施加懲罰,減少重複。 |
presence_penalty | 對已出現過的 token 施加懲罰,鼓勵引入新話題。 |
logprobs | 回傳每個輸出 token 的對數機率。 |
top_logprobs | 每個 token 回傳多少個高機率候選(需開啟 logprobs)。 |
enable_thinking |
嵌入此徽章
@misc{orcarouter_qwen3_8_flash,
title = {Qwen3.8 Flash API},
author = {Qwen},
year = {2026},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/qwen/qwen3.8-flash}
}Qwen. (2026). Qwen3.8 Flash API. OrcaRouter. https://www.orcarouter.ai/models/qwen/qwen3.8-flash