Skip to main content

kiarina-agi-video

PyPI Python License

[!NOTE] What is this? kiarina-agi-video provides video sources and video generation for AI agents.

Dependencies

Required Dependencies

Package Version License
kiarina-agi-base >=2.7.0 MIT
kiarina-agi-image >=2.9.0 MIT
kiarina-utils-app >=2.4.0 MIT
kiarina-utils-common >=2.8.0 MIT
kiarina-utils-file >=2.3.1 MIT
NumPy >=2.0,<3 BSD-3-Clause
Pydantic >=2.11.7,<3 MIT
pydantic-settings >=2.10.1,<3 MIT
pydantic-settings-manager >=3.2.0 MIT

Optional Dependencies

Package Extras
google-genai video-generation-provider-google
httpx video-generation-provider-kiapi
kiarina-lib-google video-generation-provider-google
imageio-ffmpeg video-source-file
opencv-python video-source-camera

The all Extra installs every optional dependency listed above.

Video Generation through kiapi

The kiapi model alias uses kiapi at http://localhost:8000 and the ltx2 family by default. Pass family-specific request parameters in extra_params.

from kiarina.agi.video_generation_model import create_video

session_id = await create_video(
    "A cat walking through tall grass",
    video_generation_options={
        "video_generation_model": "kiapi?family=ltx2&extra_params.width=512&extra_params.num_frames=97"
    },
    run_context=run_context,
)

When first_image_file_path is supplied, the file is uploaded to kiapi and used as first-frame conditioning. Generation starts as an asynchronous job that can be managed with the existing is_video_running, get_video, and delete_video helpers.

Public API

kiarina.agi.video_generation_provider_impl.kiapi

from kiarina.agi.video_generation_provider_impl.kiapi import (
    KiapiVideoGenerationProvider,
    KiapiVideoGenerationProviderSettings,
    create_kiapi_video_generation_provider,
    settings_manager,
)

create_kiapi_video_generation_provider

def create_kiapi_video_generation_provider(
    **kwargs: Any,
) -> KiapiVideoGenerationProvider: ...

Creates a provider from managed settings, with keyword arguments applied as overrides.

KiapiVideoGenerationProvider

class KiapiVideoGenerationProvider(BaseVideoGenerationProvider):
    def __init__(self, settings: KiapiVideoGenerationProviderSettings) -> None: ...

Generates, retrieves, and deletes videos through the kiapi asynchronous job API. kiapi does not currently support video editing or extension.

KiapiVideoGenerationProviderSettings

class KiapiVideoGenerationProviderSettings(BaseSettings):
    kiapi_base_url: str = "http://localhost:8000"
    family: Literal["ltx2"] = "ltx2"
    timeout: float = 1800.0
    extra_params: dict[str, Any] = {}

settings_manager is the SettingsManager instance for these settings.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kiarina_agi_video-2.28.0.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kiarina_agi_video-2.28.0-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

Details for the file kiarina_agi_video-2.28.0.tar.gz.

File metadata

  • Download URL: kiarina_agi_video-2.28.0.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kiarina_agi_video-2.28.0.tar.gz
Algorithm Hash digest
SHA256 7fb71e8d79df22598e68f41cdc2800116f69962bc123babeb05e0b09a6d78412
MD5 beb3769ec4f44e28ee5a3c514b08de20
BLAKE2b-256 0e120db33eecf321ed1cf3964715aa8b30577ffe37716bac7b769344e5601e6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_video-2.28.0.tar.gz:

Publisher: release-pypi.yml on kiarina/kiarina-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kiarina_agi_video-2.28.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kiarina_agi_video-2.28.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dac609cc571ff82d53a50f05707ac0e00461cdd02bbe5e207cd74b6fa96e15f
MD5 b1d5e4b811e8c9d74d327d9b7243d7e0
BLAKE2b-256 67870be1988a068383ed92b1290546010b1edc93a223cad2654c91c6aa734ee7

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_video-2.28.0-py3-none-any.whl:

Publisher: release-pypi.yml on kiarina/kiarina-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.28.0 This release

2 files

2.15.0

2 files

2.10.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page