Skip to main content

Video sources and video generation for AI agents

Project description

kiarina-agi-video

English | 日本語

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.

Project details


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.15.0.tar.gz (28.4 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.15.0-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kiarina_agi_video-2.15.0.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kiarina_agi_video-2.15.0.tar.gz
Algorithm Hash digest
SHA256 4ee1f33bbdb7a01931d0db8e4371347c249d80ab89d66c5b4fbabd70a3cbceff
MD5 98702572f1e026587228c6619153e7bc
BLAKE2b-256 927603a0af5809d231f42e496b0b308e24296281aaf1c9a1921e50ce738d052e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_video-2.15.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.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kiarina_agi_video-2.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf0b4fa3d52242f2e058a583e2d2b87fd3aa6f011b543079f9d1fea5edbef35
MD5 442f9d2823fd27d88b5d3478ad234415
BLAKE2b-256 022a2fccb88e764c9ff92d52d8185a00b4045b8d1fe9bb24061eb5a869f0de3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for kiarina_agi_video-2.15.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page