Chat Completions
Request
Chat Competions (POST)
Headers
Name
Value
Authorization
Bearer <token>
Body
Name
Type
Description
model*
string
Model
messages*
list
Messages history
stream
boolean
Will there be a streaming request
temperature
float
Temperature, models creativity
max_completion_tokens
integer
Max tokens
frequency_penalty
float
Frequency penalty
logprobs
bool
Logprobs
presence_penalty
float
Presense penalty
reasoning_effort
string ["minimal", "low", "medium", "high"]
Reasoning effort
response_format
dict
Response format
tool_choice
string ["none", "auto", "required"]
Tool choice
tools
list
Tools
top_logprobs
integer
Top logprobs
top_p
float
Top p
Python
Python Stream
Python Vision
Last updated