{"uid":"cap_np7AKUZY80TQaGV2GZFBp","slug":"recoup-ai-image-generator-88782eef","name":"Recoup AI Image Generator","description":"Generate an image from a text prompt using AI","url":"https://recoup-api-git-sweetmantech-myc-3577-ae06b3-recoupable-ad724970.vercel.app/api/x402/image/generate","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt","uploadToArweave"],"properties":{"prompt":{"type":"string"},"uploadToArweave":{"type":"boolean"}}},"responseSchema":{"type":"object","required":["_x402","error","accepts","x402Version","_paymentRequired","_wwwAuthenticate"],"properties":{"_x402":{"type":"boolean"},"error":{"type":"string"},"accepts":{"type":"array","items":{"type":"object","required":["asset","extra","payTo","scheme","network","mimeType","resource","description","outputSchema","maxAmountRequired","maxTimeoutSeconds"],"properties":{"asset":{"type":"string"},"extra":{"type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"}}},"payTo":{"type":"string"},"scheme":{"type":"string"},"network":{"type":"string"},"mimeType":{"type":"string"},"resource":{"type":"string"},"description":{"type":"string"},"outputSchema":{"type":"object","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams","discoverable"],"properties":{"type":{"type":"string"},"method":{"type":"string"},"queryParams":{"type":"object","required":["files","prompt"],"properties":{"files":{"type":"string"},"prompt":{"type":"string"}}},"discoverable":{"type":"boolean"}}},"output":{"type":"object","required":["type","properties","description"],"properties":{"type":{"type":"string"},"properties":{"type":"object","required":["image","usage","moment","imageUrl","arweaveError","arweaveResult"],"properties":{"image":{"type":"object","required":["type","properties","description"],"properties":{"type":{"type":"string"},"properties":{"type":"object"},"description":{"type":"string"}}},"usage":{"type":"object","required":["type","properties","description"],"properties":{"type":{"type":"string"},"properties":{"type":"object"},"description":{"type":"string"}}},"moment":{"type":"object","required":["type","description"],"properties":{"type":{"type":"string"},"description":{"type":"string"}}},"imageUrl":{"type":"object","required":["type","description"],"properties":{"type":{"type":"string"},"description":{"type":"string"}}},"arweaveError":{"type":"object","required":["type","description"],"properties":{"type":{"type":"string"},"description":{"type":"string"}}},"arweaveResult":{"type":"object","required":["type","description"],"properties":{"type":{"type":"string"},"description":{"type":"string"}}}}},"description":{"type":"string"}}}}},"maxAmountRequired":{"type":"string"},"maxTimeoutSeconds":{"type":"number"}}}},"x402Version":{"type":"number"},"_paymentRequired":{"type":"boolean"},"_wwwAuthenticate":{"type":"null"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"0.00","reviews":1,"stars":null,"state":"rated"},"availabilityStatus":"down","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_kUozGX8cNhO3WuXx0DMGY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":null,"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 base64 data, optionally uploading to Arweave","exampleAgentPrompt":"Can you generate an AI image of a serene sunset over a mountain lake with orange and purple colors — don't upload it to Arweave, just give me the image data.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the generated image as a base64-encoded data payload, ready to decode and display or save.","failureModes":["Missing X-PAYMENT header — returns 402 with payment instructions and accepted asset details","Invalid or malformed prompt — may return an error or low-quality result","Payment amount or asset mismatch — payment rejected by the x402 facilitator","Upstream AI image model unavailable — service error response","Request timeout if the AI model takes too long to generate"],"whenToPreferThis":"Use this endpoint when you need to generate an AI image from a text prompt via a pay-per-call micropayment model (x402/USDC on Base), and want the result returned as base64 image data — particularly useful in agentic workflows where you want a lightweight, on-demand image generation call without managing a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-06-16T18:11:52.248Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-08-24T04:38:29.974Z","isFirstParty":false}