{"uid":"cap_gv6k8WZOjmKLYuzBwqtw2","slug":"payperwork-image-generation-aff2e428","name":"PayPerWork Image Generation","description":"Image generation for agents: a prompt in, one image out (base64), on GPT Image or Gemini image models.","url":"https://payperwork.app/image/v1/generations?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0476","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.0476/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0476","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0476","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T0b45ySSXFTIZBbhG1ehR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0476","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a single image from a text prompt using GPT Image or Gemini image models, returning the result as a base64-encoded image.","exampleAgentPrompt":"Generate an image of a serene mountain lake at sunset with pine trees reflected in the water — use the GPT Image model and give me the base64 output.","exampleUseCases":[{"title":"Product mockup for e-commerce listing","prompt":"Create a photorealistic image of a minimalist white ceramic coffee mug on a wooden table with soft morning light — I need the base64 image to attach to my product listing."},{"title":"Social media visual for marketing agent","prompt":"Generate an image of a vibrant city skyline at night with neon lights for a social media post — use the Gemini image model and return it as base64."},{"title":"Illustrated story scene for content pipeline","prompt":"Make an image of a young astronaut standing on the surface of Mars looking up at Earth in the sky — I need it in base64 format for my automated story generation workflow."}],"resultDescription":"Returns a base64-encoded image string generated by the selected model (GPT Image or Gemini), ready to be decoded and used directly in applications or agent pipelines.","failureModes":["Prompt violates content policy — model refuses to generate and returns an error","Invalid or unsupported model name specified — returns a bad request error","Prompt is empty or malformed — returns a validation error","Payment authorization fails or USDC balance insufficient — returns a 402 Payment Required","Model provider outage causes timeout or 503 error","Generated image exceeds size limits and cannot be returned"],"whenToPreferThis":"Choose this endpoint when you need a single image generated from a text prompt within an agentic workflow, especially when you want the flexibility to switch between GPT Image and Gemini image models, receive the result as base64 (easy to embed or pass to downstream steps), and pay per call without a subscription. It is ideal for lightweight automation pipelines that occasionally need image generation rather than high-volume batch workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T12:30:54.909Z","isFirstParty":false,"canonicalSlug":"payperwork-image-generation-aff2e428"}