---
title: "Создать задачу генерации видео"
method: POST
path: "/llm/generate-video"
tags: ["ИИ-модели"]
---

# Создать задачу генерации видео

`POST /llm/generate-video`

Создает асинхронную video-задачу RouterAI. Callback URL формируется сервисом; передавать `callback_url` и `stream` запрещено.

## Headers

- `X-Lang` 'ru' | 'kk' | 'en' | 'es'

## Request body

- LLMVideoGenerationRequest
  - `model` string, required
  - `prompt` string, required
  - `duration` integer

## Response `200`

Video-задача создана

- LLMVideoGenerationResponse
  - `video_id` string, required
  - `status` string, required

## Other responses

- `400` — Неправильный запрос
- `401` — Пользователь не авторизован
- `402` — Недостаточно средств у провайдера
- `403` — Доступ запрещен
- `429` — Превышен лимит на количество запросов
- `500` — Внутренняя ошибка сервера
- `503` — Сервис недоступен или отключен

## Changes

- **2026-08-05** `c22dfa568481` — 1 breaking, 1 info
  - removed the success response with the status `202`
  - added the success response with the status `200`
- **2026-08-03** `31c30b79e5b7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smartofood/apis/smartofood-admin-api/changes/llm/generate-video/post.md)

---

[API](https://skmtc.dev/smartofood/apis/smartofood-admin-api.md) · [All operations](https://skmtc.dev/smartofood/apis/smartofood-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smartofood/smartofood-admin-api/revisions/c22dfa568481/schema)
