Skip to main content
POST
/
inference
/
v1
{path}
Inference Post
curl --request POST \
  --url https://api.example.com/inference/v1{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "messages": [],
  "timeout": 123,
  "temperature": 123,
  "top_p": 123,
  "n": 123,
  "stop": "<string>",
  "max_completion_tokens": 123,
  "max_tokens": 123,
  "modalities": [
    "<unknown>"
  ],
  "presence_penalty": 123,
  "frequency_penalty": 123,
  "stream": true,
  "logit_bias": {},
  "user": "<string>",
  "response_format": {},
  "seed": 123,
  "tools": [
    "<unknown>"
  ],
  "tool_choice": "<string>",
  "logprobs": true,
  "top_logprobs": 123,
  "parallel_tool_calls": true,
  "extra_headers": {},
  "functions": [
    "<unknown>"
  ],
  "function_call": "<string>",
  "api_version": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

path
string
required

Body

application/json
model
string
required
messages
any[]
timeout
temperature
number | null
top_p
number | null
n
integer | null
stop
max_completion_tokens
integer | null
max_tokens
integer | null
modalities
any[] | null
presence_penalty
number | null
frequency_penalty
number | null
stream
boolean | null
logit_bias
Logit Bias · object
user
string | null
response_format
Response Format · object
seed
integer | null
tools
any[] | null
tool_choice
logprobs
boolean | null
top_logprobs
integer | null
parallel_tool_calls
boolean | null
extra_headers
Extra Headers · object
functions
any[] | null
function_call
string | null
api_version
string | null

Response

Successful Response