genblaze-google
Google provider adapters for genblaze — Veo text-to-video and Imagen/Gemini text-to-image — with SHA-256 provenance manifests on every output.
genblaze-google wraps Google's generative media models (Veo 2, Veo 3, Imagen 4, Gemini-native image) as genblaze providers via the unified google-genai SDK. Works with both Gemini API keys and Google Cloud Vertex AI authentication. Compose Veo/Imagen/Gemini-image calls 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-google
- Veo 3 with synchronized audio — text-to-video + native audio, wrapped in a provenance manifest.
- Imagen 4 high-fidelity images — photorealistic stills with full parameter tracking.
- Gemini-native image generation — the only image path callable on a freshly created Gemini API key (Imagen requires account entitlement — see caveat below).
- Two auth modes — Gemini API (
GEMINI_API_KEY) for quick start, Vertex AI for enterprise / GCP orgs. - Same SDK, any provider — swap to Sora, Runway, Luma, Flux without rewriting pipeline logic.
- Provenance by default — SHA-256 hash + canonical manifest on every generation.
- Durable storage — plug
genblaze-s3in for Backblaze B2 / AWS S3 / Cloudflare R2 / MinIO.
Providers + models
| Provider class | Modality | Models |
|---|---|---|
VeoProvider |
video | veo-3.0-generate-001 (with audio), veo-3.0-fast-generate-001, veo-2.0-generate-001 |
ImagenProvider |
image | imagen-4.0-generate-001, imagen-4.0-fast-generate-001 — catalog-listed but entitlement-gated for new Gemini API keys (see caveat below) |
GeminiImageProvider |
image | gemini-2.5-flash-image, gemini-3.1-flash-image — no entitlement gate; works on a freshly created key |
Each is registered via entry points (google-veo, google-imagen, google-gemini-image).
Install
pip install genblaze-google
Quickstart — Veo 3 text-to-video (with audio)
export GEMINI_API_KEY="..." # or use Vertex AI auth
from genblaze_core import Modality, Pipeline
from genblaze_google import VeoProvider
run, manifest = (
Pipeline("veo-demo")
.step(VeoProvider(), model="veo-3.0-generate-001",
prompt="A time-lapse of a coral reef coming to life, colorful fish "
"swimming through vibrant coral, natural ocean lighting",
modality=Modality.VIDEO,
aspect_ratio="16:9", duration_seconds="8", resolution="720p",
enhance_prompt=True)
.run(timeout=600)
)
print(run.steps[0].assets[0].url, manifest.canonical_hash)
Vertex AI auth instead:
provider = VeoProvider(project="my-gcp-project", location="us-central1")
Both auth modes materialize the generated video to a local file:// asset, so
ObjectStorageSink can upload it to B2 without Google credentials in the sink.
Vertex returns the bytes inline (no Files API on Vertex); the Gemini API path
downloads them from the Files API — either way fetch_output() writes a local
file and exposes a file:// asset. Pass output_dir to control where those
files land (default: system temp), same as ImagenProvider below.
Quickstart — Imagen 4 text-to-image
from genblaze_google import ImagenProvider
run, manifest = (
Pipeline("imagen-demo")
.step(ImagenProvider(output_dir="output/images"),
model="imagen-4.0-generate-001",
prompt="A photorealistic aerial view of a coral reef teeming with tropical fish",
modality=Modality.IMAGE, aspect_ratio="16:9")
.run(timeout=120)
)
Entitlement caveat:
imagen-4.0-*is catalog-listed, so it passes preflight, but Google gates:predictaccess behind account entitlement that isn't visible until you actually try to generate — a freshly created Gemini API key can still get a 404 here. If that happens, useGeminiImageProviderbelow instead; it needs no such entitlement.
Quickstart — Gemini-native image generation
from genblaze_google import GeminiImageProvider
run, manifest = (
Pipeline("gemini-image-demo")
.step(GeminiImageProvider(output_dir="output/images"),
model="gemini-2.5-flash-image",
prompt="A photorealistic aerial view of a coral reef teeming with tropical fish",
modality=Modality.IMAGE)
.run(timeout=120)
)
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(…) to push assets + manifest to B2
Backblaze B2 is the recommended default sink for genblaze — cost-efficient, S3-compatible, with Object Lock for tamper-evident manifests.
Credentials
| Auth mode | Env var / config |
|---|---|
| Gemini API (quickest) | GEMINI_API_KEY — https://aistudio.google.com/apikey |
| Vertex AI | VeoProvider(project=..., location=...) + gcloud auth application-default login |
Documentation
- Main repo: https://github.com/backblaze-labs/genblaze
- Examples:
veo_video_pipeline.py·imagen_pipeline.py
Related packages
genblaze-core— the pipeline SDKgenblaze-s3— durable storage on Backblaze B2 and other S3-compatible backends
License
MIT
Metadata
Release files for genblaze-google 0.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genblaze_google-0.3.6.tar.gz | 39.0 kB | With provenance | Details for genblaze_google-0.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genblaze_google-0.3.6-py3-none-any.whl | Python 3 | none | any | Details for genblaze_google-0.3.6-py3-none-any.whl |
Total release size: 68.9 kB
Release files / genblaze_google-0.3.6.tar.gz
| Download URL | genblaze_google-0.3.6.tar.gz |
|---|---|
| Size | 39.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c38969fddf80aebd73442d85b2cb808adfb66c0181666e7bc622f28ca50dcbe0
|
|
BLAKE2b-256 checksum How to use checksums |
5fdba3c8f018ae062ff97fd7c3f302fe24fe86a27be291635e7bacb0659164e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / genblaze_google-0.3.6-py3-none-any.whl
| Download URL | genblaze_google-0.3.6-py3-none-any.whl |
|---|---|
| Size | 30.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9ffe3004592f35b1bc62831b8f89084d550aed997b10ef6b1a91721fdfa8575
|
|
BLAKE2b-256 checksum How to use checksums |
0343ca8c8a337fafea3a64f899e3980ac31fc01fdfc0e3322828f6eff6250248
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for genblaze-google 0.3.6
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for genblaze_google-0.3.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA 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.