Skip to content

v0.2.0 - ImageClient

Choose a tag to compare

@1bcMax 1bcMax released this 29 Dec 03:09
· 99 commits to main since this release
a99e521

What's New

ImageClient for Image Generation

  • New ImageClient class for generating images via x402 micropayments
  • Support for Nano Banana (Google Gemini) and DALL-E 3 models
  • Pay-per-image with USDC on Base

Usage

from blockrun_llm import ImageClient

client = ImageClient()  # Uses BLOCKRUN_WALLET_KEY from env
result = client.generate('A cute cat wearing a space helmet')
print(result.data[0].url)

Available Image Models

  • google/nano-banana - ~$0.05/image
  • google/nano-banana-pro - ~$0.10/image (up to 4K)
  • openai/dall-e-3 - ~$0.04-0.12/image
  • openai/gpt-image-1 - ~$0.02-0.17/image