Omni Video Python SDK
Python client for Omni Video — generate video and image content with the Gemini Omni Video series of models from one tiny client.
Omni Video is a hosted multimodal generation platform that wraps the Gemini Omni Video family (seedance-2 for text/image → video, gpt-image-2 and nano-banana-2 for text/image → image) behind one REST API.
Install
pip install omnivideo-sdk
Get an API key
Sign in at https://omnivideo.net/, open the account page, and create a sk-… token. Then export it:
export OMNIVIDEO_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Quick start
from omnivideo_sdk import OmniVideo
client = OmniVideo() # reads OMNIVIDEO_API_KEY
# One-shot: create and wait for the result
task = client.run(
model_id="seedance-2",
prompt="a serene zen garden at sunrise, ultra detailed",
aspect_ratio="16:9",
)
print(task.output_url) # video_url or image_url
Lower level: create + poll yourself
from omnivideo_sdk import OmniVideo, TaskStatus
client = OmniVideo(api_key="sk-...")
task = client.create_task(
model_id="gpt-image-2",
prompt="cyberpunk corgi, neon rim light",
image_urls=[],
aspect_ratio="1:1",
)
print(task.task_id)
while not task.done:
task = client.get_task(task.task_id)
assert task.task_status == TaskStatus.SUCCESS
print(task.image_url)
Supported models
model_id |
Modality | Output |
|---|---|---|
seedance-2 |
text/image → video | video_url |
gpt-image-2 |
text/image → image | image_url |
nano-banana-2 |
text/image → image | image_url |
See the live model list and pricing on the Omni Video website.
API surface
OmniVideo(api_key=None, base_url=..., timeout=60.0)client.create_task(model_id, prompt, image_urls=None, aspect_ratio=None, **extra) -> Taskclient.get_task(task_id) -> Taskclient.run(model_id, prompt, ..., poll_interval=3.0, max_wait=600.0) -> TaskTaskfields:task_id,task_status(1=queued, 2=running, 3=success, 4=failed),image_url,video_url,credits,output_url,done.
Errors are raised as OmniVideoError.
Links
- Website & account: https://omnivideo.net/
- API docs: https://omnivideo.net/api-docs
License
MIT
Metadata
Release files for omnivideo-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omnivideo_sdk-0.1.0.tar.gz | 5.5 kB | Without provenance | Details for omnivideo_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omnivideo_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for omnivideo_sdk-0.1.0-py3-none-any.whl |
Total release size: 10.9 kB
Release files / omnivideo_sdk-0.1.0.tar.gz
| Download URL | omnivideo_sdk-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd7962a657f34dab47dab99e573b2936737f7190b726f336e627d7cd418a0573
|
|
BLAKE2b-256 checksum How to use checksums |
7cc6af28364150e36455a7d336e9b977a45fca24eac5705d19a5b33ec328c968
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / omnivideo_sdk-0.1.0-py3-none-any.whl
| Download URL | omnivideo_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
766c04d4eb5f3531618edbc478a5ec760df5eb12038ed336cae7fe6d7d948012
|
|
BLAKE2b-256 checksum How to use checksums |
fa19ce69a0c9b79752c67e85d5214454bf924b8b1bf221379fa08ba82571f45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Security for omnivideo-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.