Video sources and video generation for AI agents
Project description
kiarina-agi-video
English | 日本語
[!NOTE] What is this?
kiarina-agi-videoprovides 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ee1f33bbdb7a01931d0db8e4371347c249d80ab89d66c5b4fbabd70a3cbceff
|
|
| MD5 |
98702572f1e026587228c6619153e7bc
|
|
| BLAKE2b-256 |
927603a0af5809d231f42e496b0b308e24296281aaf1c9a1921e50ce738d052e
|
Provenance
The following attestation bundles were made for kiarina_agi_video-2.15.0.tar.gz:
Publisher:
release-pypi.yml on kiarina/kiarina-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kiarina_agi_video-2.15.0.tar.gz -
Subject digest:
4ee1f33bbdb7a01931d0db8e4371347c249d80ab89d66c5b4fbabd70a3cbceff - Sigstore transparency entry: 2164297932
- Sigstore integration time:
-
Permalink:
kiarina/kiarina-python@91fbd2c175274df0cac06b77b5b494f647a95e7c -
Branch / Tag:
refs/tags/v2.15.0 - Owner: https://github.com/kiarina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@91fbd2c175274df0cac06b77b5b494f647a95e7c -
Trigger Event:
push
-
Statement type:
File details
Details for the file kiarina_agi_video-2.15.0-py3-none-any.whl.
File metadata
- Download URL: kiarina_agi_video-2.15.0-py3-none-any.whl
- Upload date:
- Size: 47.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf0b4fa3d52242f2e058a583e2d2b87fd3aa6f011b543079f9d1fea5edbef35
|
|
| MD5 |
442f9d2823fd27d88b5d3478ad234415
|
|
| BLAKE2b-256 |
022a2fccb88e764c9ff92d52d8185a00b4045b8d1fe9bb24061eb5a869f0de3f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kiarina_agi_video-2.15.0-py3-none-any.whl -
Subject digest:
eaf0b4fa3d52242f2e058a583e2d2b87fd3aa6f011b543079f9d1fea5edbef35 - Sigstore transparency entry: 2164297989
- Sigstore integration time:
-
Permalink:
kiarina/kiarina-python@91fbd2c175274df0cac06b77b5b494f647a95e7c -
Branch / Tag:
refs/tags/v2.15.0 - Owner: https://github.com/kiarina
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@91fbd2c175274df0cac06b77b5b494f647a95e7c -
Trigger Event:
push
-
Statement type: