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

# Генерация изображения

> Создаёт изображения по текстовому описанию. Параметры Midjourney,
например `--ar 16:9` и `--s 250`, передаются в конце промпта.

Запрос выполняется синхронно.


<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.nixai.ru/v1/images/generations \
    -H "Authorization: Bearer $NIXAI_API_KEY" \
    -H "Content-Type: application/json" \
    --max-time 360 \
    -d '{
      "model": "midjourney-fast",
      "prompt": "a lighthouse on a cliff at sunset, cinematic --ar 16:9 --s 250"
    }'
  ```
</CodeGroup>


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