Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Text-to-video и image-to-video с Kling, Luma Ray2, MiniMax
luma-ray2-flash
kling-v2.1
kling-v2.1-pro
minimax-video
luma-ray2
luma-ray2-1080p
mj-video-480p
mj-video-720p
curl -X POST https://elumenta.ru/api/v2/generate \ -H "Authorization: Bearer nb_ВАШ_КЛЮЧ" \ -H "Content-Type: application/json" \ -d '{ "model": "kling-v2.1", "prompt": "Облёт дрона над футуристическим городом ночью, дождь, неоновые вывески", "params": {"duration": 5, "aspect_ratio": "16:9"} }'
curl -X POST https://elumenta.ru/api/v2/generate \ -H "Authorization: Bearer nb_ВАШ_КЛЮЧ" \ -H "Content-Type: application/json" \ -d '{ "model": "luma-ray2", "prompt": "Камера медленно отъезжает назад", "params": { "image_url": "https://example.com/my-image.jpg", "duration": 5 } }'
import requests, time def ждать_видео(gen_id: int, api_key: str) -> str: headers = {"Authorization": f"Bearer {api_key}"} while True: data = requests.get( f"https://elumenta.ru/api/v2/generate/{gen_id}", headers=headers ).json() if data["status"] == "completed": return data["result_url"] if data["status"] == "failed": raise Exception(data.get("error")) print(f"Статус: {data['status']}, ждём...") time.sleep(5)