Generate an Anthropic-compatible message response from Messages API input. Supports streaming, tool use, and multimodal content blocks.
Primary authentication for inference endpoints. Send your Naga API key as Authorization: Bearer <api-key>.
Stateless Messages API endpoint (Anthropic Messages API compatibility).
Request surface is intentionally limited to what maps into our internal
/v1/chat/completions pipeline.
Model identifier to route the request to.
"claude-sonnet-4.5"
Maximum number of output tokens to generate.
x >= 1Conversation history in Anthropic Messages format.
1 - 100000 elementsReturn Anthropic-style SSE events instead of a single JSON response.
0 <= x <= 20 <= x <= 1JSON response when stream=false, or Anthropic-style Server-Sent Events when stream=true.
"message""assistant"