Skip to main content

Visage Python SDK

Zero-dependency Python SDK for the Visage B2B API. Verify AI likeness licenses, log usage events, and manage deals.

Installation

pip install visage-sdk

Quick Start

from visage import Visage

client = Visage(api_key="vsg_live_xxxxxxxxxxxxxxxx")

# Verify a license before generation
result = client.verify_license("VSG-A1B2-C3D4-E5F6")
print(result.status)        # "ACTIVE"
print(result.model_sku)     # "VSG-MDL-ALEX-042"
print(result.rights_summary.media_types)  # ["digital", "social"]

# Log a usage event after generation
event = client.log_usage(
    license_key="VSG-A1B2-C3D4-E5F6",
    platform_id="your-platform",
    event_type="generation",
    units=1,
    metadata={"campaign": "Summer 2026"}
)
print(event.id)  # event UUID

# List models
models = client.list_models(limit=10)
print(f"{models.total} models available")

# Get model by SKU
model = client.get_model_by_sku("VSG-MDL-ALEX-042")
print(model.display_name)

# List active licenses
licenses = client.list_licenses(status="active")

# List completed deals
deals = client.list_deals(status="completed", limit=50)

Error Handling

from visage import Visage, VisageAuthError, VisageLicenseNotFoundError, VisageAPIError

client = Visage(api_key="vsg_live_xxx")

try:
    result = client.verify_license("VSG-INVALID-KEY")
except VisageAuthError as e:
    print(f"Bad API key: {e}")         # 401
except VisageLicenseNotFoundError as e:
    print(f"Not found: {e}")           # 404
except VisageAPIError as e:
    print(f"API error {e.status_code}: {e}")

Requirements

Python 3.10+. Zero dependencies — uses only the standard library.

Links

Metadata

Release files for visage-sdk 1.0.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 visage-sdk 1.0.1
File Size Uploaded
visage_sdk-1.0.1.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for visage-sdk 1.0.1
File Interpreter ABI Platform
visage_sdk-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / visage_sdk-1.0.1.tar.gz

Download URL visage_sdk-1.0.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
df52661d5a5b1faf9982a47e36a9ad8a9892f3de1fb1d834e41cd8f7e1ab6860
BLAKE2b-256 checksum
How to use checksums
32401c032c55cd1646af7b569059ddbbccd609c046229f18a4cd3ab795a93e88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / visage_sdk-1.0.1-py3-none-any.whl

Download URL visage_sdk-1.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5b1e349c39c925f6e066c00b4b6598895a0e0f224f576aba4290ad6c297465d
BLAKE2b-256 checksum
How to use checksums
cb97aeb692a48f94be88341fac4fdd3ed6626b7680abf51a7030a34898acb523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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