{"uid":"cap_GMw6t_tNjWzPsnNbjh5no","slug":"recoupable-ai-image-generation-b2f85a74","name":"Recoupable AI Image Generation","description":"Generate an image from a text prompt using AI","url":"https://api.recoupable.com/api/x402/image/generate","method":"GET","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_8iREkyIi7qSaRug74X8fL","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 a base64-encoded file with optional Arweave upload","exampleAgentPrompt":"Generate an image of a futuristic cityscape at sunset with neon lights reflecting off rain-soaked streets, cyberpunk style.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the generated image as a base64-encoded string with its IANA media type, an optional fetchable image URL, Arweave transaction details if uploaded, token usage statistics (input, output, reasoning, and total tokens), and any Arweave error messages if the upload failed.","failureModes":["Invalid or empty prompt returns an error response","Payment not provided or insufficient results in a 402 Payment Required response","Arweave upload failure returns an arweaveError string but still provides the base64 image","Model timeout or overload may result in a server error","Malformed request parameters may return a 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need to generate an AI image from a text prompt and receive it as a base64-encoded file, optionally with a fetchable URL and decentralized Arweave storage. It is ideal for agents operating in the x402 payment ecosystem and needing on-chain or permanent image storage alongside generation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:34:33.105Z","isFirstParty":false}