Anthropic-compatible messages endpoint. Works with the Anthropic SDK, Claude Code, and any Anthropic-compatible client.
x-api-key header or as a Bearer token.
"stream": true to receive Server-Sent Events:
base_url and api_key:
API key authentication via x-api-key header
Anthropic API version
Model ID to use
Maximum number of tokens to generate
x >= 1Array of input messages
System prompt
Sampling temperature
0 <= x <= 1Nucleus sampling parameter
0 <= x <= 1Whether to stream the response