Qwenqwen4-max
Alibaba's new-generation flagship Qwen model: multimodal, mixture-of-experts, with a 1M-token context
$0.9/ 100万入力トークン-40%$1.5公式価格
- 1M コンテキスト
- 出力は最大 128K
- 画像を読み取り可能
- モダリティ
- テキスト
- エンドポイント
- /v1/chat/completions
- モデル ID
- qwen4-max
- プロバイダー
- Qwen
Qwen4-Max API の概要
ドキュメント化されたエンドポイント
リクエストは Qwen のネイティブ形式で /v1/chat/completions に送信します。/v1/responses と /v1/messages はこの形式に変換されます。
モデルプロバイダー
Qwen4-Max の提供元は Qwen で、API でのモデル ID は qwen4-max.
出力と制限
コンテキストは 1,000,000 トークン(うちプロンプトは最大 983,616 トークン)、出力は最大 131,072 トークンです。テキストと画像を入力でき、出力はテキストです。
Qwen4-Max API の料金
以下のすべての課金項目で、Qwen4-Max は公式価格より 40% 安く課金されます。
| 項目 | ArgoLink 価格 | 公式価格 | 割引 |
|---|---|---|---|
| 入力トークン | $0.9 / 100万トークン | -40% | |
| キャッシュ入力トークン | $0.045 / 100万トークン | -40% | |
| キャッシュ書き込みトークン | $1.125 / 100万トークン | -40% | |
| 出力トークン | $2.7 / 100万トークン | -40% |
推論トークンは出力トークンとして課金されます。
Qwen4-Max API リファレンス
クイックスタート
コンソールで API キーを作成し、このページに示すベース URL、エンドポイント、リクエストボディでリクエストを送信してください。
curl -sS https://argolink.io/v1/chat/completions \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{"role": "user", "content": "Explain what this model is good at in one sentence."}],
"stream": false
}'
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ARGOLINK_API_KEY"],
base_url="https://argolink.io/v1",
)
response = client.chat.completions.create(
model="qwen4-max",
messages=[{"role": "user", "content": "Explain what this model is good at in one sentence."}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.ARGOLINK_API_KEY,
baseURL: "https://argolink.io/v1",
});
const response = await client.chat.completions.create({
model: "qwen4-max",
messages: [{ role: "user", content: "Explain what this model is good at in one sentence." }],
});
console.log(response.choices[0].message.content);
プロトコル
Chat Completions
推奨: モデルのネイティブ形式
Qwen のネイティブ形式です。すべてのフィールドが送信したとおりにモデルへ届きます。
curl https://argolink.io/v1/chat/completions \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{"role": "user", "content": "楽観的ロックと悲観的ロックを 3 つの箇条書きで比較してください。"}]
}'
curl https://argolink.io/v1/chat/completions \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "このグラフは何を示していますか?"},
{"type": "image_url", "image_url": {"url": "https://example.com/chart.png"}}
]
}]
}'
| フィールド | 値 |
|---|---|
messages | system・user・assistant・tool のメッセージ。user メッセージには次を含められます: image_url パーツ(それぞれ公開 HTTPS URL または data URL) |
reasoning_effort | 非対応。省略してください |
max_completion_tokens | 最大 131,072 |
stream | true にするとサーバー送信イベントでストリーミング |
service_tier | 非対応。省略してください |
Thinking is on by default. Send enable_thinking: false to turn it off. max_tokens には余裕を持たせてください。思考もこの上限に含まれるため、上限が小さいと回答が出る前に出力が終わることがあります。
Responses と Anthropic Messages
Chat Completions に変換
Codex や Claude Code など、これらの形式で送信するクライアントも、ゲートウェイによる Chat Completions への変換を経てモデルを利用できます。
curl https://argolink.io/v1/responses \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"input": "楽観的ロックと悲観的ロックを 3 つの箇条書きで比較してください。"
}'
curl https://argolink.io/v1/messages \
-H "x-api-key: $ARGOLINK_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen4-max",
"max_tokens": 4000,
"messages": [{"role": "user", "content": "楽観的ロックと悲観的ロックを 3 つの箇条書きで比較してください。"}]
}'
| フィールド | 値 |
|---|---|
input | テキストと input_image パーツ。input_file パーツは破棄される |
messages | テキスト、ツール、base64 画像のブロック。画像リンクは破棄される |
Web 検索などのサーバー側ツールは、どちらの変換でも破棄されます。
Qwen4-Max リクエストパラメータ一覧
| パラメータ | 型 | 要件 | 説明 |
|---|---|---|---|
model | string | 必須 | The catalog identifier for this page: qwen4-max. |
messages | array | 必須 | system・user・assistant・tool のメッセージです。user のコンテンツには image_url パーツ(それぞれ公開 HTTPS URL または data URL)を含められます。 |
reasoning_effort | string | 非対応 | このモデルは推論レベルを受け付けません。省略してください。 |
max_completion_tokens | integer | 任意 | 回答のトークン数の上限: 最大 131,072。max_tokens も使えます。 |
tools · tool_choice | array · string or object | 任意 | 関数ツールと、モデルがツールを選ぶ方法の指定。 |
stream | boolean | 任意 | true にすると、choices[].delta にテキストを含むチャンクをストリーミングします。 |
service_tier | string | 非対応 | このモデルには高速なティアはありません。省略してください。 |
Qwen4-Max API と類似モデルの比較
| モデル | モデル ID | プロバイダー | 料金 | 適した用途 |
|---|---|---|---|---|
| Qwen4-Max | qwen4-max | Qwen | $0.9 / 100万入力トークン | Alibaba's new-generation flagship Qwen model: multimodal, mixture-of-experts, with a 1M-token context |
| GPT-6 Astra | gpt-6-astra | OpenAI | $2.3 / 100万入力トークン | 最も難しいエンドツーエンドの作業向けに作られた、OpenAI で最も高性能なモデル |
| Claude Opus 5 | claude-opus-5 | Anthropic | $1.75 / 100万入力トークン | 複雑なエージェント型コーディングとエンタープライズ業務向け |
| Claude Fable 5.1 | claude-fable-5-1 | Anthropic | $3.5 / 100万入力トークン | 高度な推論と長期にわたるエージェント型タスク向けの Anthropic のモデル |
同じプロバイダーの他のモデル
同じモダリティの他のモデル
Qwen4-Max API のよくある質問
Qwen4-Max の呼び出し方法は?
Create an API key in the console and POST https://argolink.io/v1/chat/completions 、model には次を指定: qwen4-max and your key in the Authorization header as a Bearer token. /v1/responses と /v1/messages も使えます。ゲートウェイがこれらを Chat Completions に変換します。
Qwen4-Max の料金はいくらですか?
$0.9 per million input tokens and $2.7 per million output tokens, 40% below the official rates. Cached input costs $0.045 per million. 推論トークンは出力トークンとして課金されます。
Qwen4-Max のコンテキストと出力の上限は?
コンテキストは 1,000,000 トークン(うちプロンプトは最大 983,616 トークン)、出力は最大 131,072 トークンです。テキストと画像を入力でき、出力はテキストです。
Qwen4-Max の推論を制御するには?
推論レベルは指定できません。Thinking is on by default. Send enable_thinking: false to turn it off.
Qwen4-Max は画像を読み取れますか?
はい。画像は image_url パーツ(それぞれ公開 HTTPS URL または data URL)として送信します。送信先: /v1/chat/completions. Anthropic Messages では base64 の画像だけが引き継がれます。