Skip to main content
POST
Integrate with an AI model

Body

application/json
model
string

AI model to use (e.g., gpt-4)

Example:

"gpt-4"

messages
object[]

List of messages for the AI model

tools
string[]

Available tools for the AI to select from

tool_choice
string

How the AI should choose tools (e.g., auto)

Example:

"auto"

Response

200 - application/json

AI response with selected tool(s)

responseId
string
Example:

"response-45678"

tool_calls
object[]
status
string
Example:

"tools_selected"