Quickstart in 5 Minutes
Get Your API Key
Sign up at api.westtree.top/register and grab your API key from the dashboard.
Install the SDK
Westtree is OpenAI-compatible. Use any OpenAI client library:
pip install openai
Make Your First Request
from openai import OpenAI
client = OpenAI(
api_key="YOUR_WESTTREE_KEY",
base_url="https://api.westtree.top/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
What’s Next?
Browse the model catalog and start integrating.