Python, Anthropic SDK
from anthropic import Anthropic
client = Anthropic(
base_url="https://ai-router-dev.dev.0sk.ru/anthropic",
api_key="sk-samsa-...",
)
msg = client.messages.create(
model="claude-opus-5",
max_tokens=256,
messages=[{"role": "user", "content": "привет"}],
)