Python (Anthropic SDK)
from anthropic import Anthropic
client = Anthropic(
api_key="sk-bring-...",
base_url="https://bring.buatjalan.xyz"
)
response = client.messages.create(
model="claude-sonnet-4.5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.content[0].text)
Python (OpenAI SDK — same model!)
from openai import OpenAI
client = OpenAI(
api_key="sk-bring-...",
base_url="https://bring.buatjalan.xyz/v1"
)
response = client.chat.completions.create(
model="claude-sonnet-4.5",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
Why Use a Claude API Gateway?
Use Claude with any SDK. Bring AI supports both the Anthropic SDK and the OpenAI SDK. Call Claude from your existing OpenAI codebase without changes.
Access 200+ models. Beyond Claude, access GPT, Gemini, DeepSeek, GLM, Kimi, and more — all through the same API key.
Pay-per-use pricing. No subscription required. Pay only for the tokens you use. View Claude pricing →
Model fallback. If Claude is unavailable, Bring AI can automatically route to an alternative model. Your app stays up.
Available Claude Models
| Model | Input $/1M | Output $/1M |
|---|---|---|
| Claude Sonnet 4.5 | $3.00 | $15.00 |
| Claude Opus 4.6 | $5.00 | $25.00 |
| Claude Haiku 3.5 | $0.25 | $1.25 |
Prices shown per 1M tokens. Actual pricing may vary. View all models →