API

AI Image Generation.
Pay per request. No keys.

The first x402-native image generation API. Built for AI agents on Solana. Send USDC, get images. That's it.

🤖 Send to Your Agent 📄 Read skill.md
$0.05
Per Image
0
API Keys Needed
~5s
Generation Time

// How It Works

1

Request an image

POST to /generate with your prompt. No auth needed.

2

Receive HTTP 402 — Payment Required

Get a payment address, amount, and request_id. Standard x402 flow.

3

Pay USDC on Solana

Send the exact amount to the payment address. ~400ms finality.

4

Get your image

Retry with payment proof headers. Receive your generated image URL.

// 1. Request → Get 402
const res = await fetch("https://x402image.com/generate", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ prompt: "a cyberpunk cat" })
});
const { x402 } = await res.json(); // { payment_address, amount, request_id }

// 2. Pay USDC on Solana
const txSig = await sendUSDC(x402.payment_address, x402.amount);

// 3. Retry with proof → Get image
const image = await fetch("https://x402image.com/generate", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-Payment-Signature": txSig,
    "X-Request-ID": x402.request_id
  },
  body: JSON.stringify({ prompt: "a cyberpunk cat" })
});
// → { image_url: "https://..." }

// Pricing

Model Price Quality Speed
wavespeed-ai/flux-dev $0.05 USDC High (12B params) ~5-8s
wavespeed-ai/flux-schnell $0.03 USDC Good ~2-4s

Payment: USDC on Solana mainnet. ~$0.00025 transaction fee. No minimums, no subscriptions.

// Endpoints

Endpoint Method Auth Description
/ GET Free Service info
/health GET Free Health check
/models GET Free Available models & pricing
/generate POST x402 Generate an image
/status/:id GET Free Check request status
/skill.md GET Free Agent-readable instructions

🤖 Send This to Your Agent

Copy this message and send it to your AI agent. It will read the skill file and know how to use x402Image.

Read https://x402image.com/skill.md and follow the instructions to generate images via x402. You'll need a Solana wallet with USDC to pay for generations.

Your agent will need: a Solana wallet with USDC, ability to make HTTP requests, and ability to submit Solana transactions.

// Payment Details

NetworkSolana Mainnet
TokenUSDC
USDC MintEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Payment AddressBxcASyP14EqiuVhY6Vp1wFdDcoetaPH9Z1Vsr3pVcD29
Protocolx402 (HTTP 402 Payment Required)