{"uid":"cap_suuC6D8BzyEAPYpMdQ1iF","slug":"call402-com-image-generation-api-38e651b2","name":"call402.com Image Generation API","description":"USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.","url":"https://call402.com/api/image-generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text prompt describing the image to generate (model fixed server-side: fal-ai/flux/schnell)"}}},"responseSchema":{"type":"json","schema":{"type":"object","required":["prompt","images","seed","meta"],"properties":{"meta":{"type":"object","description":"source, model, images_count"},"seed":{"type":["number","null"]},"images":{"type":"array","description":"Generated images: url, content_type"},"prompt":{"type":"string"}}},"example":{"meta":{"model":"fal-ai/flux/schnell","source":"fal","images_count":1},"seed":12345,"images":[{"url":"https://fal.media/files/example.png","content_type":"image/png"}],"prompt":"a lighthouse on a cliff at sunset, digital painting"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0ltoQcfbnjIbGw88iMTTP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 fal-ai/flux/schnell, billed at $0.05 USDC per call via the x402 micropayment protocol on Base mainnet.","exampleAgentPrompt":"Generate an image of a futuristic city skyline at night with neon lights reflecting on rain-soaked streets, digital painting style.","exampleUseCases":[{"title":"AI agent autonomous visual content","prompt":"Create an image of a cozy autumn forest path with golden leaves falling, soft morning light filtering through the trees — I want a painterly, dreamy style."},{"title":"Product mockup scene generation","prompt":"Generate an image of a minimalist white desk setup with a laptop, coffee cup, and small plant, clean and modern aesthetic, top-down view."},{"title":"Social media post illustration","prompt":"Make me an image of a cheerful cartoon robot waving hello, bright colors, friendly and approachable style, simple background."}],"resultDescription":"A JSON object containing the echoed prompt, an array of generated images (each with a URL and content_type such as image/png), a seed number for reproducibility, and a meta object describing the source (fal), model (fal-ai/flux/schnell), and images_count.","failureModes":["402 Payment Required returned on first call — must pay with x402 client and retry with PAYMENT-SIGNATURE header","Missing or malformed PAYMENT-SIGNATURE header causes payment rejection","Empty or missing prompt field causes a request validation error","Payment on wrong network (not Base mainnet) or wrong token (not USDC) fails settlement","Rate limits or upstream fal-ai failures may result in 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call image generation API accessible to AI agents with a crypto wallet, especially in agentic pipelines that use the x402 micropayment protocol on Base mainnet. It is ideal when you want no subscription or API key overhead — just USDC per call. Prefer this over traditional image APIs when your agent stack already supports x402/fetch or any x402 client, and when flux/schnell quality is acceptable for your use case.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:35:09.578Z","isFirstParty":false,"canonicalSlug":"call402-com-image-generation-api-38e651b2"}