{"openapi":"3.1.0","info":{"title":"Nexus API v3","description":"\nREST API для генерации видео, изображений, музыки и текста одним ключом.\n\n**Базовый URL:** `https://nexusapi.dev` · **Документация:** https://docs.nexusapi.dev\n\n## Как это работает\n\n1. `POST /generate` с параметрами модели в `params` → `202` и `task_id`.\n   Сумма генерации удерживается с баланса сразу.\n2. `GET /tasks/{task_id}` раз в несколько секунд, пока `status` не станет\n   `completed` или `failed`. Вместо опроса можно передать `webhook_url`.\n3. Если задача завершилась ошибкой, удержанная сумма возвращается на баланс.\n\nТекстовые модели работают синхронно через `POST /v1/chat/completions`\n(формат OpenAI). Там же `/v1/images/generations` и `/v1/videos` для клиентов\nOpenAI SDK.\n\n## Аутентификация\n\nAPI-ключ передаётся в заголовке `Authorization: Bearer <ключ>`. Без ключа\nработает только каталог моделей и цен `GET /public/models`.\n\n```http\nAuthorization: Bearer <API-ключ>\n```\n\n## Ошибки\n\nНативный API (`/generate`, `/tasks`) отвечает `{\"detail\": \"...\"}`; ошибка\nвалидации параметров — `422` со списком полей. Эндпоинты `/v1/*` отвечают в\nформате OpenAI: `{\"error\": {\"message\", \"type\", \"code\", \"param\"}}`, ошибка\nвалидации там — `400`.\n\n## Параметры моделей\n\nСхема параметров каждой модели — в `GenerateRequest.params` (дискриминатор\n`model_name`). У схемы есть пример (`examples`) и правила, которые не видны из\nJSON Schema (`x-nexus-rules`): взаимоисключающие поля, «X требует Y» и т.п.\nМодели со схемой `additionalProperties: false` отвечают `422` на неизвестные\nполя, остальные неизвестные поля игнорируют.\n","version":"3.0.0"},"paths":{"/public/models":{"get":{"tags":["Public"],"summary":"Каталог моделей и цен","description":"Все включённые модели с ценами в рублях. Ключ не нужен.\n\nОтвет отдаётся с `ETag`: передайте его в `If-None-Match`, и если каталог не\nизменился, придёт `304` без тела.","operationId":"public_models_public_models_get","responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ModelInfo"},"type":"array","title":"Response Public Models Public Models Get"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}},"304":{"description":"Каталог не изменился с прошлого запроса (If-None-Match).","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"ETag":{"$ref":"#/components/headers/ETag"}}}},"parameters":[{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"},"description":"ETag прошлого ответа: если каталог не изменился, придёт 304 без тела."}]}},"/public/models/{model_id}":{"get":{"tags":["Public"],"summary":"Модель из каталога","description":"Одна модель из каталога — те же поля, что в `GET /public/models`, плюс подробное\nописание (`description`), если оно есть. Ключ не нужен.","operationId":"public_model_public_models__model_id__get","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDetail"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"404":{"description":"Такой модели нет в каталоге или она выключена.","headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"422":{"description":"Ошибка в параметрах: список полей в detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}}}},"/v1/chat/completions":{"post":{"tags":["OpenAI Compatible"],"summary":"Чат (Chat Completions)","description":"Ответ текстовой модели в формате OpenAI Chat Completions — синхронно, без задач.\n\nПодходит любой клиент OpenAI: `base_url` = `https://nexusapi.dev/v1`. Перед\nзапросом удерживается примерная сумма; после ответа стоимость пересчитывается по\nфактическому `usage`, и разница возвращается. Повтор с тем же `Idempotency-Key`\nне отправляет запрос модели второй раз.","operationId":"chat_completions_v1_chat_completions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}},"required":true},"responses":{"200":{"description":"Ответ модели; при stream=true — поток событий SSE.","content":{"application/json":{"schema":{"properties":{"id":{"type":"string"},"object":{"type":"string","description":"chat.completion"},"created":{"type":"integer","description":"Время ответа (Unix, секунды)."},"model":{"type":"string","description":"ID модели."},"choices":{"items":{"properties":{"index":{"type":"integer"},"message":{"properties":{"role":{"type":"string","description":"assistant"},"content":{"type":["string","null"],"description":"Текст ответа."},"tool_calls":{"items":{"type":"object"},"type":"array","description":"Вызовы функций, если модель их запросила."}},"type":"object"},"finish_reason":{"type":"string","description":"stop, length, tool_calls…"}},"type":"object"},"type":"array"},"usage":{"properties":{"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"},"total_tokens":{"type":"integer"}},"type":"object","description":"Токены запроса: по ним пересчитывается стоимость."}},"type":"object","title":"ChatCompletion","description":"Ответ в формате OpenAI Chat Completions. При stream=true — события SSE chat.completion.chunk."}},"text/event-stream":{"schema":{"type":"string","description":"События data: {chat.completion.chunk} и data: [DONE]."}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"400":{"description":"Ошибка в запросе: неверные или неподдерживаемые параметры.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"402":{"description":"Недостаточно средств на балансе.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"404":{"description":"Модель или задача не найдена.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"424":{"description":"Модель не завершила запрос, средства не списаны. Повтор с тем же Idempotency-Key вернёт этот же ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"429":{"description":"Слишком много запросов: лимит ключа в минуту. Через сколько повторить — в заголовке Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Генерация завершилась ошибкой; удержанная сумма возвращена.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"503":{"description":"Модель временно недоступна или идут технические работы.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}},"security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":256},"description":"Ключ повтора: тот же ключ с тем же телом вернёт тот же ответ без второго списания. Хранится 24 часа; тот же ключ с другим телом — 422."}]}},"/v1/models":{"get":{"tags":["OpenAI Compatible"],"summary":"Список моделей (OpenAI)","description":"Включённые модели в формате OpenAI: `{\"object\": \"list\", \"data\": [...]}`.\n\nНужен ключ, как у OpenAI. Цены и возможности моделей — в `GET /public/models`\n(без ключа).","operationId":"list_models_v1_models_get","responses":{"200":{"description":"Включённые модели.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIModelList"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"503":{"description":"Модель временно недоступна или идут технические работы.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}},"security":[{"ApiKey":[]}]}},"/v1/images/generations":{"post":{"tags":["OpenAI Compatible"],"summary":"Изображение (OpenAI Images)","description":"Генерация изображения в формате OpenAI Images: ответ приходит, когда изображение готово.\n\nПод капотом создаётся обычная задача, и запрос ждёт её результата: для\nSeedream 5.0 Pro до 540 секунд, для остальных моделей до 180. Если результата\nнет за это время, ответ — `504` с `error.task_id`: задача продолжает\nвыполняться и будет оплачена. Повтор с тем же `Idempotency-Key` продолжит\nждать эту же задачу. Для долгих моделей удобнее `POST /generate`.","operationId":"images_generations_v1_images_generations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesGenerationsRequest"}}},"required":true},"responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagesGenerationsResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"400":{"description":"Ошибка в запросе: неверные или неподдерживаемые параметры.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"402":{"description":"Недостаточно средств на балансе.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"404":{"description":"Модель или задача не найдена.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"429":{"description":"Слишком много запросов: лимит ключа в минуту. Через сколько повторить — в заголовке Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Генерация завершилась ошибкой; удержанная сумма возвращена.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"503":{"description":"Модель временно недоступна или идут технические работы.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"504":{"description":"Не дождались результата. Задача продолжает выполняться и будет оплачена: её ID — в error.task_id, статус — GET /tasks/{task_id}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}},"security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":256},"description":"Ключ повтора: тот же ключ с тем же телом вернёт тот же ответ без второго списания. Хранится 24 часа; тот же ключ с другим телом — 422."}]}},"/v1/videos":{"post":{"tags":["OpenAI Compatible"],"summary":"Видео (OpenAI Videos)","description":"Создаёт задачу генерации видео в формате OpenAI Videos и сразу отвечает объектом со `status: \"queued\"`.\n\nСтатус и ссылка на результат — `GET /v1/videos/{video_id}` (или\n`GET /tasks/{task_id}`: это тот же ID). Параметры модели, которых нет в\nформате OpenAI, передаются полями запроса (в OpenAI SDK — через `extra_body`).\nПовтор с тем же `Idempotency-Key` вернёт то же видео без второго списания.","operationId":"videos_create_v1_videos_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoCreateRequest"}}},"required":true},"responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoObject"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"400":{"description":"Ошибка в запросе: неверные или неподдерживаемые параметры.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"402":{"description":"Недостаточно средств на балансе.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"404":{"description":"Модель или задача не найдена.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"429":{"description":"Слишком много запросов: лимит ключа в минуту. Через сколько повторить — в заголовке Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"503":{"description":"Модель временно недоступна или идут технические работы.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}},"security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":256},"description":"Ключ повтора: тот же ключ с тем же телом вернёт тот же ответ без второго списания. Хранится 24 часа; тот же ключ с другим телом — 422."}]}},"/v1/videos/{video_id}":{"get":{"tags":["OpenAI Compatible"],"summary":"Статус видео (OpenAI Videos)","description":"Статус видео, созданного через `POST /v1/videos`; при `completed` — ссылка в `url`.\n\nОпрашивайте раз в 5–10 секунд. Видео другого аккаунта — `404`.","operationId":"videos_retrieve_v1_videos__video_id__get","security":[{"ApiKey":[]}],"parameters":[{"name":"video_id","in":"path","required":true,"schema":{"type":"string","title":"Video Id"}}],"responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoObject"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"404":{"description":"Модель или задача не найдена.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}}}},"/me/balance":{"get":{"tags":["Account"],"summary":"Баланс","description":"Сколько рублей доступно ключу из заголовка Authorization.\n\nЕсли ключ привязан к общему кошельку аккаунта, это баланс кошелька. Сумма\nгенераций в работе уже удержана и в баланс не входит.","operationId":"get_my_key_balance_me_balance_get","responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}},"security":[{"ApiKey":[]}]}},"/tasks/{task_id}":{"get":{"tags":["Tasks"],"summary":"Статус задачи","description":"Статус и результат задачи, созданной через POST /generate.\n\nОпрашивайте раз в 3–10 секунд, пока `status` не станет `completed` или\n`failed`. Задача другого аккаунта — 403.","operationId":"get_task_status_tasks__task_id__get","security":[{"ApiKey":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStatusResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"403":{"description":"Нет доступа: ограничения ключа (IP, список моделей) или чужая задача.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"404":{"description":"Не найдено: задача или выключенная модель.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"503":{"description":"Модель или режим временно недоступны, либо идут технические работы. Средства не списаны.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"422":{"description":"Ошибка в параметрах: список полей в detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}}}},"/generate":{"post":{"tags":["Core Logic"],"summary":"Создать задачу генерации","description":"Ставит задачу генерации видео, изображения или аудио в очередь.\n\nОтвет `202` с `task_id`; сумма генерации удерживается с баланса сразу.\nРезультат — через GET /tasks/{task_id} или POST на `params.webhook_url`.\nЕсли задача завершится ошибкой, удержанная сумма вернётся на баланс.\n\nЗаголовок `Idempotency-Key` (8–256 символов) защищает от двойного\nсписания при повторе: тот же ключ с тем же телом вернёт тот же `task_id`.","operationId":"generate_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"202":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateAcceptedResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"400":{"description":"Неверный заголовок Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"402":{"description":"Недостаточно средств на балансе.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"403":{"description":"Нет доступа: ограничения ключа (IP, список моделей) или чужая задача.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"404":{"description":"Не найдено: задача или выключенная модель.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"409":{"description":"Запрос с этим Idempotency-Key ещё выполняется.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"422":{"description":"Ошибка в параметрах: список полей в detail. Тот же Idempotency-Key с другим телом — тоже 422.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"429":{"description":"Слишком много запросов: лимит ключа в минуту.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"503":{"description":"Модель или режим временно недоступны, либо идут технические работы. Средства не списаны.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}},"security":[{"ApiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":256},"description":"Ключ повтора: тот же ключ с тем же телом вернёт тот же ответ без второго списания. Хранится 24 часа; тот же ключ с другим телом — 422."}]}},"/webhooks/secret":{"get":{"tags":["Tasks"],"summary":"Секрет подписи вебхуков","description":"Секрет подписи вебхуков для задач, созданных этим API-ключом.\n\nКаждый вебхук приходит с `X-Nexus-Timestamp` и\n`X-Nexus-Signature: v1=<hex>`, где hex — HMAC-SHA256 от\n`\"{timestamp}.{сырое тело}\"` по этому секрету. По секрету нельзя\nвосстановить API-ключ: его можно отдать сервису, который принимает вебхуки.","operationId":"get_webhook_secret_webhooks_secret_get","responses":{"200":{"description":"Успешный ответ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}},"401":{"description":"Нет API-ключа или ключ неверный.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"headers":{"X-Request-Id":{"$ref":"#/components/headers/X-Request-Id"}}}},"security":[{"ApiKey":[]}]}}},"webhooks":{"task":{"post":{"tags":["Tasks"],"summary":"Задача завершилась","description":"POST на `webhook_url` из параметров задачи, когда она завершилась (`completed` или `failed`).\n\nТело — как у `GET /tasks/{task_id}`, без `created_at`. Проверьте подпись и\nотвечайте быстро (до 10 секунд): тяжёлую обработку делайте после ответа.\nСобытие может прийти повторно — сверяйте `task_id`.","operationId":"task_webhooktask_post","parameters":[{"description":"Время отправки (Unix, секунды).","required":true,"schema":{"type":"string","title":"X-Nexus-Timestamp","description":"Время отправки (Unix, секунды)."},"name":"X-Nexus-Timestamp","in":"header"},{"description":"v1=<hex> — HMAC-SHA256 от «{X-Nexus-Timestamp}.{сырое тело}» по секрету из GET /webhooks/secret.","required":true,"schema":{"type":"string","title":"X-Nexus-Signature","description":"v1=<hex> — HMAC-SHA256 от «{X-Nexus-Timestamp}.{сырое тело}» по секрету из GET /webhooks/secret."},"name":"X-Nexus-Signature","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}},"required":true},"responses":{"200":{"description":"Любой ответ 2xx — событие доставлено. Иначе ещё две попытки: через 10 и через 120 секунд. Ожидание ответа — 10 секунд, редиректы не выполняются.","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Balance":{"properties":{"key_balance":{"type":"number","title":"Key Balance","description":"Доступно, ₽: баланс ключа или общего кошелька аккаунта, если ключ к нему привязан."}},"type":"object","required":["key_balance"],"title":"Balance"},"ChatCompletionRequest":{"properties":{"model":{"type":"string","title":"Model","description":"ID текстовой модели (см. GET /v1/models)."},"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages","description":"Сообщения OpenAI Chat Completions. Для gpt-6-luna и gpt-6-sol поддерживаются content-блоки image_url с публичной HTTP(S)-ссылкой. Для gpt-6-luna, gpt-6-sol и gpt-6.1-sol при полном входе свыше 272000 токенов тариф всего запроса повышается: вход и кеш x2, выход x1.5. Порог считается по фактическому числу входных токенов до вычета кеша; повышение применяется ко всем токенам запроса, не только к превышению."},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"Потоковый ответ (SSE), как в OpenAI.","default":false},"max_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Tokens","description":"Максимум токенов ответа."},"max_completion_tokens":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Completion Tokens","description":"То же, что max_tokens (название из новых версий OpenAI)."},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}],"title":"Effort","description":"Глубина рассуждений модели."},"reasoning_effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}],"title":"Reasoning Effort","description":"То же, что effort (название OpenAI)."},"thinking":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Thinking","description":"Настройки рассуждений в формате Anthropic, например {\"type\": \"enabled\", \"budget_tokens\": 2048}."},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"Температура выборки."},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P","description":"Nucleus sampling."},"top_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top K","description":"Top-k sampling."},"tools":{"items":{"type":"object"},"type":"array","description":"Функции, которые модель может вызвать (формат OpenAI tools, type=function)."},"tool_choice":{"anyOf":[{"type":"string"},{"type":"object"}],"description":"Как выбирать функцию: auto, none, required или конкретная функция (формат OpenAI)."},"response_format":{"type":"object","description":"Формат ответа модели, например {\"type\": \"json_object\"} (формат OpenAI)."},"stream_options":{"type":"object","description":"Параметры потоковой передачи, например {\"include_usage\": true} (формат OpenAI)."}},"additionalProperties":true,"type":"object","required":["model","messages"],"title":"ChatCompletionRequest","description":"Запрос OpenAI Chat Completions. Поля, которых нет в схеме, передаются модели как есть."},"ErrorResponse":{"properties":{"detail":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":true,"type":"object"},"type":"array"}],"title":"Detail","description":"Текст ошибки. У ошибки валидации (422) — список объектов {loc, msg, type} по каждому полю."}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Ошибка нативного API (/generate, /tasks, /webhooks, /public)."},"GeminiOmniFlashVideoEditParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gemini-omni-flash-video-edit","title":"Model Name"},"reference_video_urls":{"items":{"type":"string"},"type":"array","maxItems":1,"minItems":1,"title":"Reference Video Urls","description":"Видеореференсы."},"reference_image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":6},{"type":"null"}],"title":"Reference Image Urls","description":"Изображения-референсы."},"reference_characters":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":3},{"type":"null"}],"title":"Reference Characters","description":"Референсы персонажей: список объектов с полем image_urls (до 10 изображений на персонажа)."},"seed":{"anyOf":[{"type":"integer","maximum":4294967295.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"resolution":{"type":"string","enum":["720p","1080p","4k"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"start_frame":{"type":"integer","minimum":0.0,"title":"Start Frame","description":"Номер кадра исходного видео, с которого начинается правка.","default":0},"end_frame":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"End Frame","description":"Номер кадра исходного видео, на котором правка заканчивается."},"allow_audio_filtered":{"type":"boolean","title":"Allow Audio Filtered","description":"Принять результат, у которого звук убран фильтром безопасности.","default":false}},"type":"object","required":["prompt","model_name","reference_video_urls"],"title":"GeminiOmniFlashVideoEditParams","examples":[{"model_name":"gemini-omni-flash-video-edit","prompt":"Make the scene look like a snowy winter evening","reference_video_urls":["https://example.com/videos/street.mp4"],"resolution":"720p"}],"x-nexus-rules":["В reference_video_urls ровно одно исходное видео длиной 1–30 секунд.","end_frame не может быть меньше start_frame.","Всего не больше 7 файлов: исходное видео, reference_image_urls и изображения персонажей."]},"GeminiOmniFlashVideoParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gemini-omni-flash-video","title":"Model Name"},"seed":{"anyOf":[{"type":"integer","maximum":4294967295.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"aspect_ratio":{"type":"string","enum":["16:9","9:16"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"16:9"},"duration":{"type":"integer","enum":[4,6,8,10],"title":"Duration","description":"Длительность результата в секундах.","default":4},"resolution":{"type":"string","enum":["720p","1080p","4k"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"Первый кадр видео."},"reference_image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":7},{"type":"null"}],"title":"Reference Image Urls","description":"Изображения-референсы."},"reference_characters":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":3},{"type":"null"}],"title":"Reference Characters","description":"Референсы персонажей: список объектов с полем image_urls (до 10 изображений на персонажа)."},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice","description":"Голос для озвучки."},"allow_audio_filtered":{"type":"boolean","title":"Allow Audio Filtered","description":"Принять результат, у которого звук убран фильтром безопасности.","default":false}},"type":"object","required":["prompt","model_name"],"title":"GeminiOmniFlashVideoParams","examples":[{"aspect_ratio":"16:9","duration":6,"model_name":"gemini-omni-flash-video","prompt":"A red fox walks through fresh snow in a quiet forest","resolution":"1080p"}],"x-nexus-rules":["start_image_url нельзя совмещать с reference_image_urls и reference_characters.","voice требует хотя бы один референс: изображение или персонажа.","Всего не больше 7 изображений: reference_image_urls плюс изображения всех персонажей."]},"GenerateAcceptedResponse":{"properties":{"message":{"type":"string","title":"Message","description":"Служебное сообщение.","default":"Task accepted for processing"},"task_id":{"type":"string","title":"Task Id","description":"ID задачи для GET /tasks/{task_id} и вебхука."}},"type":"object","required":["task_id"],"title":"GenerateAcceptedResponse"},"GenerateRequest":{"properties":{"params":{"oneOf":[{"$ref":"#/components/schemas/Veo3QualityParams"},{"$ref":"#/components/schemas/Veo3FastParams"},{"$ref":"#/components/schemas/Veo31Params"},{"$ref":"#/components/schemas/KlingV26Params"},{"$ref":"#/components/schemas/KlingV25StandardParams"},{"$ref":"#/components/schemas/KlingV25ProParams"},{"$ref":"#/components/schemas/KlingV21StandardNewParams"},{"$ref":"#/components/schemas/KlingV21ProNewParams"},{"$ref":"#/components/schemas/KlingV21MasterNewParams"},{"$ref":"#/components/schemas/KlingO1GenParams"},{"$ref":"#/components/schemas/KlingO1EditParams"},{"$ref":"#/components/schemas/KlingMotion720Params"},{"$ref":"#/components/schemas/KlingMotion1080Params"},{"$ref":"#/components/schemas/KlingO3Params"},{"$ref":"#/components/schemas/KlingO3ProParams"},{"$ref":"#/components/schemas/VeoExtendParams"},{"$ref":"#/components/schemas/NanoBanana"},{"$ref":"#/components/schemas/NanoBananaPro"},{"$ref":"#/components/schemas/NanoBananaProVip"},{"$ref":"#/components/schemas/NanoBanana2"},{"$ref":"#/components/schemas/NanoBanana21"},{"$ref":"#/components/schemas/NanoBanana2Lite"},{"$ref":"#/components/schemas/MiniMaxHailuo3Params"},{"$ref":"#/components/schemas/GeminiOmniFlashVideoParams"},{"$ref":"#/components/schemas/GeminiOmniFlashVideoEditParams"},{"$ref":"#/components/schemas/GptImage2Params"},{"$ref":"#/components/schemas/GptImage25Params"},{"$ref":"#/components/schemas/GptImage26Params"},{"$ref":"#/components/schemas/GptImage26FlareParams"},{"$ref":"#/components/schemas/GptImage26SunburstParams"},{"$ref":"#/components/schemas/GptImage2VipParams"},{"$ref":"#/components/schemas/Seedance2Params"},{"$ref":"#/components/schemas/Seedance2ProParams"},{"$ref":"#/components/schemas/Seedance2MiniParams"},{"$ref":"#/components/schemas/Seedance2FastParams"},{"$ref":"#/components/schemas/Seedance20EcoParams"},{"$ref":"#/components/schemas/Seedance25Params"},{"$ref":"#/components/schemas/Seedance25EcoParams"},{"$ref":"#/components/schemas/Wan30Params"},{"$ref":"#/components/schemas/Wan30PrimeParams"},{"$ref":"#/components/schemas/MiniMaxH3Params"},{"$ref":"#/components/schemas/MidjourneyV8RelaxParams"},{"$ref":"#/components/schemas/MidjourneyV8FastParams"},{"$ref":"#/components/schemas/MidjourneyV8TurboParams"},{"$ref":"#/components/schemas/SunoV6Params"},{"$ref":"#/components/schemas/Wan27TextToVideoParams"},{"$ref":"#/components/schemas/Wan27ImageToVideoParams"},{"$ref":"#/components/schemas/Seedream5LiteParams"},{"$ref":"#/components/schemas/Seedream5ProParams"},{"$ref":"#/components/schemas/Seedream55Params"},{"$ref":"#/components/schemas/Kling4FlashParams"},{"$ref":"#/components/schemas/Seedance25FlashParams"},{"$ref":"#/components/schemas/KlingV3Params"},{"$ref":"#/components/schemas/KlingV3ProParams"},{"$ref":"#/components/schemas/Kling4Params"},{"$ref":"#/components/schemas/Kling4OmniParams"},{"$ref":"#/components/schemas/Magi2Params"}],"title":"Params","description":"Параметры модели. Схема выбирается по model_name; список моделей и цены — GET /public/models.","discriminator":{"propertyName":"model_name","mapping":{"gemini-omni-flash-video":"#/components/schemas/GeminiOmniFlashVideoParams","gemini-omni-flash-video-edit":"#/components/schemas/GeminiOmniFlashVideoEditParams","gpt-image-2":"#/components/schemas/GptImage2Params","gpt-image-2-vip":"#/components/schemas/GptImage2VipParams","gpt-image-2.5":"#/components/schemas/GptImage25Params","gpt-image-2.6":"#/components/schemas/GptImage26Params","gpt-image-2.6-flare":"#/components/schemas/GptImage26FlareParams","gpt-image-2.6-sunburst":"#/components/schemas/GptImage26SunburstParams","kling-o1":"#/components/schemas/KlingO1GenParams","kling-o1-edit":"#/components/schemas/KlingO1EditParams","kling-o3":"#/components/schemas/KlingO3Params","kling-o3-pro":"#/components/schemas/KlingO3ProParams","kling-v2.1-master":"#/components/schemas/KlingV21MasterNewParams","kling-v2.1-pro":"#/components/schemas/KlingV21ProNewParams","kling-v2.1-standard":"#/components/schemas/KlingV21StandardNewParams","kling-v2.5-pro":"#/components/schemas/KlingV25ProParams","kling-v2.5-standard":"#/components/schemas/KlingV25StandardParams","kling-v2.6":"#/components/schemas/KlingV26Params","kling-v2.6-motion-1080p":"#/components/schemas/KlingMotion1080Params","kling-v2.6-motion-720p":"#/components/schemas/KlingMotion720Params","kling-v3":"#/components/schemas/KlingV3Params","kling-v3-pro":"#/components/schemas/KlingV3ProParams","kling-v4":"#/components/schemas/Kling4Params","kling-v4-flash":"#/components/schemas/Kling4FlashParams","kling-v4-omni":"#/components/schemas/Kling4OmniParams","magi-2":"#/components/schemas/Magi2Params","midjourney-v8-fast":"#/components/schemas/MidjourneyV8FastParams","midjourney-v8-relax":"#/components/schemas/MidjourneyV8RelaxParams","midjourney-v8-turbo":"#/components/schemas/MidjourneyV8TurboParams","minimax-3-hailuo":"#/components/schemas/MiniMaxHailuo3Params","minimax-h3":"#/components/schemas/MiniMaxH3Params","nano-banana":"#/components/schemas/NanoBanana","nano-banana-2":"#/components/schemas/NanoBanana2","nano-banana-2-lite":"#/components/schemas/NanoBanana2Lite","nano-banana-2.1":"#/components/schemas/NanoBanana21","nano-banana-pro":"#/components/schemas/NanoBananaPro","nano-banana-pro-vip":"#/components/schemas/NanoBananaProVip","seedance-2.0":"#/components/schemas/Seedance2Params","seedance-2.0-eco":"#/components/schemas/Seedance20EcoParams","seedance-2.0-fast":"#/components/schemas/Seedance2FastParams","seedance-2.0-mini":"#/components/schemas/Seedance2MiniParams","seedance-2.0-pro":"#/components/schemas/Seedance2ProParams","seedance-2.5":"#/components/schemas/Seedance25Params","seedance-2.5-eco":"#/components/schemas/Seedance25EcoParams","seedance-2.5-flash":"#/components/schemas/Seedance25FlashParams","seedream-5.0-lite":"#/components/schemas/Seedream5LiteParams","seedream-5.0-pro":"#/components/schemas/Seedream5ProParams","seedream-5.5":"#/components/schemas/Seedream55Params","suno-v6":"#/components/schemas/SunoV6Params","veo-3-fast":"#/components/schemas/Veo3FastParams","veo-3-quality":"#/components/schemas/Veo3QualityParams","veo-3.1-fast":"#/components/schemas/Veo31Params","veo-3.1-lite":"#/components/schemas/Veo31Params","veo-3.1-quality":"#/components/schemas/Veo31Params","veo-extend":"#/components/schemas/VeoExtendParams","wan-3.0":"#/components/schemas/Wan30Params","wan-3.0-prime":"#/components/schemas/Wan30PrimeParams","wan/2-7-image-to-video":"#/components/schemas/Wan27ImageToVideoParams","wan/2-7-text-to-video":"#/components/schemas/Wan27TextToVideoParams"}}}},"type":"object","required":["params"],"title":"GenerateRequest"},"GptImage25Params":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Промпт для генерации или редактирования изображения."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gpt-image-2.5","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"auto"},"resolution":{"type":"string","const":"1K","title":"Resolution","description":"Разрешение результата: модель поддерживает только 1K.","default":"1K"},"image_size":{"anyOf":[{"type":"string","const":"1K"},{"type":"null"}],"title":"Image Size","description":"Синоним resolution; допускается только 1K."},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","description":"Качество генерации.","default":"auto"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"До четырёх изображений-референсов: URL или base64."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Одно изображение-референс; нельзя вместе с image_urls."}},"additionalProperties":false,"type":"object","required":["prompt","model_name"],"title":"GptImage25Params","examples":[{"aspect_ratio":"1:1","model_name":"gpt-image-2.5","prompt":"Studio photograph of a blue ceramic mug on a white background","resolution":"1K"}],"x-nexus-rules":["prompt не может быть пустым.","image_url и image_urls вместе нельзя."]},"GptImage26FlareParams":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Промпт для генерации или редактирования изображения."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gpt-image-2.6-flare","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"auto"},"resolution":{"type":"string","const":"1K","title":"Resolution","description":"Разрешение результата: модель поддерживает только 1K.","default":"1K"},"image_size":{"anyOf":[{"type":"string","const":"1K"},{"type":"null"}],"title":"Image Size","description":"Синоним resolution; допускается только 1K."},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","description":"Качество генерации.","default":"auto"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"До четырёх изображений-референсов: URL или base64."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Одно изображение-референс; нельзя вместе с image_urls."},"output_format":{"type":"string","const":"gif","title":"Output Format","description":"Формат файла результата.","default":"gif"}},"additionalProperties":false,"type":"object","required":["prompt","model_name"],"title":"GptImage26FlareParams","examples":[{"aspect_ratio":"1:1","model_name":"gpt-image-2.6-flare","output_format":"gif","prompt":"A blue geometric star gently rotating","resolution":"1K"}],"x-nexus-rules":["prompt не может быть пустым.","image_url и image_urls вместе нельзя."]},"GptImage26Params":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Промпт для генерации или редактирования изображения."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gpt-image-2.6","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"auto"},"resolution":{"type":"string","const":"1K","title":"Resolution","description":"Разрешение результата: модель поддерживает только 1K.","default":"1K"},"image_size":{"anyOf":[{"type":"string","const":"1K"},{"type":"null"}],"title":"Image Size","description":"Синоним resolution; допускается только 1K."},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","description":"Качество генерации.","default":"auto"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"До четырёх изображений-референсов: URL или base64."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Одно изображение-референс; нельзя вместе с image_urls."},"output_format":{"type":"string","enum":["png","gif"],"title":"Output Format","description":"Формат файла результата.","default":"png"}},"additionalProperties":false,"type":"object","required":["prompt","model_name"],"title":"GptImage26Params","examples":[{"aspect_ratio":"1:1","model_name":"gpt-image-2.6","output_format":"png","prompt":"A blue geometric star on a white background","resolution":"1K"}],"x-nexus-rules":["prompt не может быть пустым.","image_url и image_urls вместе нельзя."]},"GptImage26SunburstParams":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Промпт для генерации или редактирования изображения."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gpt-image-2.6-sunburst","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"auto"},"resolution":{"type":"string","const":"1K","title":"Resolution","description":"Разрешение результата: модель поддерживает только 1K.","default":"1K"},"image_size":{"anyOf":[{"type":"string","const":"1K"},{"type":"null"}],"title":"Image Size","description":"Синоним resolution; допускается только 1K."},"quality":{"type":"string","enum":["auto","low","medium","high"],"title":"Quality","description":"Качество генерации.","default":"auto"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"До четырёх изображений-референсов: URL или base64."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Одно изображение-референс; нельзя вместе с image_urls."},"output_format":{"type":"string","const":"gif","title":"Output Format","description":"Формат файла результата.","default":"gif"}},"additionalProperties":false,"type":"object","required":["prompt","model_name"],"title":"GptImage26SunburstParams","examples":[{"aspect_ratio":"1:1","model_name":"gpt-image-2.6-sunburst","output_format":"gif","prompt":"A blue geometric star gently rotating","resolution":"1K"}],"x-nexus-rules":["prompt не может быть пустым.","image_url и image_urls вместе нельзя."]},"GptImage2Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gpt-image-2","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["auto","1:1","3:2","2:3","16:9","9:16","5:4","4:5","4:3","3:4","21:9","9:21","1:3","3:1","2:1","1:2"],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"Список URL изображений для референса (b64/URL)"}},"type":"object","required":["prompt","model_name"],"title":"GptImage2Params","examples":[{"aspect_ratio":"1:1","image_urls":["https://example.com/images/reference.png"],"model_name":"gpt-image-2","prompt":"A cute cat playing on the grass"}]},"GptImage2VipParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"gpt-image-2-vip","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["auto","1:1","3:2","2:3","16:9","9:16","5:4","4:5","4:3","3:4","21:9","9:21","1:3","3:1","2:1","1:2"],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"Список URL изображений для референса (b64/URL)"}},"type":"object","required":["prompt","model_name"],"title":"GptImage2VipParams","examples":[{"aspect_ratio":"3:2","model_name":"gpt-image-2-vip","prompt":"A watercolor illustration of a lighthouse on a cliff"}]},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageDataItem":{"properties":{"url":{"type":"string","title":"Url","description":"Ссылка на готовое изображение."}},"type":"object","required":["url"],"title":"ImageDataItem"},"ImagesGenerationsRequest":{"properties":{"model":{"type":"string","title":"Model","description":"Имя модели (см. GET /v1/models)"},"prompt":{"type":"string","title":"Prompt","description":"Описание изображения."},"n":{"type":"integer","maximum":1.0,"minimum":1.0,"title":"N","description":"Сколько изображений вернуть: поддерживается только 1.","default":1},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size","description":"WxH, например 1024x1024. Переводится в aspect_ratio модели."},"quality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality","description":"Для Seedream Pro: basic (1K) или high (2K). Зависит от модели."},"response_format":{"anyOf":[{"type":"string","const":"url"},{"type":"null"}],"title":"Response Format","description":"Только url (b64_json не поддерживается).","default":"url"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид, если модель его поддерживает."}},"additionalProperties":true,"type":"object","required":["model","prompt"],"title":"ImagesGenerationsRequest"},"ImagesGenerationsResponse":{"properties":{"created":{"type":"integer","title":"Created","description":"Время создания (Unix, секунды)."},"data":{"items":{"$ref":"#/components/schemas/ImageDataItem"},"type":"array","title":"Data","description":"Готовые изображения."}},"type":"object","required":["created","data"],"title":"ImagesGenerationsResponse"},"Kling4FlashParams":{"properties":{"model_name":{"type":"string","const":"kling-v4-flash","title":"Model Name"},"prompt":{"type":"string","maxLength":2500,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"resolution":{"type":"string","const":"720p","title":"Resolution","description":"Разрешение результата.","default":"720p"},"duration":{"type":"integer","maximum":20.0,"minimum":3.0,"title":"Duration","description":"Длительность результата в секундах.","default":5},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","21:9","auto"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"16:9"},"first_frame_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Frame Image","description":"Первый кадр видео."},"image_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Image Urls","description":"Изображения-референсы."},"video_urls":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Video Urls","description":"Видеореференсы (публичные URL)."},"audio_setting":{"type":"string","enum":["auto","origin"],"title":"Audio Setting","description":"Звук результата: auto — сгенерировать, origin — взять из видеореференса.","default":"auto"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Публичный HTTPS-адрес для POST с результатом задачи. Подпись вебхука — см. GET /webhooks/secret."}},"additionalProperties":false,"type":"object","required":["model_name","prompt"],"title":"Kling4FlashParams","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"kling-v4-flash","prompt":"A hummingbird hovers next to a bright flower, macro shot"}],"x-nexus-rules":["prompt не может быть пустым.","first_frame_image нельзя совмещать с image_urls и video_urls.","Всего не больше 15 референсов (image_urls + video_urls).","audio_setting=origin требует video_urls."]},"Kling4Image":{"properties":{"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Публичный HTTP(S) URL изображения."},"image_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Base64","description":"Изображение в base64 или data URI: JPEG, PNG или WebP до 100 МБ."}},"additionalProperties":false,"type":"object","title":"Kling4Image"},"Kling4OmniParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Публичный HTTPS-адрес для POST с результатом задачи. Подпись вебхука — см. GET /webhooks/secret."},"resolution":{"type":"string","enum":["720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"duration":{"type":"integer","maximum":30.0,"minimum":3.0,"title":"Duration","description":"Длительность результата в секундах.","default":5},"aspect_ratio":{"anyOf":[{"type":"string","enum":["auto","16:9","9:16","1:1","21:9"]},{"type":"null"}],"title":"Aspect Ratio","description":"Соотношение сторон результата."},"model_name":{"type":"string","const":"kling-v4-omni","title":"Model Name"},"prompt":{"type":"string","maxLength":2500,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"image_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Image Urls","description":"Изображения-референсы."},"images":{"items":{"$ref":"#/components/schemas/Kling4Image"},"type":"array","maxItems":10,"title":"Images","description":"Изображения-референсы объектами {image_url} или {image_base64}; нельзя вместе с image_urls."},"video_urls":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Video Urls","description":"До 5 видеореференсов (публичные URL), суммарно до 30 секунд. С видео оплачивается длительность результата плюс max(результат, вход)."},"keep_original_sound":{"type":"boolean","title":"Keep Original Sound","description":"Сохранить звук видеореференса.","default":false}},"additionalProperties":false,"type":"object","required":["model_name","prompt"],"title":"Kling4OmniParams","examples":[{"duration":5,"image_urls":["https://example.com/vase.png"],"keep_original_sound":false,"model_name":"kling-v4-omni","prompt":"Keep the vase appearance and use the camera movement from the video","resolution":"1080p","video_urls":["https://example.com/camera.mp4"]}],"x-nexus-rules":["prompt не может быть пустым.","image_urls и images вместе нельзя.","Референсы — только публичные HTTP(S) URL.","aspect_ratio=auto требует хотя бы один референс.","keep_original_sound требует video_urls.","Не больше 5 видео, суммарно до 30 секунд; всего не больше 15 файлов.","quality (720 или 1080) — синоним resolution."]},"Kling4Params":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Публичный HTTPS-адрес для POST с результатом задачи. Подпись вебхука — см. GET /webhooks/secret."},"resolution":{"type":"string","enum":["720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"duration":{"type":"integer","maximum":30.0,"minimum":3.0,"title":"Duration","description":"Длительность результата в секундах.","default":5},"aspect_ratio":{"anyOf":[{"type":"string","enum":["auto","16:9","9:16","1:1","21:9"]},{"type":"null"}],"title":"Aspect Ratio","description":"Соотношение сторон результата."},"model_name":{"type":"string","const":"kling-v4","title":"Model Name"},"prompt":{"type":"string","maxLength":2500,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать.","default":""},"first_frame":{"anyOf":[{"$ref":"#/components/schemas/Kling4Image"},{"type":"null"}],"description":"Первый кадр видео."},"middle_frames":{"items":{"$ref":"#/components/schemas/Kling4Image"},"type":"array","maxItems":8,"title":"Middle Frames","description":"Промежуточные ключевые кадры, до 8."},"last_frame":{"anyOf":[{"$ref":"#/components/schemas/Kling4Image"},{"type":"null"}],"description":"Последний кадр видео."},"negative_prompt":{"anyOf":[{"type":"string","maxLength":2500},{"type":"null"}],"title":"Negative Prompt","description":"Чего не должно быть в результате."},"cfg_scale":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Cfg Scale","description":"Насколько строго следовать промпту: от 0 до 1.","default":0.5}},"additionalProperties":false,"type":"object","required":["model_name"],"title":"Kling4Params","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"kling-v4","prompt":"A green glass vase on a wooden table, slow camera movement","resolution":"720p"}],"x-nexus-rules":["Нужен непустой prompt или хотя бы один ключевой кадр.","aspect_ratio=auto требует изображение.","middle_frames и last_frame требуют first_frame.","image_url — синоним first_frame; вместе нельзя.","quality (720 или 1080) — синоним resolution.","negative_prompt и cfg_scale, отличный от 0.5, сейчас не поддерживаются."]},"KlingMotion1080Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"video_url":{"type":"string","title":"Video Url","description":"Видео с движением (3-30 сек)."},"image_url":{"type":"string","title":"Image Url","description":"Изображение персонажа (голова/торс)."},"character_orientation":{"type":"string","enum":["video","image"],"title":"Character Orientation","description":"'video' (сложные движения, до 30с) или 'image' (движения камеры, до 10с)."},"duration":{"type":"integer","maximum":30.0,"minimum":3.0,"title":"Duration","description":"Длительность (3-30 сек)."},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид."},"model_name":{"type":"string","const":"kling-v2.6-motion-1080p","title":"Model Name"}},"type":"object","required":["prompt","video_url","image_url","character_orientation","duration","model_name"],"title":"KlingMotion1080Params","examples":[{"character_orientation":"image","duration":5,"image_url":"https://example.com/statue.jpg","model_name":"kling-v2.6-motion-1080p","prompt":"Camera panning around a statue","video_url":"https://example.com/pan_ref.mp4"}],"x-nexus-rules":["С character_orientation=image длительность не больше 10 секунд."]},"KlingMotion720Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"video_url":{"type":"string","title":"Video Url","description":"Видео с движением (3-30 сек)."},"image_url":{"type":"string","title":"Image Url","description":"Изображение персонажа (голова/торс)."},"character_orientation":{"type":"string","enum":["video","image"],"title":"Character Orientation","description":"'video' (сложные движения, до 30с) или 'image' (движения камеры, до 10с)."},"duration":{"type":"integer","maximum":30.0,"minimum":3.0,"title":"Duration","description":"Длительность (3-30 сек)."},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид."},"model_name":{"type":"string","const":"kling-v2.6-motion-720p","title":"Model Name"}},"type":"object","required":["prompt","video_url","image_url","character_orientation","duration","model_name"],"title":"KlingMotion720Params","examples":[{"character_orientation":"video","duration":15,"image_url":"https://example.com/character.jpg","model_name":"kling-v2.6-motion-720p","prompt":"A character dancing hip-hop","video_url":"https://example.com/dance_ref.mp4"}],"x-nexus-rules":["С character_orientation=image длительность не больше 10 секунд."]},"KlingO1EditParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-o1-edit","title":"Model Name"},"video_url":{"type":"string","title":"Video Url","description":"Исходное видео для редактирования. (URL)"},"video_mode":{"type":"string","enum":["reference","transform"],"title":"Video Mode","description":"Режим редактирования: reference или transform.","default":"reference"},"keep_audio":{"type":"boolean","title":"Keep Audio","description":"Сохранить аудио исходного видео.","default":false},"mode":{"type":"string","enum":["std","pro"],"title":"Mode","description":"Качество: std (720p) или pro (1080p).","default":"pro"},"aspect_ratio":{"type":"string","enum":["1:1","9:16","16:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"16:9"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"Референсы стиля (до 4 шт)."}},"type":"object","required":["prompt","model_name","video_url"],"title":"KlingO1EditParams","examples":[{"aspect_ratio":"16:9","image_urls":["https://example.com/style_ref.jpg"],"mode":"pro","model_name":"kling-o1-edit","prompt":"Turn the scene into a van gogh painting style","video_url":"https://example.com/source_video.mp4"}]},"KlingO1GenParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-o1","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["1:1","9:16","16:9"],"title":"Aspect Ratio","description":"Соотношение сторон.","default":"16:9"},"duration":{"type":"integer","enum":[5,10],"title":"Duration","description":"Длительность видео (5 или 10 сек).","default":5},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Image Urls","description":"Список изображений для Image-to-Video (до 5)."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"Начальный кадр (альтернатива image_urls)."}},"type":"object","required":["prompt","model_name"],"title":"KlingO1GenParams","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"kling-o1","prompt":"A cinematic shot of a cat walking in slow motion"}],"x-nexus-rules":["image_urls и start_image_url вместе нельзя."]},"KlingO3Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-o3","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Image Urls","description":"Список URL изображений для Image-to-Video (до 5)."},"duration":{"type":"integer","enum":[5,10,15],"title":"Duration","description":"Длительность видео (5, 10 или 15 сек).","default":5},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect Ratio","description":"Соотношение сторон.","default":"16:9"}},"type":"object","required":["prompt","model_name"],"title":"KlingO3Params","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"kling-o3","prompt":"A cat walking in a garden, cinematic lighting"}]},"KlingO3ProParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-o3-pro","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Image Urls","description":"Список URL изображений для Image-to-Video (до 5)."},"duration":{"type":"integer","enum":[5,10,15],"title":"Duration","description":"Длительность видео (5, 10 или 15 сек).","default":5},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect Ratio","description":"Соотношение сторон.","default":"16:9"}},"type":"object","required":["prompt","model_name"],"title":"KlingO3ProParams","examples":[{"aspect_ratio":"16:9","duration":10,"image_urls":["https://example.com/reference.jpg"],"model_name":"kling-o3-pro","prompt":"A drone shot of a coastal city at golden hour, ultra detailed"}]},"KlingV21MasterNewParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-v2.1-master","title":"Model Name"},"start_image_url":{"type":"string","title":"Start Image Url","description":"URL начального кадра."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL конечного кадра (для плавного перехода)."},"duration":{"type":"integer","enum":[5,10],"title":"Duration","description":"Длительность (5 или 10 сек).","default":5},"enhance_prompt":{"type":"boolean","title":"Enhance Prompt","description":"Авто-улучшение промпта.","default":true},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид генерации."}},"type":"object","required":["prompt","model_name","start_image_url"],"title":"KlingV21MasterNewParams","examples":[{"duration":5,"end_image_url":"https://example.com/watch_zoom.jpg","enhance_prompt":true,"model_name":"kling-v2.1-master","prompt":"High-end cinematic commercial of a luxury watch","start_image_url":"https://example.com/watch.jpg"}]},"KlingV21ProNewParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-v2.1-pro","title":"Model Name"},"start_image_url":{"type":"string","title":"Start Image Url","description":"URL/b64 начального кадра."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/b64 конечного кадра (только для Pro)."},"duration":{"type":"integer","enum":[5,10],"title":"Duration","description":"Длительность (5 или 10 сек).","default":5},"enhance_prompt":{"type":"boolean","title":"Enhance Prompt","description":"Авто-улучшение промпта.","default":true},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид генерации."}},"type":"object","required":["prompt","model_name","start_image_url"],"title":"KlingV21ProNewParams","examples":[{"duration":10,"end_image_url":"https://example.com/dance_end.jpg","enhance_prompt":true,"model_name":"kling-v2.1-pro","prompt":"A couple dancing in a ballroom, smooth motion","start_image_url":"https://example.com/dance_start.jpg"}]},"KlingV21StandardNewParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-v2.1-standard","title":"Model Name"},"start_image_url":{"type":"string","title":"Start Image Url","description":"URL/b64 начального кадра."},"duration":{"type":"integer","enum":[5,10],"title":"Duration","description":"Длительность (5 или 10 сек).","default":5},"enhance_prompt":{"type":"boolean","title":"Enhance Prompt","description":"Авто-улучшение промпта.","default":true},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид генерации."}},"type":"object","required":["prompt","model_name","start_image_url"],"title":"KlingV21StandardNewParams","examples":[{"duration":5,"enhance_prompt":true,"model_name":"kling-v2.1-standard","prompt":"A medieval castle on a hill, cinematic lighting","start_image_url":"https://example.com/castle.jpg"}]},"KlingV25ProParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-v2.5-pro","title":"Model Name"},"start_image_url":{"type":"string","title":"Start Image Url","description":"URL/b64 начального кадра."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/b64 конечного кадра (для морфинга)."},"duration":{"type":"integer","enum":[5,10],"title":"Duration","description":"Длительность видео (секунды).","default":5},"enhance_prompt":{"type":"boolean","title":"Enhance Prompt","description":"Авто-улучшение промпта.","default":true},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид генерации."}},"type":"object","required":["prompt","model_name","start_image_url"],"title":"KlingV25ProParams","examples":[{"duration":10,"end_image_url":"https://example.com/flower_bloom.jpg","enhance_prompt":true,"model_name":"kling-v2.5-pro","prompt":"A flower blooming in fast motion","start_image_url":"https://example.com/flower_bud.jpg"}]},"KlingV25StandardParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-v2.5-standard","title":"Model Name"},"start_image_url":{"type":"string","title":"Start Image Url","description":"URL/b64 начального кадра."},"duration":{"type":"integer","enum":[5,10],"title":"Duration","description":"Длительность видео (секунды).","default":5},"enhance_prompt":{"type":"boolean","title":"Enhance Prompt","description":"Авто-улучшение промпта.","default":true},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид генерации."}},"type":"object","required":["prompt","model_name","start_image_url"],"title":"KlingV25StandardParams","examples":[{"duration":5,"enhance_prompt":true,"model_name":"kling-v2.5-standard","prompt":"A cinematic shot of a samurai walking in neon rain","start_image_url":"https://example.com/samurai_start.jpg"}]},"KlingV26Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"kling-v2.6","title":"Model Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"URL/b64 изображения для анимации (Image-to-Video)."},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16"],"title":"Aspect Ratio","description":"Соотношение сторон (игнорируется, если передано image_url).","default":"16:9"},"duration":{"type":"integer","title":"Duration","description":"Длительность видео в секундах (обычно 5 или 10).","default":5},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"Чего избегать в видео."},"enhance_prompt":{"type":"boolean","title":"Enhance Prompt","description":"Улучшать промпт нейросетью.","default":true},"sound":{"type":"boolean","title":"Sound","description":"Генерировать звуковое сопровождение.","default":true}},"type":"object","required":["prompt","model_name"],"title":"KlingV26Params","examples":[{"aspect_ratio":"16:9","duration":5,"enhance_prompt":true,"image_url":"https://example.com/samurai.jpg","model_name":"kling-v2.6","prompt":"A cyberpunk samurai walking in rain, neon lights","sound":true}]},"KlingV3Params":{"properties":{"prompt":{"type":"string","maxLength":2500,"minLength":1,"title":"Prompt","description":"Описание видео (1-2500 символов)."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":2500},{"type":"null"}],"title":"Negative Prompt","description":"Что не должно быть в видео."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"URL/Base64 для image-to-video. Если указан, aspect_ratio игнорируется."},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect Ratio","description":"Соотношение сторон (игнорируется при image-to-video).","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":3.0,"title":"Duration","description":"Длительность видео в секундах (3-15).","default":5},"cfg_scale":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Cfg Scale","description":"Креативность vs. строгое следование промпту (0.0-1.0).","default":0.5},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид для воспроизводимости."},"model_name":{"type":"string","const":"kling-v3","title":"Model Name"}},"type":"object","required":["prompt","model_name"],"title":"KlingV3Params","examples":[{"aspect_ratio":"16:9","cfg_scale":0.5,"duration":5,"model_name":"kling-v3","prompt":"A golden retriever running through a sunflower field at sunset, cinematic shot"}]},"KlingV3ProParams":{"properties":{"prompt":{"type":"string","maxLength":2500,"minLength":1,"title":"Prompt","description":"Описание видео (1-2500 символов)."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"negative_prompt":{"anyOf":[{"type":"string","maxLength":2500},{"type":"null"}],"title":"Negative Prompt","description":"Что не должно быть в видео."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"URL/Base64 для image-to-video. Если указан, aspect_ratio игнорируется."},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1"],"title":"Aspect Ratio","description":"Соотношение сторон (игнорируется при image-to-video).","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":3.0,"title":"Duration","description":"Длительность видео в секундах (3-15).","default":5},"cfg_scale":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Cfg Scale","description":"Креативность vs. строгое следование промпту (0.0-1.0).","default":0.5},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид для воспроизводимости."},"model_name":{"type":"string","const":"kling-v3-pro","title":"Model Name"}},"type":"object","required":["prompt","model_name"],"title":"KlingV3ProParams","examples":[{"cfg_scale":0.5,"duration":8,"image_url":"https://example.com/images/mountain.jpg","model_name":"kling-v3-pro","prompt":"A cinematic drone shot of mountains at sunrise, ultra-detailed"}]},"LongContextPricing":{"properties":{"promptTokensAbove":{"type":"integer","title":"Prompttokensabove","description":"Порог: число входных токенов, после которого действует тариф."},"appliesTo":{"type":"string","const":"whole_request","title":"Appliesto","default":"whole_request"},"inputPriceRubPerMTokens":{"type":"number","title":"Inputpricerubpermtokens","description":"Вход, ₽ за 1 млн токенов."},"outputPriceRubPerMTokens":{"type":"number","title":"Outputpricerubpermtokens","description":"Выход, ₽ за 1 млн токенов."},"cacheReadPriceRubPerMTokens":{"type":"number","title":"Cachereadpricerubpermtokens","description":"Чтение кэша, ₽ за 1 млн токенов."},"cacheCreationPriceRubPerMTokens":{"type":"number","title":"Cachecreationpricerubpermtokens","description":"Запись кэша, ₽ за 1 млн токенов."}},"type":"object","required":["promptTokensAbove","inputPriceRubPerMTokens","outputPriceRubPerMTokens","cacheReadPriceRubPerMTokens","cacheCreationPriceRubPerMTokens"],"title":"LongContextPricing","description":"Повышенный тариф для длинного запроса: применяется ко всем токенам запроса."},"Magi2Params":{"properties":{"model_name":{"type":"string","const":"magi-2","title":"Model Name"},"prompt":{"type":"string","maxLength":15000,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"duration":{"type":"integer","maximum":30.0,"minimum":4.0,"title":"Duration","description":"Длительность результата в секундах.","default":5},"resolution":{"type":"string","const":"1080p","title":"Resolution","description":"Разрешение результата.","default":"1080p"},"aspect_ratio":{"anyOf":[{"type":"string","enum":["auto","16:9","9:16","1:1","4:3","3:4","21:9"]},{"type":"null"}],"title":"Aspect Ratio","description":"Соотношение сторон результата."},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Сгенерировать звуковую дорожку.","default":true},"seed":{"type":"integer","maximum":2147483647.0,"minimum":-1.0,"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат.","default":-1},"first_frame_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Frame Image","description":"Первый кадр видео."},"last_frame_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Frame Image","description":"Последний кадр видео."},"image_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Image Urls","description":"Изображения-референсы."},"video_urls":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Video Urls","description":"Видеореференсы (публичные URL)."},"audio_urls":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Audio Urls","description":"Аудиореференсы (публичные URL)."},"omni_reference_task_type":{"type":"string","enum":["auto","reference"],"title":"Omni Reference Task Type","description":"Режим референсов: auto — по входным файлам, reference — использовать файлы как референсы.","default":"auto"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Публичный HTTPS-адрес для POST с результатом задачи. Подпись вебхука — см. GET /webhooks/secret."}},"additionalProperties":false,"type":"object","required":["model_name","prompt"],"title":"Magi2Params","examples":[{"aspect_ratio":"16:9","duration":5,"generate_audio":true,"model_name":"magi-2","prompt":"A ceramic cup on a wooden table, slow camera movement","resolution":"1080p"}],"x-nexus-rules":["prompt не может быть пустым.","last_frame_image требует first_frame_image.","Кадры нельзя совмещать с image_urls, video_urls, audio_urls и omni_reference_task_type=reference.","Соотношение 21:9 недоступно с кадрами.","Без видео, аудио и режима reference — не больше двух image_urls.","aspect_ratio=auto требует кадры.","Файлы — только публичные HTTP(S) URL."]},"MidjourneyV8FastParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"1:1"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"До 4 image-референсов по публичным URL или base64."},"model_name":{"type":"string","const":"midjourney-v8-fast","title":"Model Name"}},"type":"object","required":["prompt","model_name"],"title":"MidjourneyV8FastParams","examples":[{"aspect_ratio":"16:9","image_urls":["https://example.com/images/style-reference.jpg"],"model_name":"midjourney-v8-fast","prompt":"A modern house above the sea at dawn, architectural photography"}],"x-nexus-rules":["За задачу возвращается 4 изображения и сетка из них (grid_image_url)."]},"MidjourneyV8RelaxParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"1:1"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"До 4 image-референсов по публичным URL или base64."},"model_name":{"type":"string","const":"midjourney-v8-relax","title":"Model Name"}},"type":"object","required":["prompt","model_name"],"title":"MidjourneyV8RelaxParams","examples":[{"aspect_ratio":"1:1","model_name":"midjourney-v8-relax","prompt":"Minimalist editorial photograph of a ceramic chair in a sunlit studio"}],"x-nexus-rules":["За задачу возвращается 4 изображения и сетка из них (grid_image_url)."]},"MidjourneyV8TurboParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"1:1"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"До 4 image-референсов по публичным URL или base64."},"model_name":{"type":"string","const":"midjourney-v8-turbo","title":"Model Name"}},"type":"object","required":["prompt","model_name"],"title":"MidjourneyV8TurboParams","examples":[{"aspect_ratio":"9:16","model_name":"midjourney-v8-turbo","prompt":"A compact electric coupe in a clean futuristic city street"}],"x-nexus-rules":["За задачу возвращается 4 изображения и сетка из них (grid_image_url)."]},"MiniMaxH3Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"minimax-h3","title":"Model Name"},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Image Urls","description":"До 9 image-референсов."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Video Urls","description":"До 3 MP4/MOV видеореференсов."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Audio Urls","description":"До 3 MP3/WAV аудиореференсов."},"aspect_ratio":{"type":"string","enum":["adaptive","21:9","16:9","4:3","1:1","3:4","9:16"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":4.0,"title":"Duration","description":"Длительность результата в секундах (4–15).","default":5},"resolution":{"type":"string","enum":["768p","2k"],"title":"Resolution","description":"Разрешение результата.","default":"768p"}},"type":"object","required":["prompt","model_name"],"title":"MiniMaxH3Params","examples":[{"aspect_ratio":"16:9","duration":5,"image_urls":["https://example.com/images/style-reference.jpg"],"model_name":"minimax-h3","prompt":"A slow orbit around a glass sculpture in a quiet gallery","resolution":"768p"}],"x-nexus-rules":["end_image_url требует start_image_url.","Кадры нельзя совмещать с image-, video- и audio-референсами."]},"MiniMaxHailuo3Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"minimax-3-hailuo","title":"Model Name"},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL первого кадра для image-to-video."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL последнего кадра для frame-guided генерации."},"reference_image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reference Image Urls","description":"Референсные изображения персонажей или объектов."},"reference_video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reference Video Urls","description":"Референсные видео для продолжения или редактирования."},"reference_audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reference Audio Urls","description":"Референсное аудио для продолжения аудио-видео."},"aspect_ratio":{"type":"string","enum":["16:9","4:3","1:1","3:4","9:16","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон видео. Игнорируется при передаче первого или последнего кадра.","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":5.0,"title":"Duration","description":"Длительность видео в секундах: от 5 до 15.","default":5},"seed":{"anyOf":[{"type":"integer","maximum":4294967295.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Seed для воспроизводимой генерации."}},"type":"object","required":["prompt","model_name"],"title":"MiniMaxHailuo3Params","examples":[{"duration":6,"model_name":"minimax-3-hailuo","prompt":"The girl turns to the camera and smiles, soft daylight","start_image_url":"https://example.com/images/girl.jpg"}],"x-nexus-rules":["start_image_url и end_image_url нельзя совмещать с референсами.","end_image_url требует start_image_url.","Сейчас работают только reference_image_urls: с reference_video_urls, reference_audio_urls или seed задача завершится ошибкой, средства вернутся."]},"ModelDetail":{"properties":{"id":{"type":"string","title":"Id","description":"ID модели: model_name в POST /generate или model в /v1/*."},"name":{"type":"string","title":"Name","description":"Отображаемое имя."},"provider":{"type":"string","title":"Provider","description":"Всегда nexus."},"kind":{"type":"string","enum":["video","image","audio","llm"],"title":"Kind","description":"Тип модели."},"family":{"type":"string","title":"Family","description":"Семейство моделей (slug), например kling или seedance."},"familyName":{"type":"string","title":"Familyname","description":"Название семейства, например Kling."},"status":{"type":"string","enum":["active","legacy"],"title":"Status","description":"active — текущая модель; legacy — предыдущая версия: работает, но в каталогах не показывается, переходите на replacement.","default":"active"},"replacement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement","description":"Модель, на которую стоит перейти (для status=legacy)."},"inputs":{"items":{"type":"string","enum":["text","image","video","audio"]},"type":"array","title":"Inputs","description":"Что модель принимает на вход."},"outputs":{"items":{"type":"string","enum":["text","image","video","audio"]},"type":"array","title":"Outputs","description":"Что модель возвращает."},"paramsSchema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paramsschema","description":"Имя схемы параметров в components.schemas OpenAPI (/openapi.public.json)."},"unit":{"type":"string","enum":["sec","shot","request","token"],"title":"Unit","description":"Единица цены: sec — секунда, shot — изображение или генерация, request — запрос, token — 1 млн токенов."},"priceRub":{"type":"number","title":"Pricerub","description":"Базовая цена за единицу, ₽. Для LLM — вход за 1 млн токенов."},"pricingOptions":{"items":{"$ref":"#/components/schemas/PricingOption"},"type":"array","title":"Pricingoptions","description":"Тарифы по разрешениям и режимам."},"inputPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Inputpricerubpermtokens","description":"LLM: вход, ₽ за 1 млн токенов."},"outputPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Outputpricerubpermtokens","description":"LLM: выход, ₽ за 1 млн токенов."},"cacheReadPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cachereadpricerubpermtokens","description":"LLM: чтение кэша, ₽ за 1 млн токенов."},"cacheCreationPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cachecreationpricerubpermtokens","description":"LLM: запись кэша, ₽ за 1 млн токенов."},"supportsVision":{"type":"boolean","title":"Supportsvision","description":"LLM принимает изображения в messages.","default":false},"longContextPricing":{"anyOf":[{"$ref":"#/components/schemas/LongContextPricing"},{"type":"null"}],"description":"LLM: тариф длинного запроса."},"billingBasis":{"anyOf":[{"type":"string","enum":["output_duration","source_duration","fixed_request","output_image"]},{"type":"null"}],"title":"Billingbasis","description":"Что оплачивается, если у модели нет pricingOptions (значения — как у PricingOption)."},"defaultPricingOptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Defaultpricingoptionid","description":"Тариф, который соответствует priceRub."},"listed":{"type":"boolean","title":"Listed","description":"Показывать в каталогах. false — модель работает и доступна по ID, но в списках её не показывают (предыдущие версии и скрытые модели).","default":true},"featured":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Featured","description":"Место в подборке избранных моделей, 1 — первое."},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagline","description":"Одна строка о модели."},"taglineEn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taglineen","description":"Слоган на английском."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Теги возможностей."},"releasedAt":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Releasedat","description":"Дата появления модели в NexusAPI."},"preview":{"anyOf":[{"$ref":"#/components/schemas/ModelPreview"},{"type":"null"}],"description":"Превью: кадр работы модели."},"hasDescription":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hasdescription","description":"Есть подробное описание — в GET /public/models/{model_id}."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Описание модели, Markdown."},"descriptionEn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descriptionen","description":"Описание на английском, Markdown."}},"type":"object","required":["id","name","provider","kind","family","familyName","unit","priceRub"],"title":"ModelDetail","description":"Модель из каталога с подробным описанием."},"ModelInfo":{"properties":{"id":{"type":"string","title":"Id","description":"ID модели: model_name в POST /generate или model в /v1/*."},"name":{"type":"string","title":"Name","description":"Отображаемое имя."},"provider":{"type":"string","title":"Provider","description":"Всегда nexus."},"kind":{"type":"string","enum":["video","image","audio","llm"],"title":"Kind","description":"Тип модели."},"family":{"type":"string","title":"Family","description":"Семейство моделей (slug), например kling или seedance."},"familyName":{"type":"string","title":"Familyname","description":"Название семейства, например Kling."},"status":{"type":"string","enum":["active","legacy"],"title":"Status","description":"active — текущая модель; legacy — предыдущая версия: работает, но в каталогах не показывается, переходите на replacement.","default":"active"},"replacement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement","description":"Модель, на которую стоит перейти (для status=legacy)."},"inputs":{"items":{"type":"string","enum":["text","image","video","audio"]},"type":"array","title":"Inputs","description":"Что модель принимает на вход."},"outputs":{"items":{"type":"string","enum":["text","image","video","audio"]},"type":"array","title":"Outputs","description":"Что модель возвращает."},"paramsSchema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paramsschema","description":"Имя схемы параметров в components.schemas OpenAPI (/openapi.public.json)."},"unit":{"type":"string","enum":["sec","shot","request","token"],"title":"Unit","description":"Единица цены: sec — секунда, shot — изображение или генерация, request — запрос, token — 1 млн токенов."},"priceRub":{"type":"number","title":"Pricerub","description":"Базовая цена за единицу, ₽. Для LLM — вход за 1 млн токенов."},"pricingOptions":{"items":{"$ref":"#/components/schemas/PricingOption"},"type":"array","title":"Pricingoptions","description":"Тарифы по разрешениям и режимам."},"inputPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Inputpricerubpermtokens","description":"LLM: вход, ₽ за 1 млн токенов."},"outputPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Outputpricerubpermtokens","description":"LLM: выход, ₽ за 1 млн токенов."},"cacheReadPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cachereadpricerubpermtokens","description":"LLM: чтение кэша, ₽ за 1 млн токенов."},"cacheCreationPriceRubPerMTokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cachecreationpricerubpermtokens","description":"LLM: запись кэша, ₽ за 1 млн токенов."},"supportsVision":{"type":"boolean","title":"Supportsvision","description":"LLM принимает изображения в messages.","default":false},"longContextPricing":{"anyOf":[{"$ref":"#/components/schemas/LongContextPricing"},{"type":"null"}],"description":"LLM: тариф длинного запроса."},"billingBasis":{"anyOf":[{"type":"string","enum":["output_duration","source_duration","fixed_request","output_image"]},{"type":"null"}],"title":"Billingbasis","description":"Что оплачивается, если у модели нет pricingOptions (значения — как у PricingOption)."},"defaultPricingOptionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Defaultpricingoptionid","description":"Тариф, который соответствует priceRub."},"listed":{"type":"boolean","title":"Listed","description":"Показывать в каталогах. false — модель работает и доступна по ID, но в списках её не показывают (предыдущие версии и скрытые модели).","default":true},"featured":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Featured","description":"Место в подборке избранных моделей, 1 — первое."},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagline","description":"Одна строка о модели."},"taglineEn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taglineen","description":"Слоган на английском."},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Теги возможностей."},"releasedAt":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Releasedat","description":"Дата появления модели в NexusAPI."},"preview":{"anyOf":[{"$ref":"#/components/schemas/ModelPreview"},{"type":"null"}],"description":"Превью: кадр работы модели."},"hasDescription":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hasdescription","description":"Есть подробное описание — в GET /public/models/{model_id}."}},"type":"object","required":["id","name","provider","kind","family","familyName","unit","priceRub"],"title":"ModelInfo","description":"Модель в публичном каталоге: что умеет и сколько стоит."},"ModelPreview":{"properties":{"image":{"type":"string","title":"Image","description":"Картинка (https)."},"video":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video","description":"Короткое видео (https), если есть."}},"type":"object","required":["image"],"title":"ModelPreview","description":"Превью модели: кадр её работы."},"NanoBanana":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"nano-banana","title":"Model Name"},"image_urls":{"items":{"type":"string"},"type":"array","maxItems":4,"title":"Image Urls","description":"Изображения-референсы."},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"}},"type":"object","required":["prompt","model_name"],"title":"NanoBanana","examples":[{"image_urls":["https://example.com/images/banana.png","https://example.com/images/apple.png"],"model_name":"nano-banana","prompt":"combine photos"}]},"NanoBanana2":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"nano-banana-2","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"Список референсов (b64/URL)"},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","description":"Разрешение итогового изображения.","default":"1K"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"}},"type":"object","required":["prompt","model_name"],"title":"NanoBanana2","examples":[{"image_urls":["https://example.com/images/banana.png","https://example.com/images/apple.png"],"model_name":"nano-banana-2","prompt":"combine photos"}]},"NanoBanana21":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"nano-banana-2.1","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"Список референсов (b64/URL)"},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","description":"Разрешение итогового изображения.","default":"1K"},"aspect_ratio":{"anyOf":[{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"]},{"type":"string","enum":["1:4","4:1","1:8","8:1"]}],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"}},"type":"object","required":["prompt","model_name"],"title":"NanoBanana21","examples":[{"aspect_ratio":"1:1","image_size":"2K","image_urls":[],"model_name":"nano-banana-2.1","prompt":"A studio photograph of a green glass vase on a white background"}]},"NanoBanana2Lite":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"nano-banana-2-lite","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"Список референсов (b64/URL)"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"}},"type":"object","required":["prompt","model_name"],"title":"NanoBanana2Lite","examples":[{"image_urls":["https://example.com/images/banana.png","https://example.com/images/apple.png"],"model_name":"nano-banana-2-lite","prompt":"combine photos"}]},"NanoBananaPro":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"nano-banana-pro","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4},{"type":"null"}],"title":"Image Urls","description":"Список референсов (b64/URL)"},"image_size":{"type":"string","enum":["1K","2K","4K"],"title":"Image Size","description":"Разрешение итогового изображения.","default":"1K"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"}},"type":"object","required":["prompt","model_name"],"title":"NanoBananaPro","examples":[{"image_urls":["https://example.com/images/banana.png","https://example.com/images/apple.png"],"model_name":"nano-banana-pro","prompt":"combine photos"}]},"NanoBananaProVip":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"nano-banana-pro-vip","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":14},{"type":"null"}],"title":"Image Urls","description":"До 14 референсов (b64/URL)"},"image_size":{"type":"string","enum":["1K","2K"],"title":"Image Size","description":"Разрешение итогового изображения.","default":"1K"},"aspect_ratio":{"type":"string","enum":["auto","1:1","16:9","9:16","4:3","3:4","3:2","2:3","5:4","4:5","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон итогового изображения.","default":"auto"}},"type":"object","required":["prompt","model_name"],"title":"NanoBananaProVip","examples":[{"aspect_ratio":"4:3","image_size":"2K","image_urls":["https://example.com/images/product.png","https://example.com/images/background.png"],"model_name":"nano-banana-pro-vip","prompt":"Combine the product and the background into one advertising photo"}]},"OpenAIErrorBody":{"properties":{"message":{"type":"string","title":"Message"},"type":{"type":"string","title":"Type","description":"invalid_request_error, billing_error, not_found_error, api_error и т.п."},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Param"}},"type":"object","required":["message","type"],"title":"OpenAIErrorBody"},"OpenAIErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/OpenAIErrorBody"}},"type":"object","required":["error"],"title":"OpenAIErrorResponse","description":"Ошибка эндпоинтов /v1/* в формате OpenAI."},"OpenAIModel":{"properties":{"id":{"type":"string","title":"Id","description":"ID модели: model в /v1/* и model_name в POST /generate."},"object":{"type":"string","const":"model","title":"Object","default":"model"},"created":{"type":"integer","title":"Created","description":"Не используется, постоянное значение."},"owned_by":{"type":"string","title":"Owned By","description":"Всегда nexus.","default":"nexus"}},"type":"object","required":["id","created"],"title":"OpenAIModel"},"OpenAIModelList":{"properties":{"object":{"type":"string","const":"list","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/OpenAIModel"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"OpenAIModelList"},"PricingOption":{"properties":{"id":{"type":"string","title":"Id","description":"ID тарифа. Формат служебный, показывать пользователю лучше label."},"label":{"type":"string","title":"Label","description":"Подпись тарифа для людей."},"priceRub":{"type":"number","title":"Pricerub","description":"Цена за единицу, ₽."},"unit":{"type":"string","enum":["sec","shot","request","token"],"title":"Unit","description":"Единица цены: sec — секунда, shot — изображение или генерация, request — запрос, token — 1 млн токенов."},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution","description":"Разрешение, к которому относится тариф."},"hasVideoReference":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hasvideoreference","description":"Тариф для запроса с видеореференсом."},"referenceRequired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Referencerequired","description":"Нужен ли референс для этого тарифа."},"billingBasis":{"anyOf":[{"type":"string","enum":["output_duration","input_output_duration","input_output_minimum","output_plus_max_input","source_duration","fixed_request","output_image","additional_input_image"]},{"type":"null"}],"title":"Billingbasis","description":"Что оплачивается: output_duration — секунды результата; input_output_duration — результат плюс видеореференсы; input_output_minimum — то же, но не меньше minimumOutputMultiplier × результат; output_plus_max_input — результат плюс max(результат, вход); source_duration — секунды исходного видео; fixed_request — фиксированная цена запроса; output_image — изображение; additional_input_image — каждое фото сверх includedInputImages."},"minimumOutputMultiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimumoutputmultiplier","description":"Минимум оплачиваемых секунд как множитель длительности результата."},"duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration","description":"Длительность, к которой относится тариф, секунд."},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","description":"Режим модели, к которому относится тариф."},"extendModel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extendmodel","description":"Версия модели продолжения (veo-extend)."},"sourceResolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourceresolution","description":"Разрешение исходного видео (veo-extend)."},"includedInputImages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Includedinputimages","description":"Сколько фото-референсов входит в цену."}},"type":"object","required":["id","label","priceRub","unit"],"title":"PricingOption","description":"Тариф модели: цена для конкретного разрешения, режима или доплаты."},"Seedance20EcoParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Текстовый промпт. Опционален при наличии image/video на входе."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра (image-to-video)."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра (только вместе со start_image_url)."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы (1–9). Несовместимо со start_image_url и end_image_url."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Video Urls","description":"До 3 публичных URL MP4/MOV, 2–15 секунд каждое, суммарно до 15 секунд. Длительность проверяется до списания."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Audio Urls","description":"До 3 публичных URL MP3/WAV, 2–15 секунд каждый, суммарно до 15 секунд. Нужен хотя бы один image- или видеореференс."},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect Ratio","description":"Соотношение сторон. 'adaptive' — модель сама подберёт.","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":4.0,"title":"Duration","description":"Длительность видео в секундах (4-15).","default":5},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Генерировать видео со звуком.","default":true},"watermark":{"type":"boolean","title":"Watermark","description":"Добавлять водяной знак.","default":false},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид для воспроизводимости (-1 или 0..2^32-1)."},"model_name":{"type":"string","const":"seedance-2.0-eco","title":"Model Name"},"resolution":{"type":"string","enum":["720p","1080p","4k"],"title":"Resolution","description":"Разрешение выходного видео: 720p, 1080p или 4k.","default":"720p"}},"type":"object","required":["model_name"],"title":"Seedance20EcoParams","examples":[{"aspect_ratio":"16:9","duration":5,"generate_audio":true,"model_name":"seedance-2.0-eco","prompt":"A quiet forest river at sunrise, natural camera motion","resolution":"720p"}],"x-nexus-rules":["image_urls нельзя совмещать со start_image_url и end_image_url.","end_image_url требует start_image_url.","Нужно хотя бы одно из: prompt, start_image_url, image_urls, video_urls.","audio_urls требуют хотя бы один image- или видеореференс.","Видео- и аудиореференсы: 2–15 секунд каждый, суммарно не больше 15 секунд на тип. Файлы проверяются до списания; нечитаемый файл — ответ 422."]},"Seedance25EcoParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"seedance-2.5-eco","title":"Model Name"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL первого кадра; требует end_image_url."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL последнего кадра; требует start_image_url."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Video Urls","description":"Видеореференсы: MP4/MOV/WebM, 2–30 секунд каждый, суммарно не больше 30 секунд; до 128 MiB на файл и 512 MiB суммарно. С video_urls оплачиваемые секунды = max(duration + ceil(сумма длительностей референсов), ceil(5 × duration / 3)) по тарифу «с видеореференсом» (pricingOptions в /public/models). Длительность файлов проверяется до списания; недоступный или некорректный файл — ответ 422. Фото- и аудиореференсы не добавляют оплачиваемых секунд."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Audio Urls","description":"Аудиореференсы (публичные URL)."},"aspect_ratio":{"type":"string","enum":["adaptive","1:1","3:4","4:3","9:16","16:9","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата; adaptive выбирается по референсам.","default":"adaptive"},"duration":{"type":"integer","maximum":30.0,"minimum":4.0,"title":"Duration","description":"Длительность видео в секундах (4-30).","default":4},"resolution":{"type":"string","enum":["720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Сгенерировать звуковую дорожку.","default":true},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":-1.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"content_filter":{"type":"boolean","title":"Content Filter","description":"Строгая проверка контента. По умолчанию выключена.","default":false}},"type":"object","required":["model_name"],"title":"Seedance25EcoParams","examples":[{"aspect_ratio":"9:16","content_filter":false,"duration":5,"image_urls":["https://example.com/images/street-reference.jpg"],"model_name":"seedance-2.5-eco","prompt":"Cinematic city street after rain, reflections in the pavement","resolution":"720p"}],"x-nexus-rules":["start_image_url и end_image_url передаются вместе.","Кадры (start_image_url, end_image_url) нельзя совмещать с image-, video- и audio-референсами.","В режиме кадров aspect_ratio должен быть adaptive.","prompt обязателен, кроме режима кадров.","Всего не больше 50 файлов-референсов."]},"Seedance25FlashParams":{"properties":{"model_name":{"type":"string","const":"seedance-2.5-flash","title":"Model Name"},"prompt":{"type":"string","maxLength":20000,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"duration":{"type":"integer","maximum":30.0,"minimum":4.0,"title":"Duration","description":"Длительность результата в секундах.","default":5},"aspect_ratio":{"type":"string","enum":["adaptive","1:1","3:4","4:3","9:16","16:9","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"adaptive"},"image_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Image Urls","description":"Изображения-референсы."},"video_urls":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Video Urls","description":"Видеореференсы (публичные URL)."},"audio_urls":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Audio Urls","description":"Аудиореференсы (публичные URL)."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"Первый кадр видео."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"Последний кадр видео."},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Сгенерировать звуковую дорожку.","default":true},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Публичный HTTPS-адрес для POST с результатом задачи. Подпись вебхука — см. GET /webhooks/secret."}},"additionalProperties":false,"type":"object","required":["model_name","prompt"],"title":"Seedance25FlashParams","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"seedance-2.5-flash","prompt":"A skateboarder rolls through an empty parking lot at sunset","resolution":"720p"}],"x-nexus-rules":["prompt не может быть пустым.","end_image_url требует start_image_url.","Кадры (start_image_url, end_image_url) нельзя совмещать с image-, video- и audio-референсами.","В режиме кадров aspect_ratio должен быть adaptive.","Файлы — публичные URL или asset://-идентификаторы; видео — только публичные URL."]},"Seedance25Params":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"seedance-2.5","title":"Model Name"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL первого кадра; требует end_image_url."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL последнего кадра; требует start_image_url."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Video Urls","description":"Видеореференсы: MP4/MOV/WebM, 2–30 секунд каждый, суммарно не больше 30 секунд; до 128 MiB на файл и 512 MiB суммарно. С video_urls оплачиваемые секунды = max(duration + ceil(сумма длительностей референсов), ceil(5 × duration / 3)) по тарифу «с видеореференсом» (pricingOptions в /public/models). Длительность файлов проверяется до списания; недоступный или некорректный файл — ответ 422. Фото- и аудиореференсы не добавляют оплачиваемых секунд."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Audio Urls","description":"Аудиореференсы (публичные URL)."},"aspect_ratio":{"type":"string","enum":["adaptive","1:1","3:4","4:3","9:16","16:9","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата; adaptive выбирается по референсам.","default":"adaptive"},"duration":{"type":"integer","maximum":30.0,"minimum":4.0,"title":"Duration","description":"Длительность видео в секундах (4-30).","default":4},"resolution":{"type":"string","enum":["480p","720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"480p"},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Сгенерировать звуковую дорожку.","default":true},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":-1.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"content_filter":{"type":"boolean","title":"Content Filter","description":"Строгая проверка контента. По умолчанию выключена.","default":false}},"type":"object","required":["model_name"],"title":"Seedance25Params","examples":[{"aspect_ratio":"9:16","content_filter":false,"duration":5,"image_urls":["https://example.com/images/reference.png"],"model_name":"seedance-2.5","prompt":"A calm coastal landscape at dawn, realistic footage","resolution":"480p"}],"x-nexus-rules":["start_image_url и end_image_url передаются вместе.","Кадры (start_image_url, end_image_url) нельзя совмещать с image-, video- и audio-референсами.","В режиме кадров aspect_ratio должен быть adaptive.","prompt обязателен, кроме режима кадров.","Всего не больше 50 файлов-референсов."]},"Seedance2FastParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Текстовый промпт. Опционален при наличии image/video на входе."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра (image-to-video)."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра (только вместе со start_image_url)."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы (1–9). Несовместимо со start_image_url и end_image_url."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Video Urls","description":"До 3 публичных URL MP4/MOV, 2–15 секунд каждое, суммарно до 15 секунд. Длительность проверяется до списания."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Audio Urls","description":"До 3 публичных URL MP3/WAV, 2–15 секунд каждый, суммарно до 15 секунд. Нужен хотя бы один image- или видеореференс."},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect Ratio","description":"Соотношение сторон. 'adaptive' — модель сама подберёт.","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":4.0,"title":"Duration","description":"Длительность видео в секундах (4-15).","default":5},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Генерировать видео со звуком.","default":true},"watermark":{"type":"boolean","title":"Watermark","description":"Добавлять водяной знак.","default":false},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид для воспроизводимости (-1 или 0..2^32-1)."},"model_name":{"type":"string","const":"seedance-2.0-fast","title":"Model Name"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","description":"Разрешение выходного видео. 1080p не поддерживается в fast-варианте.","default":"720p"}},"type":"object","required":["model_name"],"title":"Seedance2FastParams","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"seedance-2.0-fast","prompt":"The kitten is yawning at the camera","resolution":"720p","start_image_url":"https://example.com/images/kitten.jpg"}],"x-nexus-rules":["image_urls нельзя совмещать со start_image_url и end_image_url.","end_image_url требует start_image_url.","Нужно хотя бы одно из: prompt, start_image_url, image_urls, video_urls.","audio_urls требуют хотя бы один image- или видеореференс.","Видео- и аудиореференсы: 2–15 секунд каждый, суммарно не больше 15 секунд на тип. Файлы проверяются до списания; нечитаемый файл — ответ 422."]},"Seedance2MiniParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Текстовый промпт. Опционален при наличии image/video на входе."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра (image-to-video)."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра (только вместе со start_image_url)."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы (1–9). Несовместимо со start_image_url и end_image_url."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Video Urls","description":"До 3 публичных URL MP4/MOV, 2–15 секунд каждое, суммарно до 15 секунд. Длительность проверяется до списания."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Audio Urls","description":"До 3 публичных URL MP3/WAV, 2–15 секунд каждый, суммарно до 15 секунд. Нужен хотя бы один image- или видеореференс."},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect Ratio","description":"Соотношение сторон. 'adaptive' — модель сама подберёт.","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":4.0,"title":"Duration","description":"Длительность видео в секундах (4-15).","default":5},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Генерировать видео со звуком.","default":true},"watermark":{"type":"boolean","title":"Watermark","description":"Добавлять водяной знак.","default":false},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид для воспроизводимости (-1 или 0..2^32-1)."},"model_name":{"type":"string","const":"seedance-2.0-mini","title":"Model Name"},"resolution":{"type":"string","enum":["480p","720p"],"title":"Resolution","description":"Разрешение выходного видео.","default":"720p"}},"type":"object","required":["model_name"],"title":"Seedance2MiniParams","examples":[{"aspect_ratio":"9:16","duration":5,"model_name":"seedance-2.0-mini","prompt":"A hot air balloon rising over green hills at sunrise","resolution":"720p"}],"x-nexus-rules":["image_urls нельзя совмещать со start_image_url и end_image_url.","end_image_url требует start_image_url.","Нужно хотя бы одно из: prompt, start_image_url, image_urls, video_urls.","audio_urls требуют хотя бы один image- или видеореференс.","Видео- и аудиореференсы: 2–15 секунд каждый, суммарно не больше 15 секунд на тип. Файлы проверяются до списания; нечитаемый файл — ответ 422."]},"Seedance2Params":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Текстовый промпт. Опционален при наличии image/video на входе."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра (image-to-video)."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра (только вместе со start_image_url)."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы (1–9). Несовместимо со start_image_url и end_image_url."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Video Urls","description":"До 3 публичных URL MP4/MOV, 2–15 секунд каждое, суммарно до 15 секунд. Длительность проверяется до списания."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Audio Urls","description":"До 3 публичных URL MP3/WAV, 2–15 секунд каждый, суммарно до 15 секунд. Нужен хотя бы один image- или видеореференс."},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect Ratio","description":"Соотношение сторон. 'adaptive' — модель сама подберёт.","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":4.0,"title":"Duration","description":"Длительность видео в секундах (4-15).","default":5},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Генерировать видео со звуком.","default":true},"watermark":{"type":"boolean","title":"Watermark","description":"Добавлять водяной знак.","default":false},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид для воспроизводимости (-1 или 0..2^32-1)."},"model_name":{"type":"string","const":"seedance-2.0","title":"Model Name"},"resolution":{"type":"string","enum":["480p","720p","1080p","4k"],"title":"Resolution","description":"Разрешение выходного видео; 4K доступно для обычного Seedance 2.0.","default":"720p"}},"type":"object","required":["model_name"],"title":"Seedance2Params","examples":[{"aspect_ratio":"16:9","duration":5,"generate_audio":true,"model_name":"seedance-2.0","prompt":"A drone shot of a coastal city at golden hour, cinematic, ultra-detailed","resolution":"720p"}],"x-nexus-rules":["image_urls нельзя совмещать со start_image_url и end_image_url.","end_image_url требует start_image_url.","Нужно хотя бы одно из: prompt, start_image_url, image_urls, video_urls.","audio_urls требуют хотя бы один image- или видеореференс.","Видео- и аудиореференсы: 2–15 секунд каждый, суммарно не больше 15 секунд на тип. Файлы проверяются до списания; нечитаемый файл — ответ 422."]},"Seedance2ProParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Текстовый промпт. Опционален при наличии image/video на входе."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра (image-to-video)."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра (только вместе со start_image_url)."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":9},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы (1–9). Несовместимо со start_image_url и end_image_url."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Video Urls","description":"До 3 публичных URL MP4/MOV, 2–15 секунд каждое, суммарно до 15 секунд. Длительность проверяется до списания."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Audio Urls","description":"До 3 публичных URL MP3/WAV, 2–15 секунд каждый, суммарно до 15 секунд. Нужен хотя бы один image- или видеореференс."},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"title":"Aspect Ratio","description":"Соотношение сторон. 'adaptive' — модель сама подберёт.","default":"16:9"},"duration":{"type":"integer","maximum":15.0,"minimum":4.0,"title":"Duration","description":"Длительность видео в секундах (4-15).","default":5},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Генерировать видео со звуком.","default":true},"watermark":{"type":"boolean","title":"Watermark","description":"Добавлять водяной знак.","default":false},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид для воспроизводимости (-1 или 0..2^32-1)."},"model_name":{"type":"string","const":"seedance-2.0-pro","title":"Model Name"},"resolution":{"type":"string","enum":["480p","720p","1080p"],"title":"Resolution","description":"Разрешение выходного видео.","default":"720p"}},"type":"object","required":["model_name"],"title":"Seedance2ProParams","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"seedance-2.0-pro","prompt":"A chef plating a dessert in a modern kitchen, slow camera push-in","resolution":"1080p"}],"x-nexus-rules":["image_urls нельзя совмещать со start_image_url и end_image_url.","end_image_url требует start_image_url.","Нужно хотя бы одно из: prompt, start_image_url, image_urls, video_urls.","audio_urls требуют хотя бы один image- или видеореференс.","Видео- и аудиореференсы: 2–15 секунд каждый, суммарно не больше 15 секунд на тип. Файлы проверяются до списания; нечитаемый файл — ответ 422."]},"Seedream55Params":{"properties":{"model_name":{"type":"string","const":"seedream-5.5","title":"Model Name"},"prompt":{"type":"string","maxLength":4000,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"resolution":{"type":"string","enum":["1K","1.5K","2K"],"title":"Resolution","description":"Разрешение результата.","default":"1K"},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16","3:2","2:3","4:3","3:4","21:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"1:1"},"image_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Image Urls","description":"Изображения-референсы."},"output_format":{"type":"string","enum":["png","jpeg"],"title":"Output Format","description":"Формат файла результата.","default":"png"},"background":{"type":"string","enum":["auto","transparent","opaque"],"title":"Background","description":"Фон: auto, transparent (прозрачный) или opaque.","default":"auto"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Публичный HTTPS-адрес для POST с результатом задачи. Подпись вебхука — см. GET /webhooks/secret."}},"additionalProperties":false,"type":"object","required":["model_name","prompt"],"title":"Seedream55Params","examples":[{"aspect_ratio":"1:1","background":"transparent","model_name":"seedream-5.5","output_format":"png","prompt":"A minimalist logo of a mountain made of glass","resolution":"2K"}],"x-nexus-rules":["prompt не может быть пустым.","background=transparent работает только с output_format=png."]},"Seedream5LiteParams":{"properties":{"prompt":{"type":"string","maxLength":4000,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"seedream-5.0-lite","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":14},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы."},"resolution":{"type":"string","enum":["2K","3K"],"title":"Resolution","description":"Разрешение результата.","default":"3K"},"output_format":{"type":"string","enum":["jpeg","jpg","png"],"title":"Output Format","description":"Формат файла результата.","default":"png"},"max_sequential_images":{"type":"integer","maximum":15.0,"minimum":1.0,"title":"Max Sequential Images","description":"Сколько изображений сгенерировать за задачу.","default":1},"web_search":{"type":"boolean","const":false,"title":"Web Search","description":"Веб-поиск не поддерживается: допустимо только false.","default":false}},"type":"object","required":["prompt","model_name"],"title":"Seedream5LiteParams","examples":[{"model_name":"seedream-5.0-lite","output_format":"png","prompt":"A cozy reading nook with a window seat and plants, interior photography","resolution":"2K"}],"x-nexus-rules":["Референсов и результатов вместе не больше 15: len(image_urls) + max_sequential_images ≤ 15.","Веб-поиск не поддерживается."]},"Seedream5ProParams":{"properties":{"prompt":{"type":"string","maxLength":4000,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"seedream-5.0-pro","title":"Model Name"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Image Urls","description":"До 10 фото-референсов. Первое фото входит в цену изображения, со второго — доплата за каждое (тариф «Дополнительное фото» в /public/models)."},"resolution":{"type":"string","enum":["1K","2K"],"title":"Resolution","description":"Разрешение результата. Цена зависит от разрешения (см. /public/models).","default":"2K"},"aspect_ratio":{"type":"string","enum":["1:1","2:3","3:2","3:4","4:3","9:16","16:9"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"1:1"},"output_format":{"type":"string","enum":["jpeg","jpg","png"],"title":"Output Format","description":"Формат файла результата.","default":"png"}},"type":"object","required":["prompt","model_name"],"title":"Seedream5ProParams","examples":[{"aspect_ratio":"1:1","image_urls":["https://example.com/images/sneaker.png"],"model_name":"seedream-5.0-pro","prompt":"Place the sneaker on a concrete podium with soft studio light","resolution":"2K"}],"x-nexus-rules":["За задачу возвращается одно изображение.","image_url — то же, что image_urls из одного элемента; вместе нельзя.","Прозрачный фон и разбиение на слои не поддерживаются."]},"SunoV6Params":{"properties":{"prompt":{"type":"string","maxLength":3000,"minLength":1,"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"suno-v6","title":"Model Name"},"instrumental":{"type":"boolean","title":"Instrumental","description":"Сделать инструментальный трек без вокала.","default":false}},"type":"object","required":["prompt","model_name"],"title":"SunoV6Params","examples":[{"instrumental":false,"model_name":"suno-v6","prompt":"Warm cinematic synth-pop, 115 BPM, a clear uplifting chorus"}]},"TaskStatusResponse":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"ID задачи."},"status":{"type":"string","enum":["pending","processing","completed","failed","queued"],"title":"Status","description":"pending — задача ждёт очереди, processing — генерируется, completed — готово (см. result), failed — ошибка (см. error), удержанная сумма возвращена."},"result":{"anyOf":[{"properties":{"video_url":{"type":"string","description":"Ссылка на готовое видео."},"last_frame_url":{"type":"string","description":"Последний кадр видео, если модель его возвращает."}},"type":"object","required":["video_url"],"title":"VideoResult"},{"properties":{"image_urls":{"items":{"type":"string"},"type":"array","description":"Ссылки на готовые изображения."},"image_url":{"type":"string","description":"Первое изображение (Midjourney)."},"grid_image_url":{"type":"string","description":"Сетка из всех изображений (Midjourney)."}},"type":"object","required":["image_urls"],"title":"ImageResult"},{"properties":{"audio_url":{"type":"string","description":"Первый трек."},"audio_urls":{"items":{"type":"string"},"type":"array","description":"Все треки (у Suno — два)."}},"type":"object","required":["audio_url","audio_urls"],"title":"AudioResult"},{"type":"null"}],"title":"Result","description":"Результат готовой задачи (status=completed), иначе null. Форма зависит от типа модели: видео — video_url, изображения — image_urls, аудио — audio_url и audio_urls. Срок хранения файлов не гарантируется: сохраните нужные у себя."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Текст ошибки для status=failed."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Когда задача создана (UTC)."}},"type":"object","required":["task_id","status"],"title":"TaskStatusResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Veo31Params":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","enum":["veo-3.1-lite","veo-3.1-fast","veo-3.1-quality"],"title":"Model Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"URL стартового изображения."},"last_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Image Url","description":"URL конечного изображения; требует image_url."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Image Urls","description":"До трёх изображений-референсов."},"reference_characters":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":3},{"type":"null"}],"title":"Reference Characters","description":"Референсы персонажей для Lite и Fast."},"aspect_ratio":{"type":"string","enum":["16:9","9:16"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"16:9"},"duration":{"type":"integer","enum":[4,6,8],"title":"Duration","description":"Длительность результата в секундах.","default":8},"resolution":{"type":"string","enum":["720p","1080p","4k"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice","description":"Голос для озвучки."},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"allow_audio_filtered":{"type":"boolean","title":"Allow Audio Filtered","description":"Принять результат, у которого звук убран фильтром безопасности.","default":true}},"type":"object","required":["prompt","model_name"],"title":"Veo31Params","examples":[{"aspect_ratio":"16:9","duration":8,"model_name":"veo-3.1-fast","prompt":"A paper boat floating down a rainy street, cinematic close-up","resolution":"1080p"}],"x-nexus-rules":["last_image_url требует image_url.","image_url и last_image_url нельзя совмещать с image_urls и reference_characters.","reference_characters недоступны для veo-3.1-quality.","С image_urls или reference_characters duration должен быть 8."]},"Veo3FastParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"veo-3-fast","title":"Model Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"URL / Base 64 отправляемой картинки"},"last_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Image Url","description":"URL / Base 64 отправляемой картинки"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Image Urls","description":"Список URL (до 3-х) для генерации. Несовместимо с image_url/last_image_url."},"translate":{"type":"boolean","title":"Translate","description":"Перевести промпт на английский перед генерацией.","default":false},"aspect_ratio":{"anyOf":[{"type":"string","enum":["16:9","9:16"]},{"type":"null"}],"title":"Aspect Ratio","description":"Соотношение сторон для генерируемого видео. Если не указано, будет выбрано значение по умолчанию.","default":"16:9"}},"type":"object","required":["prompt","model_name"],"title":"Veo3FastParams","examples":[{"model_name":"veo-3-fast","prompt":"a corgi dog running on a beach","translate":true}],"x-nexus-rules":["image_urls нельзя совмещать с image_url и last_image_url."]},"Veo3QualityParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"veo-3-quality","title":"Model Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"URL / Base 64 отправляемой картинки"},"last_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Image Url","description":"URL / Base 64 отправляемой картинки"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":3},{"type":"null"}],"title":"Image Urls","description":"Список URL (до 3-х) для генерации. Несовместимо с image_url/last_image_url."},"translate":{"type":"boolean","title":"Translate","description":"Перевести промпт на английский перед генерацией.","default":false},"aspect_ratio":{"anyOf":[{"type":"string","enum":["16:9","9:16"]},{"type":"null"}],"title":"Aspect Ratio","description":"Соотношение сторон для генерируемого видео. Если не указано, будет выбрано значение по умолчанию.","default":"16:9"}},"type":"object","required":["prompt","model_name"],"title":"Veo3QualityParams","examples":[{"image_url":"https://example.com/images/lion_reference.jpg","model_name":"veo-3-quality","prompt":"A majestic lion surveying its kingdom from a cliff at sunrise, hyperrealistic, 8k","translate":false}],"x-nexus-rules":["image_urls нельзя совмещать с image_url и last_image_url."]},"VeoExtendParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"model_name":{"type":"string","const":"veo-extend","title":"Model Name"},"source_task_id":{"type":"string","title":"Source Task Id","description":"ID завершённой задачи Veo 3.1, которую нужно продолжить."},"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Промпт для продолжения видео."},"extend_model":{"type":"string","enum":["lite","fast","quality","lite-relaxed"],"title":"Extend Model","description":"Версия модели для продолжения.","default":"fast"},"duration":{"type":"integer","const":8,"title":"Duration","description":"Длительность результата в секундах.","default":8},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."}},"type":"object","required":["model_name","source_task_id","prompt"],"title":"VeoExtendParams","examples":[{"extend_model":"fast","model_name":"veo-extend","prompt":"The camera keeps moving forward along the street at night","source_task_id":"3f0c2a8e-6b1d-4c3e-9a51-2d7e8f4b6c10"}],"x-nexus-rules":["source_task_id — завершённая задача Veo 3.1 из вашего аккаунта. Продлить можно не каждую задачу: если продление недоступно, ответ 422.","Продолжение всегда длится 8 секунд."]},"VideoCreateRequest":{"properties":{"model":{"type":"string","title":"Model","description":"ID видеомодели (см. GET /v1/models)."},"prompt":{"type":"string","title":"Prompt","description":"Описание видео."},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size","description":"WxH, например 1920x1080"},"seconds":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Seconds","description":"Длительность в секундах. Допустимые значения зависят от модели: см. её схему параметров в POST /generate."},"quality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality","description":"Принимается и игнорируется."},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"Сид, если модель его поддерживает."},"input_reference":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array","maxItems":9,"minItems":1},{"type":"null"}],"title":"Input Reference","description":"URL изображения-референса. Для Seedance 2.0/Fast также массив до 9 URL изображений. Для режима first/last frame передавайте start_image_url/end_image_url через extra fields."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Image Urls","description":"Изображения-референсы; Seedance 2.0 и 2.0 Fast принимают до 9. Нельзя вместе с input_reference."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Video Urls","description":"Seedance 2.0 и 2.0 Fast: до 3 URL MP4/MOV, суммарно до 15 секунд."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Audio Urls","description":"Seedance 2.0 и 2.0 Fast: до 3 URL MP3/WAV, суммарно до 15 секунд. Нужны изображения или видео."},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution","description":"Для Seedance: 480p/720p/1080p. seedance-2.0-fast поддерживает только 480p и 720p; для 1080p используйте seedance-2.0 или seedance-2.0-pro."}},"additionalProperties":true,"type":"object","required":["model","prompt"],"title":"VideoCreateRequest"},"VideoErrorObject":{"properties":{"message":{"type":"string","title":"Message","description":"Текст ошибки."},"type":{"type":"string","title":"Type","description":"Тип ошибки в формате OpenAI.","default":"api_error"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Код ошибки, если есть."}},"type":"object","required":["message"],"title":"VideoErrorObject"},"VideoObject":{"properties":{"id":{"type":"string","title":"Id","description":"ID видео; это же task_id для GET /tasks/{task_id}."},"object":{"type":"string","const":"video","title":"Object","default":"video"},"model":{"type":"string","title":"Model","description":"ID модели."},"status":{"type":"string","enum":["queued","in_progress","completed","failed"],"title":"Status","description":"Статус генерации."},"progress":{"type":"integer","title":"Progress","description":"Прогресс, %: 0, 50 (генерируется) или 100.","default":0},"created_at":{"type":"integer","title":"Created At","description":"Время создания (Unix, секунды)."},"completed_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completed At","description":"Время завершения (Unix, секунды)."},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size","description":"Размер WxH, если задан в запросе."},"seconds":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seconds","description":"Длительность в секундах."},"quality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality","description":"Качество из запроса."},"error":{"anyOf":[{"$ref":"#/components/schemas/VideoErrorObject"},{"type":"null"}],"description":"Ошибка для status=failed."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Ссылка на готовое видео (расширение NexusAPI)."}},"type":"object","required":["id","model","status","created_at"],"title":"VideoObject"},"Wan27ImageToVideoParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"Чего не должно быть в результате."},"resolution":{"type":"string","enum":["720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"duration":{"type":"integer","maximum":10.0,"minimum":2.0,"title":"Duration","description":"Длительность результата в секундах.","default":5},"prompt_extend":{"type":"boolean","title":"Prompt Extend","description":"Автоматически дополнить промпт перед генерацией.","default":true},"watermark":{"type":"boolean","title":"Watermark","description":"Добавить водяной знак.","default":false},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"nsfw_checker":{"type":"boolean","title":"Nsfw Checker","description":"Проверить результат фильтром безопасности.","default":true},"model_name":{"type":"string","const":"wan/2-7-image-to-video","title":"Model Name"},"first_frame_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Frame Url","description":"Первый кадр видео."},"last_frame_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Frame Url","description":"Последний кадр видео."},"first_clip_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Clip Url","description":"Видео, которое нужно продолжить."},"driving_audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driving Audio Url","description":"Аудио, по которому строится движение в кадре."}},"type":"object","required":["prompt","model_name"],"title":"Wan27ImageToVideoParams","examples":[{"duration":5,"first_frame_url":"https://example.com/images/bicycle.jpg","model_name":"wan/2-7-image-to-video","prompt":"The bicycle rides away down the country road","resolution":"720p"}],"x-nexus-rules":["Нужен first_frame_url или first_clip_url.","last_frame_url требует first_frame_url."]},"Wan27TextToVideoParams":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"Основной промпт для генерации."},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"negative_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative Prompt","description":"Чего не должно быть в результате."},"resolution":{"type":"string","enum":["720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"duration":{"type":"integer","maximum":10.0,"minimum":2.0,"title":"Duration","description":"Длительность результата в секундах.","default":5},"prompt_extend":{"type":"boolean","title":"Prompt Extend","description":"Автоматически дополнить промпт перед генерацией.","default":true},"watermark":{"type":"boolean","title":"Watermark","description":"Добавить водяной знак.","default":false},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"nsfw_checker":{"type":"boolean","title":"Nsfw Checker","description":"Проверить результат фильтром безопасности.","default":true},"model_name":{"type":"string","const":"wan/2-7-text-to-video","title":"Model Name"},"aspect_ratio":{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"16:9"},"audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Url","description":"Аудиодорожка для результата (публичный URL)."}},"type":"object","required":["prompt","model_name"],"title":"Wan27TextToVideoParams","examples":[{"aspect_ratio":"16:9","duration":5,"model_name":"wan/2-7-text-to-video","prompt":"Waves crash against black rocks under a stormy sky","resolution":"1080p"}]},"Wan30Params":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Image Urls","description":"До 10 image-референсов."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Video Urls","description":"До 5 MP4/MOV видеореференсов, 1–15 секунд каждый."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Audio Urls","description":"До 5 MP3/WAV аудиореференсов."},"aspect_ratio":{"type":"string","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"adaptive"},"duration":{"type":"integer","maximum":30.0,"minimum":2.0,"title":"Duration","description":"Длительность результата в секундах (2–30).","default":5},"resolution":{"type":"string","enum":["480p","720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Добавить аудиодорожку в результат.","default":true},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"model_name":{"type":"string","const":"wan-3.0","title":"Model Name"}},"type":"object","required":["model_name"],"title":"Wan30Params","examples":[{"aspect_ratio":"16:9","duration":5,"generate_audio":true,"model_name":"wan-3.0","prompt":"A camera flies through a bright modern gallery at golden hour","resolution":"720p"}],"x-nexus-rules":["end_image_url требует start_image_url.","Кадры (start_image_url, end_image_url) нельзя совмещать с image-, video- и audio-референсами.","Нужен prompt или хотя бы один входной файл."]},"Wan30PrimeParams":{"properties":{"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"URL для отправки результата (POST)"},"prompt":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Prompt","description":"Текстовое описание того, что нужно сгенерировать."},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url","description":"URL/Base64 первого кадра."},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url","description":"URL/Base64 последнего кадра."},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Image Urls","description":"До 10 image-референсов."},"video_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Video Urls","description":"До 5 MP4/MOV видеореференсов, 1–15 секунд каждый."},"audio_urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":5},{"type":"null"}],"title":"Audio Urls","description":"До 5 MP3/WAV аудиореференсов."},"aspect_ratio":{"type":"string","enum":["adaptive","16:9","4:3","1:1","3:4","9:16"],"title":"Aspect Ratio","description":"Соотношение сторон результата.","default":"adaptive"},"duration":{"type":"integer","maximum":30.0,"minimum":2.0,"title":"Duration","description":"Длительность результата в секундах (2–30).","default":5},"resolution":{"type":"string","enum":["480p","720p","1080p"],"title":"Resolution","description":"Разрешение результата.","default":"720p"},"generate_audio":{"type":"boolean","title":"Generate Audio","description":"Добавить аудиодорожку в результат.","default":true},"seed":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Seed","description":"Сид: с одинаковыми параметрами помогает получить похожий результат."},"model_name":{"type":"string","const":"wan-3.0-prime","title":"Model Name"}},"type":"object","required":["model_name"],"title":"Wan30PrimeParams","examples":[{"aspect_ratio":"adaptive","duration":8,"end_image_url":"https://example.com/images/last.jpg","model_name":"wan-3.0-prime","prompt":"Smooth cinematic transition from the first frame to the last frame","resolution":"1080p","start_image_url":"https://example.com/images/first.jpg"}],"x-nexus-rules":["end_image_url требует start_image_url.","Кадры (start_image_url, end_image_url) нельзя совмещать с image-, video- и audio-референсами.","Нужен prompt или хотя бы один входной файл."]},"WebhookEvent":{"properties":{"task_id":{"type":"string","title":"Task Id","description":"ID задачи из ответа POST /generate."},"status":{"type":"string","enum":["completed","failed"],"title":"Status","description":"Чем закончилась задача."},"result":{"anyOf":[{"properties":{"video_url":{"type":"string","description":"Ссылка на готовое видео."},"last_frame_url":{"type":"string","description":"Последний кадр видео, если модель его возвращает."}},"type":"object","required":["video_url"],"title":"VideoResult"},{"properties":{"image_urls":{"items":{"type":"string"},"type":"array","description":"Ссылки на готовые изображения."},"image_url":{"type":"string","description":"Первое изображение (Midjourney)."},"grid_image_url":{"type":"string","description":"Сетка из всех изображений (Midjourney)."}},"type":"object","required":["image_urls"],"title":"ImageResult"},{"properties":{"audio_url":{"type":"string","description":"Первый трек."},"audio_urls":{"items":{"type":"string"},"type":"array","description":"Все треки (у Suno — два)."}},"type":"object","required":["audio_url","audio_urls"],"title":"AudioResult"},{"type":"null"}],"title":"Result","description":"Результат готовой задачи (status=completed), иначе null. Форма зависит от типа модели: видео — video_url, изображения — image_urls, аудио — audio_url и audio_urls. Срок хранения файлов не гарантируется: сохраните нужные у себя."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Текст ошибки для status=failed; удержанная сумма возвращена."}},"type":"object","required":["task_id","status"],"title":"WebhookEvent","description":"Тело вебхука о завершении задачи."},"WebhookSecretResponse":{"properties":{"secret":{"type":"string","title":"Secret","description":"Секрет для проверки подписи вебхуков задач этого API-ключа"},"algorithm":{"type":"string","const":"HMAC-SHA256","title":"Algorithm","description":"Алгоритм подписи.","default":"HMAC-SHA256"},"signature_header":{"type":"string","title":"Signature Header","description":"Заголовок с подписью: v1=<hex>.","default":"X-Nexus-Signature"},"timestamp_header":{"type":"string","title":"Timestamp Header","description":"Заголовок с меткой времени (Unix, секунды).","default":"X-Nexus-Timestamp"},"signed_payload":{"type":"string","title":"Signed Payload","description":"Что подписывается","default":"{timestamp}.{raw_body}"}},"type":"object","required":["secret"],"title":"WebhookSecretResponse"}},"securitySchemes":{"ApiKey":{"type":"http","description":"API-ключ из панели или бота: Authorization: Bearer <ключ>.","scheme":"bearer","bearerFormat":"API key"}},"headers":{"X-Request-Id":{"description":"ID запроса: укажите его, когда пишете в поддержку.","schema":{"type":"string"}},"Retry-After":{"description":"Через сколько секунд можно повторить запрос.","schema":{"type":"integer"}},"ETag":{"description":"Версия ответа для If-None-Match.","schema":{"type":"string"}}}},"servers":[{"url":"https://nexusapi.dev","description":"Production"}]}