POST
/
chat
/
completions
curl --request POST \
  --url https://api.infera.org/chat/completions \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "model": "<string>",
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "max_tokens": 123,
  "temperature": 123,
  "request_timeout_time": 123
}'
"<any>"

Authorizations

api_key
string
header
required

Body

application/json
model
string
required
messages
object[]
required
max_tokens
integer
required
temperature
number
required
request_timeout_time
integer | null
default:
240

Response

200
application/json
Successful Response

The response is of type any.