An ACCTOKEN API key. Create one on API Keys in the console.
Python with pip install anthropic, or Node.js with npm install @anthropic-ai/sdk.
01Connection details
CONNECTION RECORDANTHROPIC SDK
Format
Anthropic Messages
Base URL
https://intl.acctoken.comno /v1
API key
YOUR_API_KEYapi_key sends x-api-key
Model
claude-sonnet-5
Environment
ANTHROPIC_BASE_URLANTHROPIC_API_KEY
LIVE CHECKCommands run on the live APIEvery command on this page is run against intl.acctoken.com before it is published.ACCTOKEN DOCS DESK
02Set it up
Set the base URL without /v1. The SDK adds /v1/messages itself.
from anthropic import Anthropicclient = Anthropic( base_url="https://intl.acctoken.com", api_key="YOUR_API_KEY",)msg = client.messages.create( model="claude-sonnet-5", max_tokens=1024, messages=[{"role": "user", "content": "Say hello in one word."}],)print("".join(block.text for block in msg.content if block.type == "text"))
import Anthropic from "@anthropic-ai/sdk";const client = new Anthropic({ baseURL: "https://intl.acctoken.com", apiKey: "YOUR_API_KEY",});const msg = await client.messages.create({ model: "claude-sonnet-5", max_tokens: 1024, messages: [{ role: "user", content: "Say hello in one word." }],});console.log(msg.content);