---
title: "Chat completion"
method: POST
path: "/api/chat"
tags: ["Chat"]
---

# Chat completion

`POST /api/chat`

## Request

- Base URL: `https://kortexio.io` (the document declares no server; this is the origin it was published from)
- URL: `https://kortexio.io/api/chat`
- Auth: HTTP bearer

Ollama-compatible chat endpoint with memory, BYOK, and optional agentic loop. For OpenAI SDK clients use /v1/chat/completions.

## Headers

- `X-User-Id` string, required
- `X-Session-Id` string

## Response `200`

OK

---

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