Skip to content
View x402-image-generation-api's full-sized avatar
  • Joined Sep 11, 2026

Block or report x402-image-generation-api

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

x402 Image Generation API

Pay-per-call image generation API for autonomous AI agents.
Protocol: x402 · Network: Base · Payment: USDC · No API keys required.

Live x402 License: MIT


What is this?

An HTTP API that generates images from text prompts. Instead of API keys or subscriptions, clients pay per call in USDC using the x402 protocol. Perfect for AI agents that need image generation without account management.

Key features:

  • 🚀 No API keys — authentication replaced by payment
  • ⚡ Instant settlement — USDC on Base L2, sub-second finality
  • 🎨 Three quality tiers — from $0.02 to $0.20 per image
  • 🤖 Agent-friendly — discoverable via Bazaar, x402scan, MCP
  • 📄 OpenAPI spec — available at /openapi.json

Pricing

Tier Model Price Best for
fast FLUX.1 Schnell $0.02 Drafts, bulk generation
quality FLUX 1.1 Pro $0.10 High-quality production
premium Ideogram v3 Quality $0.20 Best quality, text rendering

Quick start

1. Install dependencies

npm install

Popular repositories Loading

  1. x402-image-generation-api x402-image-generation-api Public

    Pay-per-call image generation API for AI agents. USDC payments via x402 protocol. Three quality tiers.

    JavaScript