Python SDK for 0byte image generation and proof anchoring
Project description
pip install 0byte-sdk
Features
- Generate images via Stability AI
- Anchor proofs via 0byte Rust backend
- Returns image bytes with embedded proof and Solana txn ID
Quick Start
from 0byte_sdk import Config, Client
# Initialize
cfg = Config(
stability_api_key="YOUR_STABILITY_KEY",
backend_url="https://api.0byte.tech/proof",
model="stable-diffusion-v1"
)
client = Client(cfg)
# Generate an image
result = client.generate_image(prompt="A futuristic city skyline at dawn")
print(result.transaction_id)
with open("output.png", "wb") as f:
f.write(result.image_bytes)
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.0.tar.gz
(5.0 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.0-py3-none-any.whl
(4.9 kB
view details)
File details
Details for the file zbyte-0.1.0.tar.gz.
File metadata
- Download URL: zbyte-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cef219f4089b61c420e63d2b0311b49bba48d16def6b29ba8297da088820824
|
|
| MD5 |
c74c6620bb3eab6d160e3bb38735330a
|
|
| BLAKE2b-256 |
36caccea057cbe3bf15481956025f5f2d8d28d02d1e3c943099e3d7b5718344d
|
File details
Details for the file zbyte-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zbyte-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 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 |
f0352625686d0b0c769aa2a71cbf6a02b6e96037663a5d32d244c3494f80bff4
|
|
| MD5 |
b5d54a4829f259275430b6c0f3693bef
|
|
| BLAKE2b-256 |
559eb0e6920c7c4f0d360183fdae449d19a0192e557e0962aa7cd37525516ba6
|