UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

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; }