Create a message
Generate an Anthropic-compatible message response from Messages API input. Supports streaming, tool use, and multimodal content blocks.
Documentation Index
Fetch the complete documentation index at: https://docs.naga.ac/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Primary authentication for inference endpoints. Send your Naga API key as Authorization: Bearer <api-key>.
Body
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 <= 1- ToolParam
- WebSearchToolParam
- ToolChoiceAutoParam
- ToolChoiceAnyParam
- ToolChoiceToolParam
- ToolChoiceNoneParam
- ThinkingConfigEnabledParam
- ThinkingConfigDisabledParam
- ThinkingConfigAdaptiveParam
Response
JSON response when stream=false, or Anthropic-style Server-Sent Events when stream=true.
- AnthropicTextBlockResponse
- AnthropicThinkingBlockResponse
- AnthropicImageBlockResponse
- AnthropicSearchResultBlockResponse
- AnthropicToolUseBlockResponse
"message""assistant"