Anthropic Messages
Create messages using Anthropic Messages API format
Creates a message using Anthropic’s native Messages API format. This endpoint provides the same API format as Anthropic’s official API, making it easy to migrate existing integrations or use Anthropic-specific features.Documentation Index
Fetch the complete documentation index at: https://www.edgee.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
Comma-separated list of tags for categorizing and filtering requests in analytics and logs. Example: production,agent,codex
Enable debug mode to include additional debugging information in the response.
Compression bundle to apply.
claude, opencode, cursor, codex Claude CLI passthrough authentication. When set, the gateway uses this key instead of x-api-key / Authorization to authenticate the request. Used by the Claude Code CLI when proxying requests through Edgee.
Claude CLI session identifier. Used to group all messages from a single CLI session in analytics.
Body
The model ID to use (Anthropic format, without provider prefix)
"claude-sonnet-4.5"
Maximum number of tokens to generate
x >= 11024
Array of message objects
1System prompt as a string
Enable streaming responses
Tool definitions
- Option 1
- Option 2
- Option 3
Response
Message created successfully
Unique identifier for this message
The model that generated the response
Array of content blocks
- Option 1
- Option 2
- Option 3
Why the model stopped generating
end_turn, max_tokens, tool_use