Create your API key
Open your account, create a key and copy it. You will use it in the next step.
Open API keysUse an Uncensured AI key. An OpenAI key will not work here.
Prepare Python
Open a terminal in a folder for this example. Choose your operating system and run these commands.
python3 -m venv .venv
.venv/bin/python -m pip install openai
export UNCENSURED_API_KEY="YOUR_UNCENSURED_API_KEY"Replace YOUR_UNCENSURED_API_KEY with your key, keeping the quotes. Leave this terminal open: the variable lasts for this session.
Create the request file
In the same folder, create a file named prima_richiesta.py and paste this code.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://uncensuredai.com/v1",
api_key=os.environ["UNCENSURED_API_KEY"],
)
response = client.chat.completions.create(
model="glm-5.3-flash-abliterated",
messages=[{"role": "user", "content": "Scrivi un breve saluto in italiano."}],
reasoning_effort="low",
max_tokens=4096,
)
print(response.choices[0].message.content)The openai package is the client library. The base URL sends your request to Uncensured AI and uses your Uncensured AI credit.
Run it and read the response
In the same terminal, run the file:
.venv/bin/python prima_richiesta.pyCiao! Come posso aiutarti oggi?
If you see generated text, your first API call is complete.
It caps the output budget, which can include reasoning. The example uses 4096; you are charged for actual usage, not automatically for the full budget.