Skip to main content

Python SDK for 0byte image generation and proof anchoring

Project description

🧠 Zbyte SDK

Zbyte is the official Python SDK for generating AI images and anchoring cryptographic proofs to the Solana blockchain. It supports integration with Hugging Face inference APIs and provides a seamless backend for verifiable media.

🔗 What It Does

  • 🖼️ Generates AI images via Hugging Face’s Stable Diffusion models
  • 🔐 Anchors a proof of generation to Solana using the 0Byte protocol
  • 📎 Embeds the Solana transaction ID + platform into the image metadata
  • 🛡️ Enables downstream verification of the media origin

🚀 Installation

pip install zbyte

✨ Quickstart

from zbyte import Client, Config

config = Config(
    provider="stability",
    model="stable-diffusion-xl-base-1.0",
    api_key="your_huggingface_token",
    platform="0byte",
)

client = Client(config)

result = client.generate_image("A futuristic city at sunset")
with open("output.jpg", "wb") as f:
    f.write(result.image_bytes)

print("✅ Image verified at:", result.transaction_id)

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

zbyte-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

zbyte-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file zbyte-0.1.1.tar.gz.

File metadata

  • Download URL: zbyte-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for zbyte-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6352dab0732529b36d7d155a27f27d0ec939077cbcc1169e032ef63c90d9d5a5
MD5 0dd27941eb40f34fbc542591ce030244
BLAKE2b-256 90e4f7146e09a81886f216fef4bce6a556d1a37d917828cffb003468c0b4d714

See more details on using hashes here.

File details

Details for the file zbyte-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zbyte-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for zbyte-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfff56b22739e2c9b9a197f1a4f10cb847f14551bc4dc65cde48389a1b6d9f4a
MD5 bc289d12ba439a184f9aaf1328a54256
BLAKE2b-256 0ce67ebef35db44a70fcbfbda710e691de7f4f9cdbbd2cee0c56c73e1b584fce

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