Claude Sonnet 5 vs Qwen3.7 Plus
いつ、どちらを使うべきか — ベンチマーク表ではなく、厳選された評価
どちらも 1000000 トークンのコンテキストウィンドウを共有し、テキストと画像を受け取りテキストを返すため、違いは主に価格と形です。claude-sonnet-5 は100万トークンあたり入力 $2、出力 $10 で、qwen3.7-plus の $0.4 と $1.6 に対して Anthropic 側は入力 5 倍、出力 6.25 倍の単価(キャッシュ読み取りは 2.5 倍、$0.2 対 $0.08)です。明示的な思考能力、あるいは 1 回の応答で最大 128000 出力トークンが必要なら claude-sonnet-5 を、大量の長コンテキスト処理、または入力に動画が含まれる場合(qwen3.7-plus は受け付け、claude-sonnet-5 は受け付けません)は qwen3.7-plus を選んでください。
料金
| Claude Sonnet 5 | Qwen3.7 Plus | Δ | |
|---|---|---|---|
| 入力 / 1Mトークン | $2 | $0.4 | 5× |
| 出力 / 1Mトークン | $10 | $1.6 | 6.3× |
| キャッシュ読み取り / 1Mトークン | $0.2 | $0.08 | 2.5× |
| キャッシュ書き込み | 1.25x (5m) / 2x (1h) | 1.25x | — |
ビルド時のライブカタログの料金です。各モデルのページには現在の料金カードが記載されています。
位置付け — この課金単位におけるすべての63個のチャットモデル全体の1Mトークンあたりの入力料金 (対数スケール)
機能
| Claude Sonnet 5 | Qwen3.7 Plus | |
|---|---|---|
| ツール使用 | あり | あり |
| 思考コントロール | 設定可能 | 設定可能 |
| 構造化出力 | あり | あり |
| プロンプトキャッシング | 明示的 (プレフィックスを自分で指定) | 暗黙的 + 明示的 |
| キャッシュ有効期間 | 5m default, 1h option | explicit: 5m, reset on hit |
| 最小キャッシュプレフィックス | 1024 トークン | 1024 トークン |
仕様
| Claude Sonnet 5 | Qwen3.7 Plus | |
|---|---|---|
| 入力モダリティ | テキスト 画像 | テキスト 画像 動画 |
| 出力モダリティ | テキスト | テキスト |
| リリース | 2026-06-30 | 2026-06-01 |
| 知識のカットオフ | 2026-01 | — |
| コンテキストウィンドウ | 1M | 1M |
| 最大出力 | 128K | 66K |
| 思考パラメータ |
|
|
| 指定可能な値 | thinking.type
effort
"enabled" returns 400 | enable_thinking
thinking_budget
preserve_thinking
|
| デフォルト | thinking on (adaptive) effort
| on the Qwen3.7 Plus series is hybrid thinking with thinking enabled by default, and preserve_thinking is off |
仕様は各ベンダーのドキュメントから転記されています。ベンダーが公開していない行は推測せず、省略しています。 すべての出典: Claude Sonnet 5 · Qwen3.7 Plus
1つのプロンプト、両方のモデル — ゲートウェイ経由で測定
Claude Sonnet 5 パス · 3 sentences
Reasoning mode works by having the model generate extended internal "thinking" steps before producing its final answer, and since we're billed on total tokens, that hidden reasoning text adds significantly to what we pay for—even though you never see it in the output. This is different from simply getting longer visible responses; the model is essentially "showing its work" behind the scenes, and complex prompts can trigger thousands of extra reasoning tokens per request. The upside is improved accuracy on complex tasks, but if we want to control costs, we should selectively enable reasoning only for queries that truly need it, rather than applying it universally.
出力 194 tok レイテンシ 4.3 s
Qwen3.7 Plus パス · 3 sentences
Enabling reasoning requires the model to generate extensive internal "thinking" tokens to process complex logic before delivering a final answer. Because our vendor charges us per token consumed, this hidden computational overhead effectively doubles our output volume for the exact same number of user requests. Consequently, our costs have doubled because we are now paying for the model's increased processing time to achieve higher-quality, more accurate results.
出力 1428 tok (+1345 思考) レイテンシ 25.2 s
指示追従(ちょうど三文 — 数えられる)、読み手に合わせた調整(CFO 向けの語り口)、そして下のトークン計から見える隠れた思考の課金ギャップ。
Claude Sonnet 5 パス · 8/8 cases
## The Bug The function has two related off-by-one issues rooted in the same cause: `cur` and `best` are initialized to `0` instead of `1`, treating run lengths as the number of *matches* between adjacent elements rather than the number of *elements* in the run. This means a single-element input never enters the loop (since `range(1, 1)` is empty) and returns `0` instead of the correct answer of `1`. It also means that for any input, the run length is undercounted by exactly one — a run of 3 equal elements only produces 2 "match" increments, so `best` ends up as 2 instead of 3. The claim that it "misses runs that end at the last index" is actually a symptom of this same undercount: the logic does update `best` correctly on every iteration (including the last), but because it's counting matches instead of elements, the final reported value is always one less than the true longest run. […]
出力 536 tok レイテンシ 7.1 s
Qwen3.7 Plus パス · 8/8 cases
## Fixed Code ```python def longest_run(xs): if not xs: return 0 best = 1 cur = 1 for i in range(1, len(xs)): if xs[i] == xs[i - 1]: cur += 1 else: cur = 1 best = max(best, cur) return best ``` ## Bug Explanation The function has two related bugs rooted in how it counts run lengths. First, `cur` is initialized to `0` and only incremented on matches, so it counts the number of *transitions* between equal elements rather than the total elements in the run—a run of N identical items only reaches `cur = N − 1`, undercounting by one. This also causes the single-element case to return `0`, since the loop never executes and `cur` never increments. […]
出力 2317 tok (+2005 思考) レイテンシ 40.5 s
修正が実際に正しいか(実行可能か)、説明の密度、そして範囲の限られたタスクでのトークン効率。
Claude Sonnet 5 パス · 5/5 fields, guidance null
```json { "company": "Meridian Robotics", "quarter": "Q3", "revenue_usd_m": 412, "growth_pct": 11.5, "guidance": null } ```
出力 348 tok レイテンシ 5.3 s
Qwen3.7 Plus パス · 5/5 fields, guidance null
{ "company": "Meridian Robotics", "quarter": "September", "revenue_usd_m": 412, "growth_pct": 11, "guidance": null }
出力 1807 tok (+1750 思考) レイテンシ 31.6 s
スキーマ遵守(フィールドをでっち上げない)、ハルシネーション圧(guidance は明示的に保留されている)、そして構造化出力の経路の違い。
Claude Sonnet 5 パス · 123 words, 0 banned, 1 question
## Introducing Cross-Provider Prompt Caching We're rolling out a new caching layer for our API gateway that works across every major LLM provider you connect through it. Instead of resending identical prompts and paying full price each time, the gateway recognizes repeated requests and serves cached responses in milliseconds—regardless of whether you're routing to OpenAI, Anthropic, or Google. What does this mean for your bill and your latency? Both drop, often significantly, especially for teams running high-volume, repetitive workloads like customer support bots or batch content generation. The cache is configurable per route, with adjustable TTLs and invalidation rules, so you stay in control of freshness versus cost. Available now for all Pro and Enterprise plans. Check your dashboard to enable it today.
出力 259 tok レイテンシ 4.8 s
Qwen3.7 Plus パス · 120 words, 0 banned, 1 question
Introducing PromptCache, our new API gateway feature designed to store and reuse prompts across multiple artificial intelligence providers. Have you ever noticed how repeatedly sending identical queries drains your budget and increases latency? PromptCache solves this by intelligently storing responses at the gateway level. When your application requests the same prompt from a different provider, the system instantly returns the cached result. This drastically reduces API costs and accelerates response times for your users. You can configure custom expiration times and set specific fallback rules for each vendor. You must stop paying twice for the exact same computation. Please upgrade your entire infrastructure today and experience much faster and cheaper integrations without changing a single line of your application code.
出力 4453 tok (+4312 思考) レイテンシ 76.8 s
制約の遵守(語数の上限、禁止語リスト、唯一の疑問文)、文体の指紋、そして長さの制御。
1行で切り替え
以下のすべてのタブには両方のIDが含まれています — 変更箇所はハイライトされた2行のみです。エンドポイント、キー、リクエスト形式はすべて同じです。
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="claude-sonnet-5",
# model="qwen3.7-plus", # この行をアンコメントし、上の行をコメントアウトします
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "claude-sonnet-5",
// model: "qwen3.7-plus", // この行をアンコメントし、上の行をコメントアウトします
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
# "model": "qwen3.7-plus", # この行をアンコメントし、上の行をコメントアウトします
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "claude-sonnet-5",
// Model: "qwen3.7-plus", // この行をアンコメントし、上の行をコメントアウトします
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("claude-sonnet-5")
// .model("qwen3.7-plus") // この行をアンコメントし、上の行をコメントアウトします
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));FAQ
Claude Sonnet 5 と Qwen3.7 Plus ではどちらが安いですか?
入力 / 1mトークン においては Qwen3.7 Plus の方が安価です($0.4 対 $2、5.0× の差)。他の行では逆になる可能性があります — 上の表には完全な情報が記載されており、実際のコストは組み合わせに依存します。
2つの統合を行わずに Claude Sonnet 5 と Qwen3.7 Plus のA/Bテストを実施できますか?
はい。両方とも1つのAPIキーで同じOpenAI互換エンドポイントを通じて提供されます — モデル文字列を1行変更するだけで切り替えられるため、トラフィックの一部をそれぞれにルーティングし、請求額を直接比較できます。
Claude Sonnet 5 と Qwen3.7 Plus はプロンプトキャッシングをサポートしていますか?
はい — どちらのモデルでもキャッシュ読み込みは入力レートよりも低く請求されるため、ウォームプレフィックスのワークロードは定価が示すよりも低コストになります。キャッシュ読み込みの正確な行は、上の料金表に記載されています。