Skip to main content

Stability AI Stable Audio provider adapter for genblaze

Project description

genblaze-stability-audio

Stability AI Stable Audio music + ambient sound provider adapter for genblaze — AI music generation pipelines with SHA-256 provenance manifests on every track.

genblaze-stability-audio wraps Stability AI's Stable Audio 2.5 API as a genblaze provider — up to 3 minutes of 44.1 kHz stereo music, soundtrack, or ambient audio generated from a text prompt. Compose into multi-step AI pipelines (e.g. TTS narration + Stable Audio soundtrack → AV composite), persist outputs to Backblaze B2 or any S3-compatible store, and emit a tamper-evident provenance manifest for every run.

Why genblaze-stability-audio

  • Stable Audio 2.5 — up to 3 minutes, 44.1 kHz stereo, text-to-music / text-to-ambient.
  • Provenance by default — SHA-256-verified manifest with prompt, model, duration, and timestamps.
  • Composable — chain with TTS providers and FFmpegCompositor for narration + soundtrack AV composites.
  • Production-ready — retries, timeouts, step caching, moderation hooks.
  • Durable storage — plug genblaze-s3 in for Backblaze B2 / AWS S3 / R2 / MinIO persistence.

Models

Model Notes
stable-audio-2.5 Up to 3 minutes of music/ambient audio at 44.1 kHz stereo

Install

pip install genblaze-stability-audio

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

Quickstart — text-to-music

pip install genblaze-core genblaze-stability-audio
export STABILITY_API_KEY="..."
from genblaze_core import Modality, Pipeline
from genblaze_stability_audio import StabilityAudioProvider

run, manifest = (
    Pipeline("soundtrack")
    .step(StabilityAudioProvider(output_dir="output/music"),
          model="stable-audio-2.5",
          prompt="Upbeat lo-fi hip hop beat with warm piano chords and vinyl crackle",
          modality=Modality.AUDIO, duration=30, output_format="mp3")
    .run(timeout=120)
)
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 AI-generated audio — cost-efficient, S3-compatible.

Credentials

Env var Where to get it
STABILITY_API_KEY https://platform.stability.ai/account/keys

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_stability_audio-0.3.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

genblaze_stability_audio-0.3.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for genblaze_stability_audio-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f8471ba3e6a0de92bb6d326395e7e6f9b22c0e2455df6e6b17fdf9286aa7a031
MD5 74e79df5d3c9db0417bdd9872e1d8c1c
BLAKE2b-256 83057cb86baec21ce5693449c5575fdf216d4e0bf4bd238cff829e9fa2512b92

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_stability_audio-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_stability_audio-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for genblaze_stability_audio-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73a95a25305544ec452281f75e257e915b5a90a8fa3b7bbfe5f0bbca960d3748
MD5 103e790de9692ac5fd3e25af91c1712d
BLAKE2b-256 080d49030266b94a7199af21b3e1a03efd503c1055c2abcb72109cecb87d5001

See more details on using hashes here.

Provenance

The following attestation bundles were made for genblaze_stability_audio-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