Your first response.
Connect your app to Unrefused in a few steps.
1Create an API key
Create a key in your workspace to start making requests. Keep the key on your server and give each application its own key.
Open API keys2Install the SDK
Use the OpenAI-compatible client library for your preferred language.
pip install openai3Send a request
Set your gateway base URL and API key. Confirm the model is returned by GET /v1/models before sending a generation request.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.unrefused.com/v1",
)
response = client.chat.completions.create(
model="glm-5.3-uncensored",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)These examples use the gateway configured for this website. Availability depends on your connected provider and account access.
Next steps.
Explore more of the API.
Need a hand?
Start with the error reference or check service status. Keep the response's x-request-id with your diagnostics. Never include API keys in a report.
Availability depends on your connected provider. Check service status and keep x-request-id with your diagnostics.