qwen-vl-ocr 参数
每项参数后的角标指向出处,未公布的项目不做推测。
qwen-vl-ocr 支持哪些能力
实心圆表示支持,半圆表示有限制,叉号表示不支持,问号表示官方未说明。
qwen-vl-ocr 价格
单位:人民币 / 百万 Token。
| 计费项 | 官方价 | DMXAPI 价 | 节省 |
|---|---|---|---|
| 输入 | ¥0.3[1] | ¥0.237 | 21% |
| 输出 | ¥0.5[1] | ¥0.4029 | 19% |
| 输入(Batch File) | ¥0.15[1] | — | — |
| 输出(Batch File) | ¥0.25[1] | — | — |
DMXAPI 7.9 折,以 DMXAPI 实际价格为准。 华北2(北京)地域原价,不含限时优惠;不支持上下文缓存,无分段计价;Batch File 为实时价格的 50%。 查看 DMXAPI 完整价格表
用量换算
按上表单价估算,不含缓存折扣。
| 场景 | 输入 / 输出 | 官方价 | DMXAPI 价 |
|---|---|---|---|
| 一轮普通问答 | 1K / 500 | ¥0.0006 | ¥0.0004 |
| 读一份长文档 | 100K / 2K | ¥0.0310 | ¥0.0245 |
| 一次编程智能体任务(多次请求合计) | 400K / 30K | ¥0.135 | ¥0.107 |
如何调用 qwen-vl-ocr
DMXAPI 提供 OpenAI 兼容接口,现有代码只需改地址、令牌和模型名。
- 接口地址
https://www.dmxapi.cn/v1- 模型名
qwen-vl-ocr
cURL
curl https://www.dmxapi.cn/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DMXAPI_KEY" \
-d '{
"model": "qwen-vl-ocr",
"messages": [
{"role": "user", "content": "用三句话介绍你自己"}
]
}'
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://www.dmxapi.cn/v1",
api_key=os.environ["DMXAPI_KEY"],
)
resp = client.chat.completions.create(
model="qwen-vl-ocr",
messages=[{"role": "user", "content": "用三句话介绍你自己"}],
)
print(resp.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://www.dmxapi.cn/v1",
apiKey: process.env.DMXAPI_KEY,
});
const resp = await client.chat.completions.create({
model: "qwen-vl-ocr",
messages: [{ role: "user", content: "用三句话介绍你自己" }],
});
console.log(resp.choices[0].message.content);
DMXAPI 可用版本
| 模型名 | 说明 |
|---|---|
qwen-vl-ocr-2025-11-20 | 2025年11月20日快照,稳定版能力等同于它 |
qwen-vl-ocr-2024-10-28 | 早期版本,不推荐 |
qwen-vl-ocr 相关新闻与资料
按时间倒序,最后核对于 2026-11-19。
资料来源
前 2 条是正文角标引用的出处,其余为延伸阅读。
- [1]
- [2]
- [3]
- [4]
- [5]
- [6]
- [7]
- [8]
- [9]
- [10]
qwen-vl-ocr 常见问题
qwen-vl-ocr 的上下文窗口有多大?
官方规格为 38,192 Token(约 38,192),单次最大输出 8,192 Token。
qwen-vl-ocr 的价格是多少?
官方价为输入 ¥0.3、输出 ¥0.5,单位为每百万 Token。通过 DMXAPI 调用的实际价格以官网为准。
qwen-vl-ocr 支持哪些输入?
支持文本、图像输入,输出为文本。
国内如何调用 qwen-vl-ocr?
在 DMXAPI 创建令牌后,把 base_url 设为 https://www.dmxapi.cn/v1,模型名填 qwen-vl-ocr,即可用 OpenAI 兼容格式调用,无需改动其他代码。
适合什么场景?
适合票据、表格、证件、扫描文档的文字提取、信息抽取、表格解析和公式识别,也支持多语言和倾斜图像。