Metadata-Version: 2.4
Name: zbyte
Version: 0.1.2
Summary: Python SDK for 0byte image generation and proof anchoring
Author-email: 0byte <nitinmewar28@gmail.com>
License: MIT
Project-URL: Homepage, https://www.0byte.tech
Project-URL: Source, https://github.com/0byte-lab/python-sdk
Keywords: ai,proof,solana,image verification,zero byte
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28
Requires-Dist: pydantic>=1.10
Requires-Dist: pillow
Requires-Dist: diffusers
Requires-Dist: transformers
Requires-Dist: torch
Requires-Dist: accelerate
Dynamic: license-file

<p align="center">
  <img src="public/assets/0byte-logo-dark.png" alt="0byte logo" width="200"/>
</p>

<p align="center">
  <a href="https://www.0byte.tech/">
    <img src="https://img.shields.io/badge/Get%20Started-1abc9c?style=for-the-badge" alt="Get Started">
  </a>
  <a href="https://0byte.tech/verify">
    <img src="https://img.shields.io/badge/0byte%20Verifer-4C51BF?style=for-the-badge" alt="0byte Verifier">
  </a>
  <a href="https://pypi.org/project/zbyte">
    <img src="https://img.shields.io/badge/PyPI-zbyte-blue?style=for-the-badge" alt="Install from PyPI">
  </a>
</p>

# 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

```bash
pip install zbyte
```

## Quickstart
```python
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)
