Qwen3.8-Maxをコーディングで使う:料金・benchmark・設定
Qwen3.8-MaxのAPI料金、benchmarkの読み方、Qwen CodeとClaude Codeの設定、公開weightsとhosted APIの違いを実務向けに整理します。
目次
Hosted APIのModel IDはqwen3.8-maxです。8月13日にはQwen3.8-2.4T-A95Bのweightsも公開されました。前者はAPI providerのmodel欄、後者はself-hosted inference用repositoryの名前であり、置き換えて使うものではありません。
GPU基盤を運用せずに試したい場合、8月13日時点のBetterTokenカタログでは、qwen3.8-maxが入力100万tokensあたり$1.84、出力100万tokensあたり$5.52でした。自分のAPI Keyで固定タスクを1件実行し、WorkspaceでModel IDとusageを確認してください。本番投入前には価格と提供状況を再確認します。
Hosted APIと公開weightsの違い
Qwen公式repositoryには、post-trained MoEモデルのweightsと設定があります。総parameter数は2.4T、activeは95B、native contextは262,144 tokensで、1,010,000まで拡張可能とされています。
| 選択肢 | 使用する名前 | 設定場所 |
|---|---|---|
| Hosted API | qwen3.8-max | API providerのmodel欄 |
| 自前inference | Qwen3.8-2.4T-A95B | Repositoryとinference engine |
| 旧preview | qwen3.8-max-preview | 新しいstable設定では使わない |
Hosted版にはvision input、non-thinking、built-in tools、標準1M contextなどの追加機能があります。Local inferenceが同じfeature contractになるとは限りません。
Hardwareとlicense
95B active parametersだけでは必要memoryを算出できません。保存するweights、sharding、KV cache、precision、quantization、engine overheadを含めて評価します。先にengine、context length、throughput、precisionを決め、そのengineの最新hardware guideで見積もってください。
WeightsはApache 2.0ではなく、独自のQwen3.8-Max Licenseです。大規模commercial product、Model as a Service、AI Work Assistantには追加条件があります。
料金とbenchmark
Beijing/Globalの入力CNY 12、出力CNY 36で、入力200,000 tokens、出力20,000 tokensなら:
0.2 × 12 + 0.02 × 36 = CNY 3.12。
Terminal-Bench 2.1の86.6、SWE-bench Proの67.7はvendor-reportedです。Harness、token budget、timeoutを確認し、同じcommit、tools、PASS条件で自分のrepositoryを評価します。
Qwen CodeとClaude Codeの設定
Model Studioでendpointと同じregionのpay-as-you-go keyを作成し、DASHSCOPE_API_KEYとしてexportします。Token Plan keyは別のsectionで作成し、endpointも異なります。Qwen CodeではOpenAI-compatibleなmodelProvidersを、全project向けなら~/.qwen/settings.json、単一repository向けなら.qwen/settings.jsonに保存します。Claude Code向けのUS region例:
export ANTHROPIC_BASE_URL="https://dashscope-us.aliyuncs.com/apps/anthropic"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export ANTHROPIC_MODEL="qwen3.8-max"
Keyとendpointは同じregionに揃えます。再起動後、read-only taskでModel ID、tool call、usageを確認してから書き込みを許可してください。