Endpoints
Messages
Send text conversations in the Anthropic Messages format.
POST
Messages
Use the same derestricted key and account balance as the OpenAI-compatible endpoints.
Read text from entries in
Raw clients receive events such as
string
required
Your derestricted API key.
Authorization: Bearer ... is also accepted.string
default:"2023-06-01"
Sent by Anthropic SDKs. Use the SDK’s normal version header; it does not
enable provider-specific features.
string
default:"derestricted-llm"
Use
derestricted-llm.array
required
User and assistant turns. Text content can be a string or text blocks. Include
the history needed for the current turn. Maximum 2,000 items.
string or array
Optional top-level system instructions. Do not put a
system role inside the
Messages conversation array.integer
Set an output allowance; Anthropic SDKs require this argument. The service
caps it at 65,536 and checks that available credit can cover the reservation.
boolean
default:"false"
Set to
true for Messages-style server-sent events.array
Optional tools defined with
name, description, and input_schema. Your
application executes requested tools and supplies their tool_result content
in a later request.Example
content whose type is text. A message can also contain reasoning or tool-use blocks. Check stop_reason and the usage fields; reaching max_tokens can produce an incomplete answer.
Streaming
message_start, content_block_start, content_block_delta, message_delta, and message_stop. ping events are keepalives. An error event can arrive after an HTTP 200; do not interpret it as a normal completion.
The thinking, output_config, mcp_servers, container, and other provider-specific controls do not configure this model. See count tokens for the separate approximate input estimator.