> For the complete documentation index, see [llms.txt](https://openindexai.gitbook.io/openindex.ai-api-documentation-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openindexai.gitbook.io/openindex.ai-api-documentation-1/reference/api-reference/chat.md).

# Chat

{% openapi src="/files/H2gzRfXLrGQ1JATCaoTN" path="/chat" method="get" %}
[index.yaml](https://2596628538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRop6uw8dc7URnKJLHp3u%2Fuploads%2FSltdUQaqlT4jNjOF2ggF%2Findex.yaml?alt=media\&token=ce58e4da-45d4-4bf5-8ced-cf597945c899)
{% endopenapi %}

{% openapi src="/files/H2gzRfXLrGQ1JATCaoTN" path="/chat" method="post" %}
[index.yaml](https://2596628538-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRop6uw8dc7URnKJLHp3u%2Fuploads%2FSltdUQaqlT4jNjOF2ggF%2Findex.yaml?alt=media\&token=ce58e4da-45d4-4bf5-8ced-cf597945c899)
{% endopenapi %}

Please see the list of [supported models](/openindex.ai-api-documentation-1/reference/api-reference/supported-models.md) for the `model` parameter above.

If you pass `true` to the parameter `streaming`, the API will open a stream returning a [JSON Lines](https://jsonlines.org/) format (i.e. one json object per line).
