---
title: "AI Copilot"
method: POST
path: "/ai-chat"
tags: ["Default"]
---

# AI Copilot

`POST /ai-chat`

Chat with our AI copilot powered by Neyman AI trained on the extensive Finnhub's global data. You can ask it any finance-related questions just like with other LLM models and receive results in texts and widgets.

## Request body

- AIChatBody
  - `messages` AIChatMessage[], required — Messages
    - `role` string — Role system/user
    - `content` string — Content
  - `stream` boolean — Stream responses

## Response `200`

successful operation

- AIChatResponse
  - `chatId` string — Chat ID.
  - `content` string — Response text.
  - `querySummary` string — Query summary
  - `relatedQueries` object[] — Related queries.
  - `tickers` object[] — List of tickers mentioned.
  - `sources` object[] — Sources.
  - `widgets` object[] — Widgets.

---

[API](https://skmtc.net/finnhub-stock-api/apis/finnhub-api.md) · [All operations](https://skmtc.net/finnhub-stock-api/apis/finnhub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/finnhub-stock-api/finnhub-api/versions/415b27331384/schema)
