Skip to main content

ActorHub Python SDK

Official Python client for the ActorHub.ai consent API.

ActorHub.ai is where real people become licensed AI talent: they verify who they are, set the terms their likeness may be used on, and brands license a verified person for a campaign. This SDK answers whether a face in an image belongs to a verified person and what that person agreed to, before anything is generated.

Installation

pip install actorhub

Quick Start

from actorhub import ActorHub

client = ActorHub(api_key="your-api-key")

# Check consent before AI generation
result = client.check_consent(
    platform="sora",
    intended_use="video",
    image_url="https://example.com/face.jpg",
)

if result.protected:
    face = result.faces[0]
    print(f"Verified person: {face.display_name}")
    print(f"Consent: {face.consent.video_generation}")
    
    # Check if active consent token exists
    if face.token and face.token.valid:
        print(f"Active token: {face.token.source}")
    
    # Verify trust signature
    if result.trust:
        print(f"Signed: {result.trust.algorithm}")
result = client.check_consent(
    platform="sora",
    intended_use="video",
    image_url="https://example.com/face.jpg",
    consent_token="ACT-XXXX",  # Token from identity owner
)

Async Support

from actorhub import AsyncActorHub

async with AsyncActorHub(api_key="your-api-key") as client:
    result = await client.check_consent(
        platform="runway",
        intended_use="video",
        image_url="https://example.com/face.jpg",
    )

Metadata

Release files for actorhub 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for actorhub 0.2.1
File Size Uploaded Provenance
actorhub-0.2.1.tar.gz 8.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for actorhub 0.2.1
File Interpreter ABI Platform
actorhub-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / actorhub-0.2.1.tar.gz

Download URL actorhub-0.2.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
661674ec996feafaf7a60bef94e1debcc910c96e2ef2d99760ef2569f2536d3d
BLAKE2b-256 checksum
How to use checksums
b3a69b0c450bd296c2e7f55a02c3e7fc01053dd606f7eb57fd087d603ee188c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / actorhub-0.2.1-py3-none-any.whl

Download URL actorhub-0.2.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
184517c1ba12ea687368d54cf327854b5b10a014e42fe8c53beb2af5178005ff
BLAKE2b-256 checksum
How to use checksums
73bb69eea6f254ff7339231ffd7ee40750faad829bb0981c9f72679f96f9cc13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for actorhub 0.2.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page