{"uid":"cap_XQ1jjQZKhL36EzZuTKPJp","slug":"stable-diffusion-v1-5-inpainting-image-generation-via-x402-32b4e688","name":"Stable Diffusion v1.5 Inpainting Image Generation via x402","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://ged-x402-image.jvalamis.workers.dev/v1/image/stable-diffusion-v1-5-inpainting","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"},"prompt":{"type":"string"},"num_steps":{"type":"integer"}}},"responseSchema":{"type":"json","example":{"image":"<base64>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.035/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dMcdyHBP1wayB77J-5ELL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates images using the Stable Diffusion v1.5 inpainting model, paid per-call with USDC on multiple blockchains, no API key required.","exampleAgentPrompt":"Generate an image of a serene mountain lake at sunrise with pine trees reflecting in the water — make it 512x512 pixels with 20 diffusion steps for best quality.","exampleUseCases":[{"title":"Crypto-native NFT art generation","prompt":"Create a futuristic cyberpunk portrait with neon colors and geometric patterns, 768x768 pixels, paying with USDC on Solana — I want high quality so crank up the diffusion steps to 30."},{"title":"Fix and enhance product photos instantly","prompt":"I've got a product shot that needs some touch-ups — can you inpaint a cleaner background and remove the shadows? Make it 512x512 and use stable diffusion v1.5 to blend everything naturally, then send me the PNG file."},{"title":"Community art generation no signup","prompt":"Generate a pixel art style illustration of a medieval fantasy tavern scene with warm candlelight, 640x640 resolution, 25 steps — pay with USDC on Base since that's what our treasury holds."}],"resultDescription":"Returns a JSON object containing a base64-encoded string of the generated image, which can be decoded into a PNG or JPEG image file.","failureModes":["Payment not received or insufficient USDC balance — returns HTTP 402 requiring payment","Invalid prompt or missing required fields — returns 400 bad request","num_steps out of range (must be 1-20) — validation error","Unsupported blockchain network for payment — payment rejected","Model inference timeout on Cloudflare Workers — returns 500 or timeout error","Malformed base64 in response if model fails internally"],"whenToPreferThis":"Prefer this endpoint when you need on-demand stable diffusion image generation without API key registration, especially when paying with USDC on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents operating in crypto-native environments using the x402 payment protocol. Best for inpainting-style generation tasks using the v1.5 model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:37.184Z","isFirstParty":false}