Create Anthropic Message
client.messages.create(params)/v1/messagesCreate a message through SandBase's Anthropic-compatible Messages endpoint.
Request body
MessageCreateParamsAnthropic-compatible model identifier.
User and assistant messages containing text or typed content blocks.
Maximum number of output tokens.
Top-level system instruction.
Sampling temperature from 0 to 1.
Default: 1
Nucleus sampling threshold.
Limit sampling to the top K tokens.
Custom sequences that stop generation.
Return Anthropic-style Server-Sent Events.
Default: false
Request metadata, including an optional user_id.
Tool definitions available to the model.
Controls tool selection behavior.
Extended thinking configuration for supported models.
Authentication
Use x-api-key or Authorization: Bearer. When both are provided, x-api-key takes precedence.
Compatibility
Content blocks, tool use, thinking, and streaming follow the Anthropic-compatible schema. Availability depends on the selected model.
Errors
Invalid request body or unsupported feature.
Missing or invalid API key.
Model not found or unavailable.
Rate limit exceeded.

