---
title: "Chat with the LLM"
method: POST
path: "/api/chat"
---

# Chat with the LLM

`POST /api/chat`

## Request body

- object
  - `message` string, required

## Response `200`

Successful response

- object
  - `response` string

## Other responses

- `400` — Invalid input
- `429` — Rate limit exceeded
- `500` — LLM API error

---

[API](https://skmtc.dev/docker/apis/hello-genai-api-rust.md) · [All operations](https://skmtc.dev/docker/apis/hello-genai-api-rust/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docker/hello-genai-api-rust/revisions/1d7f81cbf58d/schema)
