API Reference
Classes
Section titled “Classes”CogVideoXVideoProvider
Section titled “CogVideoXVideoProvider”Talks to a cogvideox_server.py reference server via VideoProvider.
ComfyUiVideoProvider
Section titled “ComfyUiVideoProvider”Submits a filled-in SVD workflow to ComfyUI, polls history, fetches output.
Requires request.image_uri — the bundled default workflow targets SVD-style image-to-video graphs (design spec §11.4). image_uri is assumed to already be a path reachable by the ComfyUI process, the same locally-reachable trust boundary the design assumes for base_url itself (design spec §3 non-goals).
FFmpegVideoProcessor
Section titled “FFmpegVideoProcessor”Runs ffmpeg subprocesses to fulfill VideoOperation requests.
LocalHttpVideoProvider
Section titled “LocalHttpVideoProvider”Talks to a self-hosted video generation HTTP server.
No SDK dependency — this is the always-available zero-extra backend.
Video servers commonly respond with either the raw media bytes or a
JSON body of the form {"url": "..."} (files are too large to
ship inline) — both response shapes are supported.
OpenAIVideoProvider
Section titled “OpenAIVideoProvider”Talks to an OpenAI-compatible video-generation gateway.
RunwayVideoProvider
Section titled “RunwayVideoProvider”Talks to Runway's ML API for video generation.
No SDK dependency — plain HTTP against Runway’s documented async-job
API shape: submission returns a job id, a follow-up poll returns a
status plus the output URL when the job is done. generate()
therefore performs an internal submit + poll loop (bounded retries
with a sleep, both configurable) instead of the single round trip
the local-http backends perform — it is intentionally slower.
SVDVideoProvider
Section titled “SVDVideoProvider”Talks to an svd_server.py reference server via VideoProvider.
VideoConfig
Section titled “VideoConfig”Configuration for the video generation subsystem.
VideoGenerationProvider
Section titled “VideoGenerationProvider”Provider that registers a configured VideoProvider backend.
VideoGenerationTask
Section titled “VideoGenerationTask”Callable task handler — wraps a VideoProvider backend for lexigram-tasks.
Returns a plain dict (never raw MediaAsset bytes) because lexigram-tasks’ result store JSON-serializes JobResult. The umbrella wraps this handler during MultimediaProvider.register() to persist any bytes to lexigram-storage BEFORE this dict is constructed — see the “Async job model” section of the design spec.
VideoModule
Section titled “VideoModule”Video generation integration.
VideoProcessingConfig
Section titled “VideoProcessingConfig”Configuration for the local FFmpeg video-processing pipeline.
VideoProcessingTask
Section titled “VideoProcessingTask”Task handler for the async video processing job path.
Reconstructs a VideoOperation variant from a flat params dict using the
operation_type discriminator (the dataclass’s class name), matching
the pattern Timeline.from_params() uses for timeline renders.
Wan22VideoProvider
Section titled “Wan22VideoProvider”Talks to a wan22_server.py reference server via VideoProvider.
Exceptions
Section titled “Exceptions”VideoGenerationAuthenticationError
Section titled “VideoGenerationAuthenticationError”Raised when the video backend rejects the configured API credentials.
VideoGenerationError
Section titled “VideoGenerationError”Base for video generation errors.
VideoTimeoutError
Section titled “VideoTimeoutError”Raised when a video generation operation exceeds its timeout.