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.mdPOST to /generate with your prompt. No auth needed.
Get a payment address, amount, and request_id. Standard x402 flow.
Send the exact amount to the payment address. ~400ms finality.
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://..." }
| 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.
| 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 |
Copy this message and send it to your AI agent. It will read the skill file and know how to use x402Image.
Your agent will need: a Solana wallet with USDC, ability to make HTTP requests, and ability to submit Solana transactions.
| Network | Solana Mainnet |
| Token | USDC |
| USDC Mint | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
| Payment Address | BxcASyP14EqiuVhY6Vp1wFdDcoetaPH9Z1Vsr3pVcD29 |
| Protocol | x402 (HTTP 402 Payment Required) |