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

# Статус генерации

> Опрос статуса асинхронной задачи

<ParamField path="generation_id" type="integer" required>
  ID генерации из `POST /api/v2/generate`.
</ParamField>

```bash theme={null}
curl https://elumenta.ru/api/v2/generate/18502 \
  -H "Authorization: Bearer nb_ВАШ_КЛЮЧ"
```

**Ожидание:**

```json theme={null}
{"id": 18502, "status": "pending", "result_url": null, "tokens_spent": 0}
```

**Завершено:**

```json theme={null}
{
  "id": 18502,
  "status": "completed",
  "result_url": "https://storage.elumenta.ru/generations/18502.mp4",
  "tokens_spent": 60,
  "processing_ms": 87420
}
```

**Ошибка (токены не списываются):**

```json theme={null}
{"id": 18503, "status": "failed", "error": "Content policy violation", "tokens_spent": 0}
```
