{"uid":"cap_-OYihNHq6uPxv8RY2YY3I","slug":"recoupable-ai-image-generator-5c2554f7","name":"Recoupable AI Image Generator","description":"Generate an image from a text prompt using AI","url":"https://api.recoupable.dev/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":"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.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_PfBg0xrMNq28RKEGdrQ5s","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 image from a text prompt using AI and returns it as a base64-encoded file with optional Arweave upload","exampleAgentPrompt":"Generate an image of a futuristic cityscape at night with neon lights reflecting off wet streets and towering skyscrapers.","exampleUseCases":[{"title":"Marketing visual from product description","prompt":"Create an AI-generated image of a sleek black coffee mug sitting on a rustic wooden table with soft morning light coming through a window — I need it for a product listing."},{"title":"Fantasy illustration for game asset","prompt":"Generate an image of a fire-breathing dragon perched on a mountain peak at sunset with dramatic storm clouds in the background — I need it for my game's loading screen."},{"title":"Social media post artwork","prompt":"Make me an AI image of a minimalist beach scene with a single palm tree, turquoise water, and a pastel pink sky — I want to use it as a background for an Instagram post."}],"resultDescription":"Returns a JSON object containing the generated image as a base64-encoded string with its IANA media type, a fetchable image URL, optional Arweave transaction details for permanent decentralized storage, and token usage statistics (input, output, reasoning, and total tokens consumed).","failureModes":["Invalid or missing text prompt returns an error response","Arweave upload failure returns an arweaveError string but still provides the base64 image","Payment not fulfilled (x402 protocol) results in 402 Payment Required before generation","Prompt violates content policy and is rejected","Token limits exceeded causing generation failure","Service timeout for complex or high-resolution generations"],"whenToPreferThis":"Choose this endpoint when you need AI image generation with built-in x402 micropayment support and optional decentralized Arweave storage. It is ideal for agent workflows that require pay-per-use image creation without subscription overhead, or when permanent on-chain image persistence via Arweave is desirable alongside the generated output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:33:19.649Z","isFirstParty":false}