Skip to content

Reasoning-Modus

Unterstützte Modelle regeln die Denkintensität über reasoning_effort oder ein entsprechendes Feld. Stufen sind modellabhängig; höhere Stufen kosten meist mehr Zeit und Tokens.

  • Unterstützung und offizielle Stufennamen im Modellkatalog prüfen.
  • low, medium und high nicht für jedes Modell voraussetzen.
  • Mit der niedrigsten ausreichenden Stufe beginnen und usage, Latenz und Qualität vergleichen.

Vollständige Beispiele

Alle ausführbaren Beispiele der ursprünglichen Anleitung sind unten vollständig erhalten. Führen Sie nur die Blöcke aus, die zu Ihrem Werkzeug und Betriebssystem gehören.

json
"usage": {
  "prompt_tokens": 179,
  "completion_tokens": 545,          // total output — this is what's billed
  "completion_tokens_details": {
    "reasoning_tokens": 445          // of which, spent on reasoning
  }
}
bash
curl https://nordrouter.com/v1/chat/completions \
  -H "Authorization: Bearer sk-nr-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-5",
    "max_tokens": 4000,
    "reasoning": { "effort": "high" },
    "messages": [{ "role": "user", "content": "A hard problem…" }]
  }'
ParameterWhat it does
reasoning.effortReasoning depth: "low" / "medium" / "high". Lower effort — fewer reasoning tokens, cheaper responses
reasoning.max_tokensToken budget for reasoning (Anthropic style). Must be lower than the request's max_tokens
reasoning.enabled: falseTurn reasoning off (where the model supports it)
reasoning.exclude: trueHide the reasoning text from the response. Does not save money — the model still thinks and the tokens are billed
ModelBehavior
anthropic/claude-sonnet-5Doesn't reason by default. effort and max_tokens enable thinking, enabled: false genuinely disables it
anthropic/claude-fable-5Thinks adaptively — decides on its own how much. reasoning.* parameters are not supported (returns 400); control depth with output_config: { "effort": "low" | "medium" | "high" }
openai/gpt-5.4, gpt-5.5Reason by default; reasoning_effort scales the depth
x-ai/grok-4.3Reasons by default and generously (hundreds of tokens); effort: "low" cuts it down noticeably
deepseek/deepseek-r1, z-ai/glm-5.xAlways think: "disabling" only hides the text, reasoning tokens are still billed

Verwandte Anleitungen

Prüfen Sie die Verbindung zuerst mit einer minimalen Textanfrage. Ergänzen Sie danach Streaming, Tool-Aufrufe, Bilder und weitere Funktionen. API-Schlüssel gehören nie in öffentlichen Code oder ein Browser-Frontend.

Fehlerbehebung