Omni Flash Python SDK — generate short videos (with synchronized audio) and images via the Gemini Omni Flash family of models.
Project description
Omni Flash Python SDK
Python client for Gemini Omni Flash — generate short video clips (with synchronized audio) and images using Google's Gemini Omni Flash family of models.
Gemini Omni Flash hosts the Omni Flash family (seedance-2 for text/image → video + audio, gpt-image-2 and nano-banana-2 for text/image → image) behind one REST API.
Install
pip install omniflash-sdk
Get an API key
Sign in at Gemini Omni Flash, open the account page, and create a sk-… token. Then export it:
export OMNIFLASH_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Quick start
from omniflash_sdk import OmniFlash
client = OmniFlash() # reads OMNIFLASH_API_KEY
# One-shot: create and wait for the result
task = client.run(
model_id="seedance-2",
prompt="a kettle whistles as steam rises, cozy kitchen, warm light",
aspect_ratio="16:9",
)
print(task.video_url)
print(task.audio_url) # synchronized audio track
Lower level: create + poll yourself
from omniflash_sdk import OmniFlash, TaskStatus
client = OmniFlash(api_key="sk-...")
task = client.create_task(
model_id="gpt-image-2",
prompt="cyberpunk corgi, neon rim light",
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 + audio_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 Gemini Omni Flash.
API surface
OmniFlash(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,audio_url,task_type,model_id,credits,created_at,output_url,done.
Errors are raised as OmniFlashError.
Links
- Website & account: Gemini Omni Flash
- API docs: https://omniflash.net/api-docs
License
MIT
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 omniflash_sdk-0.1.0.tar.gz.
File metadata
- Download URL: omniflash_sdk-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f696c271cb2c9e76423fce6c77e562e06f80c6ab3531023fd64331b12419c17
|
|
| MD5 |
fc9db4c3e5ae806e2b29a6b0cf244785
|
|
| BLAKE2b-256 |
69a775c5340edecdea345409af45d901d4c3427c1136b8b32279350f6590af82
|
File details
Details for the file omniflash_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: omniflash_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
036965cff6adb77290a1bd574f4ac8841322bb9ea061b30335080fbd4d0dbab2
|
|
| MD5 |
eaf6f23fedf5010307741257455a0160
|
|
| BLAKE2b-256 |
f71fbc471346d365e662d5dc52f742b0462bbac4221e8e705bf5330b5394f174
|