/v1/messages) provides direct compatibility with the Anthropic Messages API format. Use this endpoint when working with Anthropic Claude models and features like interleaved thinking, tool calling, and multi-turn conversations.
Basic Request
Response Format
System Prompt
Use thesystem parameter to set the model’s behavior for the entire conversation.
Response
Multi-Turn Conversations
Pass previous messages as an array of alternatinguser and assistant messages to maintain conversation context.
Response
Request Headers
Anthropic API version. Use
2023-06-01.Optional beta features. For example,
interleaved-thinking-2025-05-14 for legacy interleaved thinking support.Request Parameters
The model ID. Supported models include:
blackboxai/anthropic/claude-opus-4.6blackboxai/anthropic/claude-opus-4.5blackboxai/anthropic/claude-sonnet-4.6blackboxai/anthropic/claude-sonnet-4.5
Maximum number of tokens to generate.
Array of message objects with
role (user or assistant) and content fields.System prompt for the conversation.
Array of tool definitions using the Anthropic
input_schema format. See Tool Calling.Configuration for extended / interleaved thinking. See Interleaved Thinking.
Response Fields
Unique message identifier.
Always
"message".Always
"assistant".Array of content blocks. Each block has a
type field:text— Text response with atextfieldtool_use— Tool call withid,name, andinputfieldsthinking— Thinking block with athinkingfield (when thinking is enabled)
Why the model stopped generating:
end_turn— Natural completiontool_use— Model wants to call a toolmax_tokens— Hit the token limit
Token usage with
input_tokens and output_tokens.Supported Models
| Model | Model ID | Tool Calling | Interleaved Thinking |
|---|---|---|---|
| Claude Opus 4.6 | blackboxai/anthropic/claude-opus-4.6 | ✓ | ✓ |
| Claude Opus 4.5 | blackboxai/anthropic/claude-opus-4.5 | ✓ | ✓ |
| Claude Sonnet 4.6 | blackboxai/anthropic/claude-sonnet-4.6 | ✓ | ✓ |
| Claude Sonnet 4.5 | blackboxai/anthropic/claude-sonnet-4.5 | ✓ | ✓ |