Claude Opus 5 vs Claude Sonnet 5
どんなときに、どちらを選ぶか
上位か下位かという古典的な問いだが、今回は2.5×の価格差($5/$25 vs $2/$10)があり、どちらも同一の1Mコンテキストを持つ。Sonnet 5は4.6からのドロップインでの機能アップグレードとして位置づけられており、ほとんどのプロダクトトラフィックはこれで飽和するため、Opus 5は、その思考の深さが重要となる長期ホライズンのエージェントトラフィックのロングテール用に予約しておくべきである。
ベンチマーク
両モデルとも測定されている項目は 17 件です。
ベンダー公表値: Alibaba (Qwen) Anthropic ByteDance DeepSeek Google MiniMax Moonshot OpenAI Tencent Z.ai
料金
| Claude Opus 5 | Claude Sonnet 5 | Δ | |
|---|---|---|---|
| 入力 / 100 万トークン | $5 | $2 | 2.5× |
| 出力 / 100 万トークン | $25 | $10 | 2.5× |
| キャッシュ読み取り / 100 万トークン | $0.5 | $0.2 | 2.5× |
| キャッシュ書き込み | 1.25x (5m) / 2x (1h) | 1.25x (5m) / 2x (1h) | - |
ビルド時点の現行カタログの料金です。最新の料金表は各モデルのページに掲載しています。
両モデルの位置:100 万トークンあたりの入力料金(この課金単位のチャットモデル全 76 件、対数スケール)
対応機能
| Claude Opus 5 | Claude Sonnet 5 | |
|---|---|---|
| ツール呼び出し | あり | あり |
| 思考の制御 | 設定可能 | 設定可能 |
| 構造化出力 | あり | あり |
| プロンプトキャッシュ | 明示(プレフィックスを自分で指定) | 明示(プレフィックスを自分で指定) |
| キャッシュ保持時間 | 5m default, 1h option | 5m default, 1h option |
| キャッシュ対象の最小プレフィックス | 1024 トークン | 1024 トークン |
仕様
| Claude Opus 5 | Claude Sonnet 5 | |
|---|---|---|
| 入力モダリティ | テキスト 画像 | テキスト 画像 |
| 出力モダリティ | テキスト | テキスト |
| リリース | 2026-07-24 | 2026-06-30 |
| 知識カットオフ | 2026-05 | 2026-01 |
| コンテキストウィンドウ | 1M | 1M |
| 最大出力 | 128K | 128K |
| 思考パラメータ |
|
|
| 指定可能な値 | thinking.type
effort
| thinking.type
effort
"enabled" returns 400 |
| デフォルト | thinking on effort
| thinking on (adaptive) effort
|
仕様は各ベンダーのドキュメントから転記しています。ベンダーが公表していない項目は、推測で埋めずに省いています。 出典の一覧: Claude Opus 5 · Claude Sonnet 5
1 つのプロンプトを両モデルで実行(ゲートウェイ経由で測定)
Claude Opus 5 合格 · 3 sentences
When reasoning is enabled, the model generates a hidden chain of "thinking" tokens before it writes the visible answer, and those internal tokens are billed at the output rate even though no one ever sees them — commonly 3–10x more tokens than the response itself. Because output tokens are priced several times higher than input tokens, that added volume hits us at our most expensive rate, which is why the bill roughly doubled while our request count stayed flat. The spend is controllable: we can cap the reasoning budget per call, route only genuinely hard requests to reasoning mode and cheaper models for the rest, and track cost per successfully completed task rather than cost per token, since a single correct answer usually beats three cheap retries plus human cleanup.
出力 529 tok レイテンシ 9.0 s
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
指示への忠実さ(ちょうど 3 文という、数えて確かめられる条件)、読み手に合わせた書き分け(CFO 向けの語り口)、そして下のトークンメーターに表れる、表示されない思考への課金の差。
Claude Opus 5 合格 · 8/8 cases
## Fixed version ```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 if cur > best: best = cur return best ``` ## The bug The counters were tracking the wrong quantity: `cur` counted *matching adjacent pairs* rather than *elements in the current run*, and both counters started at `0` instead of `1`. Since a run of length *n* contains only *n − 1* adjacent equal pairs, every result came back one too small — `[1, 1]` returned 1, `[3, 3, 3]` returned 2 — and a single-element list returned 0 because the loop body never executed and `best` kept its initial value of `0`. […]
出力 1094 tok レイテンシ 16.1 s
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
修正が本当に正しいか(実行して確かめられる)、説明の密度、範囲の限られたタスクでのトークン効率。
Claude Opus 5 合格 · 5/5 fields, guidance "Withheld pending Q4 close"
```json { "company": "Meridian Robotics", "quarter": "Q3", "revenue_usd_m": 412, "growth_pct": 11, "guidance": "Withheld pending Q4 close" } ``` Notes on judgment calls: - **quarter**: "September quarter" is labeled Q3 because the text refers to an upcoming "Q4 close," implying a calendar-aligned fiscal year. No fiscal year is given. - **revenue_usd_m**: 412 is stated as constant-currency and hedged ("call it"), so it's approximate; the currency is not explicitly stated as USD. - **growth_pct**: "up eleven and change" means slightly more than 11, so 11 is a floor rather than an exact figure.
出力 539 tok レイテンシ 7.6 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
スキーマの遵守(存在しないフィールドを作らない)、ハルシネーションを誘う条件への耐性(guidance は明示的に伏せてある)、構造化出力の実現方法の違い。
Claude Opus 5 合格 · 123 words, 0 banned, 1 question
**Cross-Provider Prompt Caching** We're introducing Cross-Provider Prompt Caching in the API Gateway. Repeated system prompts, long documents, and few-shot examples are stored once at the gateway layer and reused across OpenAI, Anthropic, Google, and self-hosted models. Instead of paying full input token costs on every request, your application sends a cache reference, and the gateway rehydrates the context before forwarding it downstream. Why does that matter? Teams running high-volume agents and retrieval pipelines typically see input token spend fall 40 to 70 percent, with median latency dropping by several hundred milliseconds. Caches are scoped per project, encrypted at rest, and invalidated automatically when a prompt template changes. Enable it with a single header, and see the docs for TTL tuning and per-route controls.
出力 1593 tok レイテンシ 19.1 s
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
制約の遵守(語数の上限、禁止語リスト、疑問文はひとつだけ)、文体の癖、長さの制御。
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-opus-5",
# model="claude-sonnet-5", # この行のコメントを外し、上の行をコメントアウト
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-opus-5",
// model: "claude-sonnet-5", // この行のコメントを外し、上の行をコメントアウト
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-opus-5",
# "model": "claude-sonnet-5", # この行のコメントを外し、上の行をコメントアウト
"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-opus-5",
// Model: "claude-sonnet-5", // この行のコメントを外し、上の行をコメントアウト
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-opus-5")
// .model("claude-sonnet-5") // この行のコメントを外し、上の行をコメントアウト
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));よくある質問
Claude Opus 5 と Claude Sonnet 5 ではどちらが安いですか?
入力 / 100 万トークンは Claude Sonnet 5 のほうが安くなります($2 対 $5、2.5 倍の差)。ほかの行では逆になることもあります。料金の全体は上の表に掲載しており、実際のコストは利用の内訳によって変わります。
Claude Opus 5 と Claude Sonnet 5 の A/B テストは、実装を 2 つ用意せずにできますか?
はい。どちらも同じ OpenAI 互換エンドポイントから 1 つの API キーで利用できます。切り替えはモデル名の文字列を 1 行変えるだけなので、トラフィックの一部をそれぞれに振り分けて、請求額を直接比較できます。
Claude Opus 5 と Claude Sonnet 5 はプロンプトキャッシュに対応していますか?
はい。どちらのモデルも、キャッシュ読み取りは通常の入力単価より安く課金されます。そのため、同じプレフィックスを繰り返し使うワークロードでは、定価から見込まれるよりコストが下がります。キャッシュ読み取りの正確な単価は、上の料金表に掲載しています。