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
Metadata
Release files for omniflash-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 |
|---|---|---|---|---|
| omniflash_sdk-0.1.0.tar.gz | 6.0 kB | Without provenance | Details for omniflash_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omniflash_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for omniflash_sdk-0.1.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / omniflash_sdk-0.1.0.tar.gz
| Download URL | omniflash_sdk-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f696c271cb2c9e76423fce6c77e562e06f80c6ab3531023fd64331b12419c17
|
|
BLAKE2b-256 checksum How to use checksums |
69a775c5340edecdea345409af45d901d4c3427c1136b8b32279350f6590af82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / omniflash_sdk-0.1.0-py3-none-any.whl
| Download URL | omniflash_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
036965cff6adb77290a1bd574f4ac8841322bb9ea061b30335080fbd4d0dbab2
|
|
BLAKE2b-256 checksum How to use checksums |
f71fbc471346d365e662d5dc52f742b0462bbac4221e8e705bf5330b5394f174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Security for omniflash-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.