{"uid":"cap_vqFxDlEdg7S6gpCqX_7IG","slug":"onecent-pay-per-image-c6424dc9","name":"OneCent Pay-Per-Image","description":"Pay-per-call image generation. One USDC micropayment on Base returns one AI image (gemini-3-pro-image class) as base64 JPEG.","url":"https://onecent-x402-pw76aqweia-uc.a.run.app/generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text prompt for the image"},"aspect_ratio":{"type":"string","description":"One of 1:1,4:3,3:4,16:9,9:16,3:2,2:3"}}},"responseSchema":{"type":"json","example":{"b64_json":"<base64-encoded JPEG>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QvkHpvmBYCZ-WCbt9Qd7j","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a single AI image from a text prompt with a $0.03 USDC micropayment on Base, returning a base64-encoded JPEG.","exampleAgentPrompt":"Generate an AI image of a serene Japanese tea garden at sunrise in 16:9 widescreen format — pay the USDC micropayment automatically.","exampleUseCases":[{"title":"Social media visual creation","prompt":"Create an AI image of a cozy autumn coffee shop with warm lighting and falling leaves outside the window, in a square 1:1 format, and pay the micropayment to get it."},{"title":"Product concept visualization","prompt":"Generate a 4:3 image of a sleek minimalist smartwatch on a marble surface with soft studio lighting — I need it for a product mockup."},{"title":"Portrait-format story illustration","prompt":"Make me a 9:16 vertical AI image of a lone astronaut standing on a red desert planet with two moons in the sky, for a sci-fi story I'm writing."}],"resultDescription":"A JSON object containing a single field `b64_json` with the full base64-encoded JPEG of the generated image. The agent must decode this string to obtain the raw image bytes for display, storage, or downstream processing.","failureModes":["Payment failure — insufficient USDC balance or wallet not configured causes a 402 error before generation begins","Invalid aspect ratio — supplying a ratio not in the allowed enum returns a validation error","Empty or missing prompt — no prompt provided results in a bad request error","Generation timeout — model takes too long and the request times out with a 5xx error","Base64 decoding issues — malformed response if the upstream model returns an unexpected format"],"whenToPreferThis":"Choose this endpoint when you need a single on-demand AI image with no subscription or API key setup — just a $0.03 USDC micropayment on Base. Ideal for agents that generate images infrequently or on a per-task basis, where pay-per-call economics are preferable to a monthly plan. Prefer this over subscription image APIs when cost predictability at the individual-call level matters, or when the agent environment already has a Base wallet configured for x402 payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:33:09.568Z","isFirstParty":false,"canonicalSlug":"onecent-pay-per-image-c6424dc9"}