---
title: "Send a chat message"
method: POST
path: "/chat/send"
tags: ["Chat"]
---

# Send a chat message

`POST /chat/send`

## Request

- Base URL: `https://api.llm-broker.net`
- URL: `https://api.llm-broker.net/chat/send`
- Auth: HTTP bearer

Send a message and receive an AI reply via the pipeline.

## Request body

- SendMessageRequest
  - `content` string: Alternative field for message text
  - `conversationId` string: Existing conversation ID
  - `message` string: Alternative field for message text
  - `model` string: Override LLM model
  - `title` string: Title for a new conversation
  - `userMessage` string: The user message text

## Response `200`

Chat reply

- SendMessageResponse
  - `conversationId` string, nullable
  - `pipelineRunId` string, nullable
  - `reply` string: Assistant reply text
  - `usage` object: Token usage statistics

## Other responses

- `401`: Unauthorized
- `402`: Payment required
- `502`: Backend error

---

[API](https://skmtc.dev/llm-broker/apis/astrioncore-core-api.md) · [All operations](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/llm-broker/apis/astrioncore-core-api/revisions/f85835487bf5?raw)
