Claude · Schema

ThinkingConfig

Configuration for extended thinking.

Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

Properties

Name Type Description
type string Whether thinking is enabled, disabled, or adaptive.
budget_tokens integer Maximum number of tokens for thinking. Minimum 1024 and must be less than max_tokens.
View JSON Schema on GitHub

JSON Schema

claude-messages-thinking-config-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ThinkingConfig",
  "type": "object",
  "description": "Configuration for extended thinking.",
  "properties": {
    "type": {
      "type": "string",
      "description": "Whether thinking is enabled, disabled, or adaptive."
    },
    "budget_tokens": {
      "type": "integer",
      "description": "Maximum number of tokens for thinking. Minimum 1024 and must be less than max_tokens."
    }
  }
}