Monoize
Transforms

Reasoning: effort to thinking budget

Map the request reasoning effort level to a thinking-token budget.

What it does

This transform maps the request reasoning effort level (low, medium, high, and optionally xhigh or max) to a numeric thinking-token budget for upstreams that take budgets instead of effort labels.

Reference

PropertyValue
Type IDreasoning_effort_to_budget
Phaserequest
ScopesProvider

When to use

  • Clients send OpenAI-style reasoning.effort but the upstream takes an Anthropic-style thinking budget.

Configuration

OptionTypeRequiredDefaultDescription
lowintegerYesThinking-token budget for effort low.
medintegerYesBudget for effort medium.
highintegerYesBudget for effort high.
xhighintegerNoOptional budget for effort xhigh.
maxintegerNoOptional budget for effort max.

Example rule

{
  "transform": "reasoning_effort_to_budget",
  "enabled": true,
  "phase": "request",
  "models": [
    "claude-*"
  ],
  "config": {
    "low": 1024,
    "med": 8192,
    "high": 24576
  }
}

This transform is Provider-scope only, because it changes upstream spend.

On this page