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

# Chat with AI

`POST /api/chat`

Send a message to the AI and get a response

## Request body

- object
  - `message` string, required — The message to send to the AI

## Response `200`

Successful response from AI

- object
  - `response` string — The AI's response to the message
  - `model` string — The model name (only returned for !modelinfo command)

## Other responses

- `400` — Bad request
- `429` — Too many requests
- `500` — Server error

---

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