Skip to main content

Google provider adapters for genblaze (Veo video, Imagen image)

Project description

genblaze-google

Google provider adapters for genblazeVeo text-to-video and Imagen text-to-image — with SHA-256 provenance manifests on every output.

genblaze-google wraps Google's generative media models (Veo 2, Veo 3, Imagen 3) as genblaze providers via the unified google-genai SDK. Works with both Gemini API keys and Google Cloud Vertex AI authentication. Compose Veo/Imagen 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 3 high-fidelity images — photorealistic stills with full parameter tracking.
  • 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-s3 in 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-3.0-generate-002, imagen-3.0-fast-generate-001

Each is registered via entry points (google-veo, google-imagen).

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")

Quickstart — Imagen 3 text-to-image

from genblaze_google import ImagenProvider

run, manifest = (
    Pipeline("imagen-demo")
    .step(ImagenProvider(output_dir="output/images"),
          model="imagen-3.0-generate-002",
          prompt="A photorealistic aerial view of a coral reef teeming with tropical fish",
          modality=Modality.IMAGE, aspect_ratio="16:9")
    .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_KEYhttps://aistudio.google.com/apikey
Vertex AI VeoProvider(project=..., location=...) + gcloud auth application-default login

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_google-0.2.3.tar.gz (14.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_google-0.2.3-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file genblaze_google-0.2.3.tar.gz.

File metadata

  • Download URL: genblaze_google-0.2.3.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for genblaze_google-0.2.3.tar.gz
Algorithm Hash digest
SHA256 a5ea931cad54d8a3ad5face83da02d2f86a0d5ca820bb646d7b5f9aa27dbad94
MD5 974190dd5a6c5ea5b9057b8551535d36
BLAKE2b-256 b69e0bc5396ab7831ead76d32b9cdd3f4c825aa2e13a6d88e0e7b4df46a72e06

See more details on using hashes here.

File details

Details for the file genblaze_google-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for genblaze_google-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b2a94bcb932f2f55fff940891853dc7b8bcccec02d51fc676b58c106d710175
MD5 ea48d2db11422e2b801b6a74ceb672b9
BLAKE2b-256 1b3271647d41faf746b2d5bdbb754506905f54aa9e9f45931310d07c7d746fdc

See more details on using hashes here.

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