{"uid":"cap_3FCVge5J9Yoi6qEFW7BMw","slug":"x402img-ai-image-generation-f4a09974","name":"x402img AI Image Generation","description":"Pay-per-call image generation API for AI agents. Three quality tiers: fast ($0.02), quality ($0.10), premium ($0.20).","url":"https://api.x402img.com/api/generate-image?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"tier":{"enum":["fast","quality","premium"],"type":"string","description":"Quality tier: 'fast' = $0.02 (quick drafts), 'quality' = $0.10 (high quality), 'premium' = $0.20 (best quality, text rendering). Default: fast"},"prompt":{"type":"string","description":"Text description of the desired image"}}},"responseSchema":{"type":"object","properties":{"tier":{"type":"string"},"model":{"type":"string"},"notice":{"type":"string"},"success":{"type":"boolean"},"imageUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_555notLqtZSoo3xW_PHRB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI images from text prompts with three selectable quality tiers (fast, quality, premium) via micropayment","exampleAgentPrompt":"Generate an image of a cozy mountain cabin in winter with snow on the roof and warm light glowing from the windows — use the quality tier for a crisp, high-detail result.","exampleUseCases":[{"title":"Quick product concept visualization","prompt":"Generate a fast draft image of a minimalist wireless earbuds product on a white background — I just need a rough visual to share with the team."},{"title":"Premium marketing image with text overlay","prompt":"Create a premium-quality image of a barista pouring latte art in a sunlit café — I need the best quality available since it's going on our homepage."},{"title":"High-quality social media illustration","prompt":"Generate a quality-tier image of a futuristic cityscape at sunset with flying cars and neon lights for our sci-fi newsletter cover."}],"resultDescription":"Returns a JSON object containing a temporary URL to the generated image (imageUrl), an expiration timestamp (expiresAt), the model used, the quality tier selected, a success boolean, and an optional notice message. The image URL is time-limited and should be downloaded promptly.","failureModes":["Invalid or empty prompt returns an error response with success: false","Unsupported tier value causes a validation error","Payment not received or insufficient funds results in a 402 Payment Required response","Image URL expires after the expiresAt timestamp, making the link inaccessible","Network timeout for premium tier due to longer generation time","Content policy violation on prompt may result in rejected generation"],"whenToPreferThis":"Choose this endpoint when you need AI-generated images with selectable quality tiers and per-call micropayment pricing via x402. The fast tier ($0.02) is ideal for quick drafts and iteration; the quality tier ($0.10) suits production assets; the premium tier ($0.20) is best when text rendering accuracy and maximum image fidelity are required. Prefer this over alternatives when your agent stack already supports x402 payment protocol and you want cost-controlled generation without subscription commitments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T23:26:07.531Z","isFirstParty":false,"canonicalSlug":"x402img-ai-image-generation-f4a09974"}