API reference

Chat completions

Send an OpenAI Chat Completions request.

Request fields come from the gateway's OpenAPI document. See authentication and headers and errors.

The OpenAPI document does not define response schemas for these routes. Missing response fields below do not mean the API returns an empty response.

POST
/v1/chat/completions

Authorization

headerAuthorizationBearer <token>

Request Body

application/json
  1. body
model*string
Length1 <= length
messages*array<>
Items1 <= items
max_tokens?integer
Range0 < value <= 9007199254740991
max_completion_tokens?integer
Range0 < value <= 9007199254740991
temperature?number
Range0 <= value <= 2
top_p?number
Range0 <= value <= 1
stop?string|array<string>|null
stream?boolean
Defaultfalse
stream_options?|null
tools?array<>
tool_choice?|
parallel_tool_calls?boolean
response_format?||
reasoning_effort?string
Value in"none""minimal""low""medium""high""xhigh""max"
user?string
n?1
Value in1
logprobs?not (unknown)
logit_bias?not (unknown)
top_logprobs?not (unknown)
audio?not (unknown)
modalities?array<>
[key: string]?unknown

Response Body

Default Response

curl -X POST 'https://unused.market/v1/chat/completions' \  -H 'Content-Type: application/json' \  -d '{  "model": "string",  "messages": [    {      "role": "system",      "property1": null,      "property2": null    }  ],  "property1": null,  "property2": null}'
Empty