Anthropic API
Connect existing clients via the Messages API.
POST · Messages
https://189.24.66.33/v1/messagesPython SDK
Install anthropic and initialize the client with the site root address.
from anthropic import Anthropic
client = Anthropic(
base_url="https://189.24.66.33",
api_key="sk-relay-...",
)
message = client.messages.create(
model="glm-5.3-flash-xploded",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content)Message format
The body uses the Anthropic Messages format with model, max_tokens and messages. System prompts go in the top-level system field.
Use the real IDs from the model catalog. Supported content types and tool capabilities follow the model's actual responses.