Skip to main content
POST

Authorizations

Authorization
string
header
required

Use Authorization: Bearer sk-... from https://omniall.ai/dashboard

Headers

anthropic-version
string
required

Anthropic API version header.

Example:

"2023-06-01"

x-api-key
string

Optional Anthropic-style key (also accepted as Bearer).

Body

application/json

Anthropic Messages request (POST /v1/messages). model, messages, and max_tokens are required.

model
string
required

Claude model id from Model Square.

Example:

"claude-sonnet-4"

messages
object[]
required

Conversation turns with roles user / assistant. Content may be a string or content blocks (text, image, document, tool_use, tool_result).

max_tokens
integer
required

Maximum tokens Claude may generate. Required by Anthropic; also acts as a cost/latency control.

Required range: x >= 1
system

System prompt (string or content blocks). Sets overall behavior.

temperature
number

Randomness (0–1 for Claude).

Required range: 0 <= x <= 1
top_p
number

Nucleus sampling.

top_k
integer

Top-K sampling.

stream
boolean

If true, stream SSE events.

stop_sequences
string[]

Custom stop strings.

tools
object[]

Claude tools: custom tools and/or server tools such as web_search when enabled for the model/channel.

tool_choice
object

Tool selection policy.

thinking
object

Extended thinking controls.

mcp_servers
object[]

MCP server definitions when using Claude MCP features.

metadata
object

Request metadata passthrough.

context_management
object

Context management options (provider-specific).

output_config
object

Output configuration (e.g. effort), when supported.

output_format
object

Structured output format controls.

cache_control
object

Prompt caching controls when supported.

Response

Claude message response (or SSE stream).

Anthropic Messages response.

id
string

Message id.

type
string

Usually message.

Example:

"message"

role
string

Usually assistant.

Example:

"assistant"

model
string

Model used.

content
object[]

Content blocks (text, tool_use, etc.). Concatenate text blocks for the visible answer.

stop_reason
enum<string>

Why Claude stopped: end_turn, max_tokens, stop_sequence, tool_use, etc.

Available options:
end_turn,
max_tokens,
stop_sequence,
tool_use
usage
object

Token usage.