Docs / Python SDK
Python SDK
Anthropic protocol (no /v1)
Official anthropic library.
Base URL
https://llmapi.proAPI Key
sk-... (create in Console → API Keys)Choose a model
Copy the exact model ID from the subscription model list or pay-as-you-go channels, and check that your client protocol supports it. The model catalogue labels each model’s billing mode.
A monthly subscription uses a subscription key, with supported models sharing the plan quota. Pay-as-you-go API billing uses a separate key and balance. Select the matching key type in the Console, then configure your client protocol. Topping up API credit does not increase subscription quota.
Setup 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 support@llmapi.pro.Ready to connect?
Check your base URL & generate settings · Choose your client guide · Create an account
Need help? Email support@llmapi.pro · Home