Hume AI Python Client
Hume AI Python SDK
The Hume AI Python SDK makes it easy to call Hume APIs from Python applications.
To get started, sign up for a Hume account!
Python versions between 3.8 and 3.10 are supported
pip install hume
Submit a new batch job
Note: Your personal API key can be found in the profile section of beta.hume.ai
from hume import HumeBatchClient client = HumeBatchClient("<your-api-key>") urls = ["https://tinyurl.com/hume-img"] job = client.submit_face(urls) print(job) print("Running...") result = job.await_complete() result.download_predictions("predictions.json") print("Predictions downloaded!")
Rehydrate a batch job from a job ID
from hume import BatchJob, HumeBatchClient client = HumeBatchClient("<your-api-key>") job_id = "<your-job-id>" job = BatchJob(client, job_id) print(job)
See example requests and responses for all available endpoints in the Hume API Reference
If you've found a bug with this SDK please open an issue!
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.