import type { VeniceClient } from './client.js'; import type { VideoQueueResponse, VideoRetrieveStatus, VideoQuoteRequest, VideoQuoteResponse } from './types.js'; import { type BitrateMode } from './models.js'; /** * Get a price estimate for a video generation before committing. */ export declare function quoteVideo(client: VeniceClient, request: VideoQuoteRequest): Promise; export interface QueueVideoOptions { model: string; prompt: string; duration: string; imageUrl?: string; endImageUrl?: string; negativePrompt?: string; aspectRatio?: string; resolution?: string; audio?: boolean; audioUrl?: string; videoUrl?: string; referenceImageUrls?: string[]; elements?: Array<{ frontal_image_url?: string; reference_image_urls?: string[]; video_url?: string; }>; sceneImageUrls?: string[]; /** * Voice-donor reference clips (data URLs or HTTP URLs), bound in-prompt as * @Audio1, @Audio2, …. Only sent to reference-audio-capable models and only * when at least one reference image is present (Venice rejects audio-only). */ referenceAudioUrls?: string[]; /** * Output encoding bitrate mode. Only sent to models that accept it (Seedance * 2.x). When omitted, Seedance 2.5 defaults to `'high'` — a large fidelity * gain at no extra cost. Pass `'standard'` to opt back into smaller files. */ bitrateMode?: BitrateMode; } /** * Queue a video generation job. Returns the queue_id for polling. * * Automatically applies model-specific parameter constraints: * - Skips resolution/aspect_ratio when not supported * - Skips end_image_url when not supported * - Validates duration against model capabilities */ export declare function queueVideo(client: VeniceClient, options: QueueVideoOptions): Promise; export interface PollVideoOptions { pollIntervalMs?: number; maxPollAttempts?: number; onProgress?: (status: VideoRetrieveStatus) => void; /** Prompt text passed to VeniceRejectionError for context. */ prompt?: string; /** Override the default silent-reject byte threshold for this poll. */ silentRejectThreshold?: number; /** Skip the silent-reject check (e.g. for low-resolution or short clips). */ skipSilentRejectCheck?: boolean; /** * Output path this poll is feeding. Supplying it keeps the pending-job * heartbeat fresh so `venice-video queue` can distinguish a live poll from an * abandoned one. */ heartbeatPath?: string; } /** * Poll for a video generation result until the MP4 is ready. * Returns the raw video buffer. */ export declare function pollVideoResult(client: VeniceClient, model: string, queueId: string, options?: PollVideoOptions): Promise; /** * Signal completion after downloading. Cleans up server-side storage. */ export declare function completeVideo(client: VeniceClient, model: string, queueId: string): Promise; export interface GenerateVideoOptions extends QueueVideoOptions { outputPath: string; pollIntervalMs?: number; maxPollAttempts?: number; onProgress?: (status: VideoRetrieveStatus) => void; /** Project directory, recorded on the pending job for `venice-video queue`. */ project?: string; episode?: number; /** Ignore any recorded in-flight job and queue a fresh generation. */ forceRequeue?: boolean; } /** * Queue, poll, download, and save a video in one call. * Returns the saved file path and the raw buffer size. * * The queue id is persisted before the first poll, so a generation interrupted * mid-flight is re-attached on the next run rather than paid for twice. */ export declare function generateVideo(client: VeniceClient, options: GenerateVideoOptions): Promise<{ path: string; sizeBytes: number; queueId: string; resumed: boolean; }>; //# sourceMappingURL=video.d.ts.map