Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Headers

x-portkey-trace-id
string
x-portkey-span-id
string
x-portkey-parent-span-id
string
x-portkey-span-name
string
x-portkey-metadata
object

Body

application/json
model
string
required
messages
object[]
required
system
tools
object[]
tool_choice
object
thinking
object

Response

200 - application/json
input_tokens
integer