---
title: "Usage Ai Chat"
method: POST
path: "/usage/ai/chat"
tags: ["Budget & Spend Tracking"]
---

# Usage Ai Chat

`POST /usage/ai/chat`

## Request

- Base URL: `https://api.vibebrowser.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.vibebrowser.app/usage/ai/chat`
- Auth: one of:
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`
  - API key in header `x-litellm-api-key`

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)
    - `role` 'user' | 'assistant', required
    - `content` string, required
  - `model` string, nullable: Model to use for AI chat

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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