---
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

---

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