---
title: "POST /v1/chat/completions"
method: POST
path: "/v1/chat/completions"
tags: ["Compat"]
---

# POST /v1/chat/completions

`POST /v1/chat/completions`

## Request body

- object
  - `model` string
  - `messages` object[], required
    - `role` 'system' | 'user' | 'assistant' | 'tool', required
    - `content` union, required
      - string
      - unknown[]
        - unknown
    - `name` string
    - `tool_call_id` string
  - `stream` boolean
  - `user` string

## Response `200`

OpenAI-compatible streaming chat completions

## Changes

- **2026-04-02** `e5a2e2d06dbf` — 1 info
  - endpoint added
- **2026-03-19** `239b3cc94d80` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nexu-io/apis/nexu-controller-api/changes/v1/chat/completions/post.md)

---

[API](https://skmtc.dev/nexu-io/apis/nexu-controller-api.md) · [All operations](https://skmtc.dev/nexu-io/apis/nexu-controller-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nexu-io/nexu-controller-api/revisions/ee3237405da6/schema)
