---
title: "Send a message and stream the assistant's reply"
method: POST
path: "/ai/chat/stream"
tags: ["AI"]
---

# Send a message and stream the assistant's reply

`POST /ai/chat/stream`

Server-sent events. Emits token, tool_call, tool_result, proposal, done and error frames.

## Request body

- object
  - `conversationId` integer
  - `providerId` integer
  - `model` string
  - `message` string
  - `activeTab` string

## Response `200`

An event stream.

## Other responses

- `400` — Invalid request body.

---

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