GUIDES
Switch from OpenAI in Python
One line changes: the base URL. Keys come from the console; model ids are the public names on each model page.
01
Install the SDK
pip install openai
02
Point base_url at UNST33R
from openai import OpenAI
client = OpenAI(
base_url="https://api.unst33r.si/v1",
api_key="<your api key>",
)03
Call any model by id
resp = client.chat.completions.create(
model="unst33r-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)// create your key in the console, and keep it out of version control