Qwentext1 route

Qwen4-Max API

Qwen4-Max by Qwen, through an OpenAI-compatible chat completions API.

qwen4-maxGet API key

Pricing USD per million tokens

TokensPer 1M tokens
Input$2.5715
Cached input$0.1286
Cache write (5 min)$3.2143
Cache write (1 hour)$5.1429
Output$7.7143

Reasoning tokens are billed as output. Each answer's usage carries cost_usd, the amount taken from your balance; a request with no answer costs $0.00.

Request

curl
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."}]}'
Python
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)

Any OpenAI SDK works: set the base URL to https://api.revana.si/v1. Streaming, tools and the rest are in the chat completions docs.

Details

Model id
qwen4-max
Maker
Qwen
Endpoint
POST /v1/chat/completions
Context window
992K tokens
Max output
131K tokens
Streaming
Yes (server-sent events)
Routes
1

1 route

One route today. A request that gets no answer is not charged.

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.

What happens if a request fails?

A request that gets no answer costs nothing.

Is Qwen4-Max on Revana the same model?

Yes. Revana passes your request to Qwen's model unchanged and returns its answer in the OpenAI format, with the usage it reported and what the request cost.

More from Qwen

Every Qwen model and its price

Also as markdown for agents. Every language model and price: llms.json.