Skip to main content

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


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)

Uploaded Source

Built Distribution

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

zbyte-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for zbyte-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8cef219f4089b61c420e63d2b0311b49bba48d16def6b29ba8297da088820824
MD5 c74c6620bb3eab6d160e3bb38735330a
BLAKE2b-256 36caccea057cbe3bf15481956025f5f2d8d28d02d1e3c943099e3d7b5718344d

See more details on using hashes here.

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

Hashes for zbyte-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0352625686d0b0c769aa2a71cbf6a02b6e96037663a5d32d244c3494f80bff4
MD5 b5d54a4829f259275430b6c0f3693bef
BLAKE2b-256 559eb0e6920c7c4f0d360183fdae449d19a0192e557e0962aa7cd37525516ba6

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