Qwentext1つのルート

Qwen4-Max API

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

qwen4-maxAPIキーを取得

料金 100万トークンあたりのUSD

トークン100万トークンあたり
入力$2.5715
キャッシュされた入力$0.1286
キャッシュの書き込み(5分)$3.2143
キャッシュの書き込み(1時間)$5.1429
出力$7.7143

推論トークンは出力として課金されます。各回答の usage には、残高から引かれた金額である cost_usd が含まれ、回答のないリクエストは$0.00です。

リクエスト

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)

どのOpenAI SDKでも動作します。ベースURLを https://api.revana.si/v1 に設定してください。ストリーミング、ツールなどの詳細は、Chat Completionsのドキュメントをご覧ください。

詳細

モデルID
qwen4-max
開発元
Qwen
エンドポイント
POST /v1/chat/completions
コンテキストウィンドウ
992K tokens
最大出力
13.1万トークン
ストリーミング
対応(サーバー送信イベント)
ルート
1

1つのルート

現在、ルートは1つです。回答が得られなかったリクエストは課金されません。

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

エージェント向けのMarkdown版もあります。すべての言語モデルと料金はllms.jsonにあります。