Docs / Python SDK
Python SDK
Anthropic protocol (no /v1)
Official anthropic library.
Base URL
https://llmapi.proAPI Key
sk-... (create in Console → API Keys)Recommended
claude-opus-4-8 · claude-sonnet-4-6 · claude-haiku-4-5Setup steps
from anthropic import Anthropic
client = Anthropic(
api_key="sk-YOUR_KEY",
base_url="https://llmapi.pro",
)
msg = client.messages.create(
model="claude-opus-4-8",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(msg.content[0].text)Notes
- The Anthropic SDK's
base_urlhas no /v1.
Client not listed? Any "OpenAI-compatible" app works: Base URL =
https://llmapi.pro/v1, key = your sk-..., type the model name. Or email [email protected].Need help? Email [email protected] · Home