Skip to main content

RunAPI OmniHuman SDK for audio-to-video and image helper workflows in JavaScript, Python, Ruby, Go, Java, and PHP

Project description

OmniHuman Python SDK for RunAPI

The OmniHuman Python SDK is the language-specific package for OmniHuman on RunAPI. Use this package for audio-driven talking-head video generation, human identification, and subject-mask detection when your application needs request bodies, task status lookup, and consistent RunAPI errors in Python.

This README is the Python package guide inside the public omnihuman-sdk repository. For the repository overview, start at ../README.md; for model details, use https://runapi.ai/models/omnihuman; for API reference, use https://runapi.ai/docs#omnihuman; for SDK docs, use https://runapi.ai/docs#sdk-omnihuman.

Install

pip install runapi-omnihuman

Quick start

from runapi.omnihuman import OmnihumanClient

client = OmnihumanClient()  # reads RUNAPI_API_KEY, or pass api_key="sk-..."

task = client.audio_to_video.create(
    model="omnihuman-1.5",
    source_image_url="https://cdn.runapi.ai/public/samples/portrait.jpg",
    source_audio_url="https://cdn.runapi.ai/public/samples/voice.mp3",
    output_resolution="720p",
)
status = client.audio_to_video.get(task.id)

Use create when you want to submit a task and return quickly, get when you need the latest task state, and run when a script should create and poll until completion. In web request handlers, prefer create plus webhook or later get polling so a worker is not held open.

RunAPI-generated file URLs are temporary. Download and store generated videos, masks, 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.omnihuman error classes when building video jobs or scripts. The available resources are audio_to_video, human_identification, and subject_detection. 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_omnihuman-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

runapi_omnihuman-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file runapi_omnihuman-0.1.1.tar.gz.

File metadata

  • Download URL: runapi_omnihuman-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_omnihuman-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d2019dfadc6da0fe73866b6c48dab0db9f080900d2960ae8903c061d7cb16f8e
MD5 5980ee0caed9598df4c551c4f0f7a4ca
BLAKE2b-256 b4bc86458208ff14b51f69a15985d0a3b39e0d40eb3ee537a2f1a47688cc4ae6

See more details on using hashes here.

File details

Details for the file runapi_omnihuman-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: runapi_omnihuman-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for runapi_omnihuman-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f34ef41b2fcfdabc5a4fe4129275650ac2e242007b8745e82c7e03dbda1f2310
MD5 3187c5f64c8f45f306cffa8c90283628
BLAKE2b-256 2ffbfb2c1deee3e1732a1a3b1ced0e125b0b5a81c3480a3d91f771c54dc777b3

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