API reference

Every endpoint, generated from the OpenAPI spec. Pick one to see its parameters and send a live request with your key.

POST/chat/completions

Create a chat completion

Parameters

Idempotency-Keyheader
string
X-Titleheader
string

Request body

modelrequired
string — Model id; append :online for web search
models
string[]
messagesrequired
object[]
stream
boolean
stream_options
object
max_tokens
integer
max_completion_tokens
integer
temperature
number
top_p
number
top_k
integer
stop
string | string[]
seed
integer
presence_penalty
number
frequency_penalty
number
tools
object[]
tool_choice
object
parallel_tool_calls
boolean
response_format
object
reasoning
object
reasoning_effort
string
plugins
object[]
provider
object
user
string

Responses

200OK
4XXError
5XXError

Try it

Requests go straight from your browser to the API with this key and are billed normally. The key stays in this tab only.

cURL
curl -X POST https://api.ultragpt.pro/v1/chat/completions \
  -H "Authorization: Bearer $ULTRAGPT_API_KEY"