Integrations

Anthropic SDK with zurelay

Official Claude libraries for Python and TS. Made by Anthropic.

Model in the examples:

Set it up

  1. 1

    Install the SDK: pip install anthropic or npm install @anthropic-ai/sdk.

  2. 2

    Set the base URL to https://api.zurelay.com, with no /v1. The SDK adds /v1/messages itself.

  3. 3

    Use a Claude model ID. Other models answer on the OpenAI-compatible URL.

Configuration

import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.zurelay.com",
api_key=os.environ["ZURELAY_API_KEY"],
)
message = client.messages.create(
model="claude-opus-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)
Both SDKs also read ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY from the environment.

Anthropic SDK’s own docs

Questions, or something missing? Ask support in your dashboard or email support@zurelay.com.