plugins/claude-opus-4-5-migration/skills/claude-opus-4-5-migration/references/effort.md
Add effort set to "high" during migration. This is the default configuration for best performance with Opus 4.5.
Effort controls how eagerly Claude spends tokens. It affects all tokens: thinking, text responses, and function calls.
| Effort | Use Case |
|---|---|
high | Best performance, deep reasoning (default) |
medium | Balance of cost/latency vs. performance |
low | Simple, high-volume queries; significant token savings |
Requires beta flag effort-2025-11-24 in API calls.
Python SDK:
response = client.messages.create(
model="claude-opus-4-5-20251101",
max_tokens=1024,
betas=["effort-2025-11-24"],
output_config={
"effort": "high" # or "medium" or "low"
},
messages=[...]
)
TypeScript SDK:
const response = await client.messages.create({
model: "claude-opus-4-5-20251101",
max_tokens: 1024,
betas: ["effort-2025-11-24"],
output_config: {
effort: "high" // or "medium" or "low"
},
messages: [...]
});
Raw API:
{
"model": "claude-opus-4-5-20251101",
"max_tokens": 1024,
"anthropic-beta": "effort-2025-11-24",
"output_config": {
"effort": "high"
},
"messages": [...]
}
Effort is independent of thinking budget: