Nano Banana par BlockRun - Génération d'images

VérifiéPrudence

Générez des images avec le modèle Nano Banana de Google via l'API x402 de BlockRun. Payez par requête en USDC sur Base, sans clé API.

Spar Skills Guide Bot
Data & IADébutant
1023/07/2026
Claude CodeCursorWindsurfCopilotCodex
#image-generation#micropayments#nano-banana#blockrun

Recommandé pour

Notre avis

Génère des images avec le modèle Nano Banana de Google via des micropaiements en USDC sur le réseau Base, sans clé API.

Points forts

  • Paiement à l'utilisation sans abonnement ni clé API.
  • Utilise la signature locale EIP-712, la clé privée ne quitte jamais la machine.
  • Plusieurs modèles disponibles (Nano Banana, DALL-E 3) avec des résolutions variées.

Limites

  • Nécessite de posséder des USDC sur le réseau Base.
  • Le coût par image peut être un frein pour des usages intensifs.
  • La configuration initiale (bridge, wallet) peut être complexe pour les débutants.
Quand l'utiliser

Idéal pour générer ponctuellement des images sans engagement, notamment dans un environnement décentralisé ou pour des applications nécessitant des micropaiements.

Quand l'éviter

À éviter si vous avez besoin de générer un grand volume d'images (coûts cumulés) ou si vous préférez un modèle d'abonnement classique.

Analyse de sécurité

Prudence
Score qualité85/100

The skill involves handling a crypto wallet private key for micropayments. While the key is intended to stay local, the risk of exposure through environment variables or a malicious package exists.

Points d'attention
  • Instructs user to set a cryptocurrency wallet private key in environment variables, which if mishandled could lead to loss of funds.
  • Relies on external package `blockrun-llm` which could potentially have access to the private key if malicious.

Exemples

Generate a cute cat
Generate an image of a cute cat wearing a space helmet using Nano Banana.
Use pro model
Create a high-resolution image of a futuristic cityscape at 4K using google/nano-banana-pro.
Save to folder
Generate an image of a serene mountain lake and save it to /home/user/images.

name: nano-banana-blockrun description: "Nano Banana by BlockRun - Generate images using Google's Nano Banana via x402 micropayments. Use when the user asks to generate, create, draw, or make images. Pay-per-request via USDC on Base, no API keys needed." allowed-tools: Read, Bash(python:), Bash(python3:), Bash(pip:), Bash(pip3:)

Nano Banana by BlockRun

Generate images using Google's Nano Banana model via BlockRun's x402 API. Pay-per-request with USDC on Base - no API keys needed.

Setup (one-time)

  1. Install the SDK:

    pip install blockrun-llm
    
  2. Get USDC on Base network:

    • Bridge from Ethereum: https://bridge.base.org
    • Or buy directly on Coinbase and withdraw to Base
    • You need ~$1-5 USDC to start generating images
  3. Set your wallet private key:

    # Copy .env.example to .env and add your key
    cp .env.example .env
    
    # Or export directly
    export BLOCKRUN_WALLET_KEY=0x...
    

Network: Base (Chain ID: 8453) Payment: USDC only

Generate an Image

from blockrun_llm import ImageClient

client = ImageClient()
result = client.generate("a cute cat wearing a space helmet")
print(result.data[0].url)

Or use the script:

python scripts/generate.py "a cute cat wearing a space helmet"

# Save to a specific directory
python scripts/generate.py "a cute cat" "google/nano-banana" "/path/to/save"

# Or use OUTPUT_DIR environment variable
OUTPUT_DIR=/path/to/save python scripts/generate.py "a cute cat"

Available Models

| Model | Price | Resolution | |-------|-------|------------| | google/nano-banana | ~$0.05 | 1024x1024 | | google/nano-banana-pro | ~$0.10 | up to 4K | | openai/dall-e-3 | ~$0.04-0.12 | 1024x1024 to 1792x1024 |

How It Works

  1. Your request goes to BlockRun API (https://blockrun.ai)
  2. BlockRun returns HTTP 402 Payment Required
  3. SDK signs USDC payment locally (key never leaves your machine)
  4. Only the signature is sent to server
  5. Image is generated and returned

No API keys, no subscriptions - just crypto micropayments.

Security

Your private key NEVER leaves your machine.

The SDK uses EIP-712 typed data signing locally. Only the signature is transmitted. Same security as signing any MetaMask transaction.

Links

Skills similaires