← All integrationsIntegrations

SDK (Python / TS)

Drop-in with the official Anthropic SDK — just change the base URL.

01

Create a key

Generate one sk-pool-* key in your dashboard.

02

Point to apiToken.sale

Set the base URL and key using the config below.

03

Start building

Every supported Claude model runs on the same balance.

Configuration

# Python
from anthropic import Anthropic
client = Anthropic(
    base_url="https://api.apitoken.sale",
    api_key="sk-pool-•••",
)
msg = client.messages.create(
    model="claude-opus-4-8",
    max_tokens=1024,
    messages=[{"role":"user","content":"Hello"}],
)