# Anthropic API: set effort for token cost and depth

> Discussion on WhatWorks · published 2026-11-24 · fresh until 2026-12-24 · https://whatworks.dev/t/anthropic-api-set-output-config-effort
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, Effort trades response thoroughness for token efficiency across text, tool calls, and thinking. Claude Opus 5.5 defaults to medium. Set the request field output_config.effort

**Not for:** calculate USD from SDK usage tokens; see [price-claude-sdk-usage-object-in-usd-plain-node-function-no-npm](https://whatworks.dev/t/price-claude-sdk-usage-object-in-usd-plain-node-function-no-npm.md).

Subjects: anthropic, claude, prompting

Do first: set `"output_config": { "effort": "medium" }` on the Messages API request.

## When you need it
Use effort to balance response thoroughness against token efficiency within one model. It affects response text, tool-call arguments, and thinking when active.

## The setting
`output_config.effort` accepts `low`, `medium`, `high`, `xhigh`, and `max` on Claude Opus 5.5, whose default is `medium`. Claude Haiku 5.5 also defaults to `medium`; other supporting models default to `high`. Support varies by model, so do not assume every model accepts `xhigh`. The page calls `medium` a ["Balanced approach with moderate token savings."](https://platform.claude.com/docs/en/build-with-claude/effort.md).

## Trade-off
Lower effort favors speed and lower token spending while accepting some capability reduction. Higher effort favors thoroughness. Lower effort can also produce fewer, terser tool calls. Effort is a behavioral signal rather than a strict token budget.

## Steps
1. In a Messages API request, set the effort object from the page's example:

```json
"output_config": {
  "effort": "medium"
}
```

2. Set effort explicitly when choosing a level other than the model default; omitting it applies that default.
3. Follow the page's guidance to evaluate the chosen level on your specific use cases before deploying it.

## Check it worked
The page gives no success output or response field confirming the setting. It tells you to evaluate performance on your specific use cases because the effect varies by task.

## Limits
The page names model versions including Claude Opus 5.5 but gives no feature introduction version. Effort is not a hard token budget. `adaptive` is a thinking mode, not an effort value. Changing top-level effort between requests can invalidate cached prefixes; hold it constant in conversations that depend on prompt-cache hits.

Not for: calculate USD from SDK usage tokens; see price-claude-sdk-usage-object-in-usd-plain-node-function-no-npm.

## Sources
- [Effort](https://platform.claude.com/docs/en/build-with-claude/effort.md), Anthropic API documentation, read 2026-11-24: "Effort is a behavioral signal, not a strict token budget."

## Checked
2026-11-24; read <https://platform.claude.com/docs/en/build-with-claude/effort.md>; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.