Python SDK for 0byte image generation and proof anchoring
Project description
0byte SDK
0byte 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)
```](url)
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
zbyte-0.1.2-py3-none-any.whl
(5.3 kB
view details)
File details
Details for the file zbyte-0.1.2.tar.gz.
File metadata
- Download URL: zbyte-0.1.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b9f2c33b31408b4d38ab0c800000a86696f91dccb52e7aa085e2edadf306de
|
|
| MD5 |
5b5940d14378cbf533e6489656af177a
|
|
| BLAKE2b-256 |
9042bf2c515d77f5e67fa54a0e91408062d0ee7184ce7b38099d19f0a3dde315
|
File details
Details for the file zbyte-0.1.2-py3-none-any.whl.
File metadata
- Download URL: zbyte-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb62e0eb8284395176b5a716e7af2671be79796e0eb9f966cf80161de42b2008
|
|
| MD5 |
fdfa5658da472bfc1a7298b694c740ab
|
|
| BLAKE2b-256 |
62ed5c3eb1a23f931a85e3cca8397c8e842cceae38e59db1927cfab5b3b73def
|