Skip to main content

Chat Completions Live

POST /v1/chat/completions
An OpenAI-compatible chat completion endpoint.

Request body

ParameterTypeRequiredDescription
modelstringYesModel ID to use.
messagesarrayYesConversation messages.
temperaturefloatNoSampling temperature between 0 and 2.
top_pfloatNoNucleus sampling between 0 and 1.
max_tokensintegerNoMaximum tokens to generate.
streambooleanNoWhether to stream Server-Sent Events.

SDK example

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"}
)
See Chat Models for the full list of callable model IDs. Join the Discord for updates.