Skip to main content
POST
Chat Completion

Authorizations

Authorization
string
header
required

An UncensoredGPT API key created in the UncensoredGPT Console.

Body

application/json
model
string
required
messages
(ChatCompletionUserMessage · object | ChatCompletionAssistantMessage · object | ChatCompletionToolMessage · object | ChatCompletionSystemMessage · object | ChatCompletionFunctionMessage · object | ChatCompletionDeveloperMessage · object)[]
required
Example:
frequency_penalty
number | null
logit_bias
Logit Bias · object | null
logprobs
boolean | null
top_logprobs
integer | null
max_tokens
integer | null
n
integer | null
presence_penalty
number | null
response_format
Response Format · object | null
seed
integer | null
service_tier
string | null
stop
stream_options
Stream Options · object | null
temperature
number | null
top_p
number | null
tools
Tools · object[] | null
tool_choice
parallel_tool_calls
boolean | null
function_call
functions
Functions · object[] | null
user
string | null
stream
boolean | null
metadata
Metadata · object | null
guardrails
string[] | null
caching
boolean | null
num_retries
integer | null
context_window_fallback_dict
Context Window Fallback Dict · object | null
fallbacks
string[] | null

Response

Successful Response