UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

33 lines (32 loc) 1.18 kB
/** * Runway Video Handler (Gen-3 Alpha / Gen-4 Turbo) * * Async generation: POST /v1/image_to_video → poll /v1/tasks/{id}. * * @module adapters/video/runwayVideoHandler * @see https://docs.dev.runwayml.com/api/ */ import type { VideoGenerationResult, VideoHandler, VideoOutputOptions } from "../../types/index.js"; /** * Runway Video Handler. * * Auth: `Authorization: Bearer ${RUNWAY_API_KEY}` + `X-Runway-Version` * header. Models: gen3a_turbo (Gen-3 Alpha Turbo, default), gen4_turbo. */ export declare class RunwayVideoHandler implements VideoHandler { readonly maxDurationSeconds = 10; readonly supportedAspectRatios: readonly ("16:9" | "9:16")[]; readonly supportedResolutions: readonly ("720p" | "1080p")[]; private readonly apiKey; private readonly baseUrl; private readonly apiVersion; constructor(apiKey?: string); isConfigured(): boolean; generate(image: Buffer, prompt: string, options: VideoOutputOptions): Promise<VideoGenerationResult>; private submitTask; private pollUntilComplete; private downloadVideo; private fetchWithTimeout; private detectImageType; private calculateDimensions; }