{"uid":"cap_nzrzuvWtWNR8jH02X3oNj","slug":"recoup-api-vercel-app-486eec18","name":"Recoup AI Image Generation","description":"Generate an image from a text prompt using AI","url":"https://recoup-api.vercel.app/api/x402/image/generate","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"object","properties":{"image":{"type":"object","properties":{"base64":{"type":"string","description":"Image as base64 encoded string"},"mediaType":{"type":"string","description":"IANA media type of the image"}},"description":"Generated image file"},"usage":{"type":"object","properties":{"inputTokens":{"type":"number","description":"Number of tokens used for the prompt"},"totalTokens":{"type":"number","description":"Number of tokens used for the total"},"outputTokens":{"type":"number","description":"Number of tokens used for the output"},"reasoningTokens":{"type":"number","description":"Number of tokens used for the reasoning"}},"description":"Token usage information for the image generation"},"moment":{"type":"object","description":"In Process moment creation result (nullable)"},"imageUrl":{"type":"string","description":"Fetchable URL for the uploaded image (nullable)"},"arweaveError":{"type":"string","description":"Error message if Arweave upload failed (optional)"},"arweaveResult":{"type":"object","description":"Arweave transaction result (nullable)"}},"description":"GenerateImageResult containing the generated image and metadata"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XCdmlGy7AvTgTWOOBtrdq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an AI image from a text prompt and returns it as a base64-encoded string","exampleAgentPrompt":"Generate an AI image of a serene mountain landscape with snow-capped peaks and a clear blue sky — give me the result as a base64 image.","exampleUseCases":[{"title":"Create product mockup visuals for listings","prompt":"I need you to generate product images for my e-commerce site. Create an AI image of a sleek wireless headphone in midnight blue with premium packaging, and give me the result as base64 so I can embed it directly."},{"title":"Design social media post graphics","prompt":"Help me make eye-catching social content by generating an AI image of a cozy coffee shop interior with warm lighting and autumn vibes — I want the base64 output so I can post it immediately to our feeds."},{"title":"Illustrate blog articles visually","prompt":"I'm writing a blog post about sustainable living and need a visual. Generate an AI image of an eco-friendly home with solar panels and a lush garden, and return it as base64 so I can embed it in the article."}],"resultDescription":"Returns a JSON object containing an image field with a base64-encoded string of the generated image and its media type, ready for display or further processing.","failureModes":["Missing X-PAYMENT header returns 402 with payment requirements and accepted assets","Invalid or malformed prompt may produce unexpected or low-quality images","Payment asset or network mismatch causes payment rejection","Prompt too long or containing disallowed content may be rejected","Service unavailable or timeout on the Vercel deployment"],"whenToPreferThis":"Use this endpoint when you need to generate a novel image from a text description and want the result returned as a base64-encoded image payload, particularly in x402 micropayment-enabled agentic workflows on Base network. Best suited for single-image, on-demand generation at low cost ($0.15 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:51.908Z","isFirstParty":false}