Skip to main content

Luma Dream Machine video provider adapter for genblaze

Project description

genblaze-luma

Luma Dream Machine (Ray-2) video provider adapter for genblaze — text-to-video AI pipelines with SHA-256 provenance manifests on every render.

genblaze-luma wraps Luma Labs' Dream Machine API (Ray-2, Ray-Flash-2) as a genblaze provider. Compose Luma video generations into multi-step AI pipelines, persist outputs to Backblaze B2 or any S3-compatible store, and emit a tamper-evident provenance manifest for every run.

Why genblaze-luma

  • Luma Ray-2, unified API — same Pipeline API as Sora, Veo, Runway, Flux.
  • Provenance by default — SHA-256-verified manifest with prompt, model, and params on every render.
  • Production-ready — timeouts, retries, progress streaming, moderation hooks, step caching.
  • Composable — chain Luma outputs into downstream FFmpeg steps or AV compositors.
  • Durable storage — plug genblaze-s3 in for Backblaze B2 / AWS S3 / R2 / MinIO persistence.

Models

Model Notes
ray-2 Latest, highest-quality Dream Machine
ray-flash-2 Faster and lower-cost variant

Install

pip install genblaze-luma

Registers the luma provider via entry points; genblaze-core discovers it automatically.

Quickstart — Ray-2 text-to-video

pip install genblaze-core genblaze-luma
export LUMAAI_API_KEY="..."
from genblaze_core import Modality, Pipeline
from genblaze_luma import LumaProvider

run, manifest = (
    Pipeline("luma-demo")
    .step(LumaProvider(), model="ray-2",
          prompt="A slow-motion shot of ocean waves crashing against volcanic rocks at golden hour, cinematic",
          modality=Modality.VIDEO, aspect_ratio="16:9")
    .run(timeout=300)
)
print(run.steps[0].assets[0].url, manifest.canonical_hash)

Persist to Backblaze B2

from genblaze_core import KeyStrategy, ObjectStorageSink
from genblaze_s3 import S3StorageBackend

storage = ObjectStorageSink(
    S3StorageBackend.for_backblaze("my-bucket"),
    key_strategy=KeyStrategy.HIERARCHICAL,
)
# pass sink=storage to .run(…)

Backblaze B2 is the recommended default sink for large AI-generated video.

Credentials

Env var Where to get it
LUMAAI_API_KEY https://lumalabs.ai/dream-machine/api

Documentation

Related packages

License

MIT

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

genblaze_luma-0.3.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

genblaze_luma-0.3.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file genblaze_luma-0.3.0.tar.gz.

File metadata

  • Download URL: genblaze_luma-0.3.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for genblaze_luma-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ff75eb05107e3495edb65aab2253b7107d5fdafebec33dc0240af7f72a0bd1bd
MD5 e07ea33acbce664d2bc5b10caf4a423f
BLAKE2b-256 0b2aa05ffaec700e13749b15f26b62da2e6b1fd5ad76076ca2c75fd1839714e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_luma-0.3.0.tar.gz:

Publisher: release.yml on backblaze-labs/genblaze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genblaze_luma-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: genblaze_luma-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for genblaze_luma-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 194783e179971b49b4659fc8591432e29acfc7fe4716eec0f2cbc2de8894f167
MD5 20b4dbb8479d6abcb3008a947592dba0
BLAKE2b-256 707262711d771583f1b3bdc0cbd883264a47d532f184b008726bc373ea3ece37

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_luma-0.3.0-py3-none-any.whl:

Publisher: release.yml on backblaze-labs/genblaze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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