Gemini Omni Python SDK for RunAPI
The Gemini Omni Python SDK is the language-specific package for Gemini Omni on RunAPI. Use this package for voice resources, character resources, and multimodal video generation workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Python.
Install
pip install runapi-gemini-omni
Quick start
from runapi.gemini_omni import GeminiOmniClient
client = GeminiOmniClient() # reads RUNAPI_API_KEY, or pass api_key="sk-..."
# Reusable voice (returns immediately)
voice = client.create_audio.run(audio_id="kore", name="Narrator")
# Reusable character (returns immediately)
character = client.create_character.run(
descriptions="A friendly robot guide",
reference_image_url="https://cdn.runapi.ai/public/samples/portrait.jpg",
body_reference_image_url="https://cdn.runapi.ai/public/samples/image.jpg",
)
# Text-to-video (create + poll until complete)
result = client.text_to_video.run(
model="gemini-omni-flash-1-1",
prompt="A paper airplane travels from dawn into dusk.",
duration_seconds=6,
first_frame_image_url="https://cdn.runapi.ai/public/samples/first-frame.jpg",
last_frame_image_url="https://cdn.runapi.ai/public/samples/last-frame.jpg",
aspect_ratio="16:9",
output_resolution="360p",
)
print(result.videos[0].url)
character.images returns the portrait first and the optional full-body image second. A character created with both references consumes two of the seven reference units in a multimodal video request.
For gemini-omni-flash-1-1, first_frame_image_url cannot be combined with reference images, audio IDs, video clips, or character IDs. last_frame_image_url requires first_frame_image_url.
create_audio returns its result directly. create_character.run returns the
terminal character result and follows an accepted Task when needed.
text_to_video is asynchronous: use create to submit and return quickly,
get to fetch the latest task state, and run to create and poll until
completion.
RunAPI-generated file URLs are temporary. Download and store generated images, videos, audio, or other files in your own durable storage within 7 days; do not treat returned URLs as long-term assets.
Language notes
Pass parameters as keyword arguments and catch the runapi.gemini_omni error classes. The available resources are create_audio, create_character, and text_to_video. Keep RUNAPI_API_KEY in the environment or your secret manager; never commit API keys or callback secrets.
Links
- Model page: https://runapi.ai/models/gemini-omni
- SDK docs: https://runapi.ai/docs/resources/sdks
- Product docs: https://runapi.ai/docs/api/gemini-omni/text-to-video
- Flash 1.1 pricing and rate limits: https://runapi.ai/models/gemini-omni/flash-1-1
- Flash Preview pricing and rate limits: https://runapi.ai/models/gemini-omni/flash-preview
- Full catalog: https://runapi.ai/models
License
Licensed under the Apache License, Version 2.0.
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 runapi_gemini_omni-0.3.2.tar.gz.
File metadata
- Download URL: runapi_gemini_omni-0.3.2.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4bcdf01c27c2d48791fc9e622fabb50e1df33ba130da76479908aaa9f4fe1da
|
|
| MD5 |
e01d8b17ccbf27a1b3d45bcea355742b
|
|
| BLAKE2b-256 |
f12eaa31f6737583342309ce9485c864225683e81550c9697454f455e95c7cf2
|
File details
Details for the file runapi_gemini_omni-0.3.2-py3-none-any.whl.
File metadata
- Download URL: runapi_gemini_omni-0.3.2-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29de9a3649e277da977e1b659aa5c7ea5f34aedd4ebeaadb58b44f0975f1a94c
|
|
| MD5 |
2ffaf5015ea790055498ecbcefda4dcb
|
|
| BLAKE2b-256 |
d94c8b668448de1bfe34688ad62c13f1f5addeecb0797442a7f96d98609017c5
|