GET

/v1/schemas/anthropic/chat/v1%2Fmessages

kind inputactivity chathash 4f83f2be…extracted Nov 18, 2026version currentsource upstream spec ↗

Request body

17 properties · 3 required · 172 $defs
propertytypedescriptionconstraints
model*stringThe model that will complete your prompt.22 known values
messages*InputMessageUnion[]Input messages.
max_tokens*integerThe maximum number of tokens to generate before stopping.n ≥ 0
cache_controlCacheControlEphemeralTop-level cache control automatically applies a cache_control marker to the last cacheable block in the request.nullable
containerContainerParams | stringContainer identifier for reuse across requests.nullable
diagnosticsDiagnosticsParamRequest-level diagnostics. Currently carries the previous response id for prompt-cache divergence reporting.nullable
inference_geostringSpecifies the geographic region for inference processing. If not specified, the workspace's `default_inference_geo` is used.nullable
metadataMetadataAn object describing metadata about the request.
output_configOutputConfigConfiguration options for the model's output, such as the output format.
service_tierenumDetermines whether to use priority capacity (if available) or standard capacity for this request.auto | standard_only
speedenumThe inference speed mode for this request. `"fast"` enables high output-tokens-per-second inference. Some models require the `fast-mode-2026-02-01` beta header for any `speed` value. See [fast mode](https://platform.claude.com/docs/en/build-with-claude/fast-mode) for which models.standard | fast · nullable
stop_sequencesstring[]Custom text sequences that will cause the model to stop generating.
streambooleanWhether to incrementally stream the response using server-sent events. When `true`, SDKs return a raw event stream.
systemstring | RequestTextBlock[]System prompt.
thinkingThinkingConfigEnabled | ThinkingConfigDi…Configuration for Claude's thinking.
tool_choiceToolChoiceAuto | ToolChoiceAny | ToolCho…How the model should use the provided tools. The model can use a specific tool, any available tool, decide by itself, or not use tools at all.
toolsTool | BashTool_20250124 | CodeExecutionTool_20250522[]Definitions of tools that the model may use.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"anthropic","endpointId":"v1/messages","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}