POST
/
chat
curl --request POST \
  --url https://3428-49-207-209-69.ngrok-free.app/chat \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "<string>"
    }
  ],
  "model": "gpt-4o",
  "stream": false,
  "temperature": 1
}'
{
  "id": "<string>",
  "object": "chat.completion",
  "created": 123,
  "model": "<string>",
  "system_fingerprint": "<string>",
  "service_tier": "<string>",
  "choices": [
    {
      "index": 123,
      "message": {
        "role": "assistant",
        "content": "<string>",
        "function_call": {},
        "tool_calls": [
          {}
        ],
        "refusal": "<string>"
      },
      "finish_reason": "<string>",
      "logprobs": {}
    }
  ],
  "usage": {
    "prompt_tokens": 123,
    "completion_tokens": 123,
    "total_tokens": 123,
    "completion_token_details": {
      "reasoning_tokens": 123,
      "audio_tokens": 123,
      "accepted_prediction_tokens": 123,
      "rejected_prediction_tokens": 123
    },
    "prompt_token_details": {
      "cached_tokens": 123,
      "audio_tokens": 123
    }
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

repo_name
string
required

Name of the repository to query (e.g., github.com/calcom/cal.com)

Body

application/json

Response

200
application/json
Successful chat response

The response is of type object.