Claude · JSON Structure

Claude Messages Create Message Request Structure

Type: object Properties: 11
Artificial IntelligenceChatbotConversational AIGenerative AILarge Language ModelsMachine LearningNatural Language Processing

CreateMessageRequest is a JSON Structure definition published by Claude, describing 11 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

model max_tokens messages system temperature top_p top_k stop_sequences stream tools service_tier

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "CreateMessageRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "max_tokens": {
      "type": "integer"
    },
    "messages": {
      "type": "array"
    },
    "system": {
      "type": "string"
    },
    "temperature": {
      "type": "number"
    },
    "top_p": {
      "type": "number"
    },
    "top_k": {
      "type": "integer"
    },
    "stop_sequences": {
      "type": "array"
    },
    "stream": {
      "type": "boolean"
    },
    "tools": {
      "type": "array"
    },
    "service_tier": {
      "type": "string"
    }
  }
}