Skip to main content

Gemini Omni voice, character, and text-to-video client for RunAPI

Project description

Gemini Omni Python SDK for RunAPI

The Gemini Omni Python SDK is the language-specific package for Gemini Omni on RunAPI. Use it to create reusable voices and characters and to generate video from text, with JSON request bodies, task status lookup, and consistent RunAPI errors in Python.

For model details, use https://runapi.ai/models/gemini-omni; for API reference, use https://runapi.ai/docs#gemini-omni; for SDK docs, use https://runapi.ai/docs#sdk-gemini-omni.

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://example.com/robot.png",
)

# Text-to-video (create + poll until complete)
result = client.text_to_video.run(
    prompt="A fox trotting across fresh snow at dawn",
    duration_seconds=8,
    aspect_ratio="16:9",
)
print(result.videos[0].url)

create_audio and create_character are synchronous: run submits and returns the result directly. 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 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

License

Licensed under the Apache License, Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runapi_gemini_omni-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runapi_gemini_omni-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file runapi_gemini_omni-0.1.0.tar.gz.

File metadata

  • Download URL: runapi_gemini_omni-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for runapi_gemini_omni-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4ec52079e04ff79a04ccb556d14c44b1995813de331e84918afd21069f3bd57
MD5 3cef58f03a22ba28f9af83451c9dfe40
BLAKE2b-256 b3801ca5bdd4a3969f6f7ee456d4932c474d1552705b96869c41638b754e25cc

See more details on using hashes here.

File details

Details for the file runapi_gemini_omni-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for runapi_gemini_omni-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2320c8c39a672dd33226c037ff0646926cdc4019710e3859f94e5399906da19
MD5 48be7325af2f50dfb044bf19bf5e1c65
BLAKE2b-256 83ad2ccd20ee8f1d19140ad5eb989238c04a9dca84a8e0ece3f3ee1c39e86860

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page