Chat Completions Live
Request body
SDK example
See Chat Models for the full list of callable model IDs. Join the Discord for updates.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
OpenAI-compatible chat completions.
POST /v1/chat/completions
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model ID to use. |
messages | array | Yes | Conversation messages. |
temperature | float | No | Sampling temperature between 0 and 2. |
top_p | float | No | Nucleus sampling between 0 and 1. |
max_tokens | integer | No | Maximum tokens to generate. |
stream | boolean | No | Whether to stream Server-Sent Events. |
from openai import OpenAI
client = OpenAI(
base_url="https://api.uncensored.com/api/v1",
api_key="YOUR_API_KEY",
default_headers={"x-api-key": "YOUR_API_KEY"}
)