{"uid":"cap_p1LwOnU2KXXVjlUAi9oG9","slug":"adprompt-x402-image-generation-api-db98c463","name":"AdPrompt x402 Image Generation API","description":"Public x402 API for the full AdPrompt engine and bundle catalog. Paid endpoints return an x402 v2 402 challenge until a valid payment is supplied.","url":"https://x402.adprompt.io/v1/images/generate","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4ws7fj7NZ1dTnpIgoX7aA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates images from a prompt via a pay-per-call x402 paywall endpoint, charging $0.01 USDC per request","exampleAgentPrompt":"Generate an image of a sleek black coffee mug on a minimalist white desk for my brand AdPrompt — I need it for a social media ad campaign.","exampleUseCases":[{"title":"Social media ad visual creation","prompt":"Create an image of a happy family enjoying a summer barbecue in a sunny backyard — I need it for a Facebook ad campaign for my outdoor furniture brand."},{"title":"Product mockup for e-commerce","prompt":"Generate a photorealistic image of a white t-shirt laid flat on a light wooden surface for my online clothing store's product listing."},{"title":"Marketing banner background generation","prompt":"Produce an AI-generated abstract blue gradient background with soft geometric shapes for use as a landing page hero banner for my SaaS product launch."}],"resultDescription":"Returns a generated image (as a URL or binary), produced by the AdPrompt AI image generation service. If payment has not been provided, the endpoint first returns an HTTP 402 challenge (x402 v2 format) requiring a $0.01 USDC payment; once payment is confirmed, the image is returned.","failureModes":["HTTP 402 returned if no valid x402 payment is supplied — agent must complete the payment challenge before the image is delivered","Invalid or expired payment token results in continued 402 rejection","Prompt may be rejected if it violates content policy, returning a 4xx error","Network timeout or service unavailability may result in 5xx errors","Ambiguous or very short prompts may produce low-quality or irrelevant images"],"whenToPreferThis":"Choose this endpoint when you need programmatic AI image generation on a per-call micropayment basis (no subscription required), especially within an x402-compatible agent workflow. It is particularly suited for marketing and advertising use cases via AdPrompt's platform, and when you need to generate images at $0.01 USDC per call with automatic payment handling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:42.926Z","isFirstParty":false}