---
title: "Usage Ai Chat"
method: POST
path: "/usage/ai/chat"
tags: ["usage_ai"]
---

# Usage Ai Chat

`POST /usage/ai/chat`

AI chat about usage data. Streams SSE events with the AI response.
The AI agent has access to tools that query aggregated daily activity data.

## Request body

- UsageAIChatRequest
  - `messages` ChatMessage[], required — Chat messages (user/assistant history)
    - `content` string, required
    - `role` 'user' | 'assistant', required
  - `model` string, nullable — Model to use for AI chat

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
