---
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

## Changes

- **2026-09-19** `c357baf422ab` — 2 info
  - api tag `usage_ai` added
  - api tag `Budget & Spend Tracking` removed
- **2026-09-18** `082b5fabd909` — 4 info
  - api tag `Budget & Spend Tracking` added
  - api tag `usage_ai` removed
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/usage/ai/chat/post.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/3b2b241e4b0b?raw)
