Qwen3-VL 8B Instruct — 開放權重的小型視覺語言模型,8B參數,128k上下文,無思考模式。
| 輸入 / 1M tokens | $0.180 |
|---|---|
| 輸出 / 1M tokens | $0.700 |
| 貨幣 | USD |
1.6M 輸入 × $0.18/M + 400K 輸出 × $0.7/M
基於標價的估算
| 情境 | 輸入 / 輸出 token | 每次請求 | 每 1,000 次請求 |
|---|---|---|---|
| 聊天回覆 | 200 / 300 | $0.0002 | $0.246 |
| 長文件摘要 | 30K / 1K | $0.0061 | $6.10 |
| 程式碼審查 | 8K / 2K | $0.0028 | $2.84 |
僅為估算——實際 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-vl-8b-instruct",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content){
"id": "chatcmpl-…",
"object": "chat.completion",
"created": 1763280000,
"model": "qwen/qwen3-vl-8b-instruct",
"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 | 控制模型必須、可以或不得呼叫工具。 |
parallel_tool_calls | 允許在一輪中並行呼叫多個工具。 |
seed | 對相同輸入盡量回傳可重現的結果。 |
presence_penalty | 對已出現過的 token 施加懲罰,鼓勵引入新話題。 |
repetition_penalty | 降低重複輸入或先前輸出中 token 的機率。 |
top_k | 每一步只從機率最高的 k 個 token 中選取。 |
logprobs | 回傳每個輸出 token 的對數機率。 |
top_logprobs | 每個 token 回傳多少個高機率候選(需開啟 logprobs)。 |
stream | 以 SSE 串流回傳,邊生成邊傳送。 |
enable_search | |
n | |
stream_options |
嵌入此徽章
@misc{orcarouter_qwen3_vl_8b_instruct,
title = {Qwen3 VL 8B Instruct API},
author = {Qwen},
year = {2025},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/qwen/qwen3-vl-8b-instruct}
}Qwen. (2025). Qwen3 VL 8B Instruct API. OrcaRouter. https://www.orcarouter.ai/models/qwen/qwen3-vl-8b-instruct