anthropic package: change the base URL to the host root without
/v1 (the SDK appends /v1/messages itself), use your AI Reserve API key, and every
gateway model — not just Claude — answers the same call.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Point the official anthropic package at the gateway — host root, no /v1 — and reach every gateway model.
anthropic package: change the base URL to the host root without
/v1 (the SDK appends /v1/messages itself), use your AI Reserve API key, and every
gateway model — not just Claude — answers the same call.
import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.aireserve.com", # host root — NO /v1
api_key=os.environ["AIRESERVE_API_KEY"],
)
# Works with Claude models — and with GPT model IDs too (bridged).
res = client.messages.create(
model="claude-haiku-4-5-20251001",
max_tokens=256,
messages=[{"role": "user", "content": "hello"}],
)
print(res.content[0].text)
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.aireserve.com", // host root — NO /v1
apiKey: process.env.AIRESERVE_API_KEY,
});
// Works with Claude models — and with GPT model IDs too (bridged).
const res = await client.messages.create({
model: "claude-haiku-4-5-20251001",
max_tokens: 256,
messages: [{ role: "user", content: "hello" }],
});