Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
chat
/
completions
Create chat completion
curl --request POST \
  --url https://api.pathors.com/v1/projects/{projectId}/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {
      "content": "<string>"
    }
  ],
  "stream": true,
  "tools": [
    {}
  ],
  "session_id": "<string>"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "model": "<string>",
  "choices": [
    {}
  ],
  "session_id": "<string>"
}

Authorizations

Authorization
string
header
required

Developer key created from the dashboard (Settings → Developer Keys)

Path Parameters

projectId
string
required

The ID of your project

Body

application/json
messages
object[]
required
stream
boolean
tools
object[]
session_id
string

Response

OK

id
string
required
object
string
required
created
number
required
model
string
required
choices
object[]
required
session_id
string
required