Qwen4-Max API
Qwen4-Max by Qwen, through an OpenAI-compatible chat completions API.
qwen4-maxDapatkan kunci APIHarga USD per juta token
| Token | Per 1 juta token |
|---|---|
| Input | $2.5715 |
| Input cache | $0.1286 |
| Penulisan cache (5 menit) | $3.2143 |
| Penulisan cache (1 jam) | $5.1429 |
| Output | $7.7143 |
Token reasoning ditagih sebagai output. Usage pada setiap jawaban membawa cost_usd, jumlah yang diambil dari saldo Anda; request tanpa jawaban berharga $0.00.
Permintaan
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)SDK OpenAI mana pun bisa dipakai: setel base URL ke https://api.revana.si/v1. Streaming, tool, dan lainnya ada di dokumentasi chat completions.
Detail
qwen4-maxPOST /v1/chat/completions1 rute
Satu rute saat ini. Request yang tidak mendapat jawaban tidak ditagih.
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.
Apa yang terjadi jika request gagal?
Request yang tidak mendapat jawaban tidak dikenai biaya.
Is Qwen4-Max on Revana the same model?
Ya. Revana meneruskan request Anda ke model Qwen tanpa perubahan dan mengembalikan jawabannya dalam format OpenAI, dengan usage yang dilaporkannya dan biaya request.
Lainnya dari 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
Juga tersedia sebagai markdown untuk agen. Semua model bahasa dan harga: llms.json.