{"uid":"cap_-k7mhMz98EwULbfuQkIYN","slug":"recoup-api-ai-image-generation-8ac75108","name":"Recoup API - AI Image Generation","description":"Generate an image from a text prompt using AI","url":"https://recoup-api.vercel.app/api/image/generate","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"Text prompt describing the image to generate"}}},"responseSchema":{"output":{"type":"object","properties":{"result":{"type":"object","properties":{"usage":{"type":"object","description":"Token usage information for the image generation"},"images":{"type":"array","items":{"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"},"description":"Array of all generated images"}},"description":"GenerateImageResult containing the generated images and metadata"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01111","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01111/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01111","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01111","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8N5hnwc1iTPxessav2fET","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01111","costPer":"request","priority":0,"asset":null,"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 string","exampleAgentPrompt":"Generate an image of a golden retriever playing fetch on a sunny beach at sunset, with waves in the background.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing an array of generated images, each with a base64-encoded image string and its IANA media type, plus token usage metadata for the generation request.","failureModes":["Missing or empty prompt returns an error","Prompt violates content policy and is rejected","Payment not authorized or insufficient USDC balance (x402 payment required at $0.01111 per call)","Model unavailable or upstream AI service error","Malformed request schema results in 400 error","Timeout if generation takes too long"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate images from text descriptions and require the result as a base64-encoded string (e.g., for embedding directly in applications). It is well-suited for agents that need on-demand image creation without managing separate storage, and that are integrated with x402 micropayment flows on Vercel-hosted infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:38:08.794Z","isFirstParty":false}