---
title: "Chat Completions"
method: POST
path: "/v1/chat/completions"
tags: ["gateway"]
---

# Chat Completions

`POST /v1/chat/completions`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/v1/chat/completions`
- Auth: none declared

OpenAI-compatible chat completion (streaming + non-streaming).

## Headers

- `authorization` string, nullable

## Request body

- ChatCompletionRequest
  - `model` string, required
  - `messages` GatewayChatMessage[], required
    - `role` string, required
    - `content` string, nullable
  - `stream` boolean
  - `temperature` number, nullable
  - `max_tokens` integer, nullable
  - `top_p` number, nullable
  - `stream_options` GatewayStreamOptions
    - `include_usage` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5387b4ded614?raw)
