Qwen4-Max API
Qwen4-Max by Qwen, through an OpenAI-compatible chat completions API.
qwen4-max获取 API 密钥价格 美元 / 每百万 token
| Token | 每 100 万 token |
|---|---|
| 输入 | $2.5715 |
| 缓存输入 | $0.1286 |
| 缓存写入(5 分钟) | $3.2143 |
| 缓存写入(1 小时) | $5.1429 |
| 输出 | $7.7143 |
推理 token 按输出计费。每个回答的 usage 中都带有 cost_usd,即从你的余额中扣除的金额;没有得到回答的请求费用为 $0.00。
请求
curl https://api.revana.si/v1/chat/completions \
-H "Authorization: Bearer $REVANA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen4-max","messages":[{"role":"user","content":"Write a haiku about routing."}]}'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.revana.si/v1", api_key=os.environ["REVANA_API_KEY"])
reply = client.chat.completions.create(
model="qwen4-max",
messages=[{"role": "user", "content": "Write a haiku about routing."}],
)
print(reply.choices[0].message.content)任意 OpenAI SDK 都可使用:把 base URL 设为 https://api.revana.si/v1。流式输出、工具调用等内容见 chat completions 文档。
详情
qwen4-maxPOST /v1/chat/completions1 条线路
目前只有一条线路。没有得到回答的请求不会扣费。
About the Qwen4-Max API
How much does the Qwen4-Max API cost?
Qwen4-Max costs $2.5715 per million input tokens, $0.1286 per million cached input tokens and $7.7143 per million output tokens on Revana. You pay from prepaid credit for the tokens each request used, with no subscription or minimum.
How do I call Qwen4-Max from code?
Use any OpenAI SDK with base URL https://api.revana.si/v1 and your Revana API key, and set model to "qwen4-max". POST /v1/chat/completions takes the OpenAI request body, streamed or not.
请求失败了会怎样?
没有得到回答的请求不产生任何费用。
Is Qwen4-Max on Revana the same model?
是的。Revana 会把你的请求原样传给 Qwen 的模型,并以 OpenAI 格式返回它的回答,以及它报告的用量和该请求的费用。
Qwen 的更多模型
Every Qwen model and its price
- Qwen3.6-Flash $0.2469 in / $1.4809 out per 1M tokens
- Qwen3.6-Plus $0.4116 in / $2.4694 out per 1M tokens
- Qwen3.7-Flash $0.0412 in / $0.1646 out per 1M tokens
- Qwen3.7-Max $2.4685 in / $7.4054 out per 1M tokens
- Qwen3.7-Plus $0.4116 in / $1.6463 out per 1M tokens
- Qwen3.8 2.4T-A95B $2.4686 in / $7.4058 out per 1M tokens
- Qwen3.8 27B $0.6172 in / $2.4686 out per 1M tokens
- Qwen3.8-Flash $0.1646 in / $0.5555 out per 1M tokens