> ## Documentation Index
> Fetch the complete documentation index at: https://nixai.ru/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat Completions

> Создаёт ответ текстовой модели на основе истории сообщений.

Базовый запрос содержит только идентификатор модели и сообщение пользователя:

```json theme={null}
{
  "model": "model-name",
  "messages": [
    {
      "role": "user",
      "content": "Расскажи кратко, почему небо голубое."
    }
  ]
}
```


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://nixai.ru/docs/llms.txt).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.