Claude Messages
Use the Claude-compatible Messages endpoint for clients that send Anthropic-style message payloads.
Basic request
The response follows a Claude-compatible message shape with content blocks and usage information when available.
Required fields
Optional fields
The API schema includes fields such as:
systemtemperature,top_p, andtop_kstreamstop_sequencestoolsandtool_choicethinkingcontext_managementoutput_configandoutput_formatmetadataspeedandservice_tier
Support is model-dependent. Do not send an option only because it appears in the schema; confirm the selected model supports it.
Streaming
Set stream to true for Claude-compatible streaming when supported:
Use a Claude event parser rather than a Chat Completions or Responses parser.
Tool and thinking support
Claude-compatible tool definitions, tool result blocks, and thinking configuration require a model with matching capabilities. Test the complete workflow before enabling it in unattended agents.
A Claude model ID used through an OpenAI-compatible endpoint and the same model used through /v1/messages can require different request and response handling. Configure the protocol expected by your client.
Tool integrations
Tools such as Claude-compatible coding clients may require additional environment variables or provider settings. Follow the dedicated guide under Integrations instead of replacing only the hostname.
