{"uid":"cap_KIdie8gQFvaITVytyB4As","slug":"api-the402-ai-faf44fad","name":"the402.ai Image Generation Purchase","description":"Purchase: Image Generation","url":"https://api.the402.ai/v1/services/svc_ef347eb5935b4ef4/purchase","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object","properties":{"job_id":{"type":"string"},"status":{"type":"string"},"thread_id":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.053","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.053/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NS3eLsmrepsE1AELkLE4P","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.053","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases an AI image generation job on the402.ai marketplace via x402 micropayment, returning a generated image","exampleAgentPrompt":"Generate an image of a futuristic city skyline at sunset with neon lights and flying cars, using the402.ai image generation service — pay the per-call fee from my USDC balance.","exampleUseCases":null,"resultDescription":"Returns a generated image (or a job ID to poll for completion) after charging $0.053 USDC via the x402 payment protocol. The agent receives confirmation of the purchase and either the image data directly or a reference to retrieve the output.","failureModes":["Insufficient USDC balance — payment fails, image not generated","Invalid or missing prompt — service returns error","Job timeout or generation failure — status endpoint must be polled","x402 payment header malformed — 402 Payment Required response","Service temporarily unavailable — retry needed"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to generate images on a pay-per-call basis using USDC micropayments via the x402 protocol, particularly within an agentic workflow that avoids subscription billing. Prefer it over other image generation APIs when the agent is already operating within the402.ai marketplace ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T09:25:21.074Z","isFirstParty":false}