{"uid":"cap_FGCFrPKGn_VrrHgnl_nD7","slug":"agent402-tools-gpt-image-generation-ca10ed40","name":"agent402.tools GPT Image Generation","description":"Generate an image from a text prompt using GPT Image 2 (low quality, 1024x1024). No API key needed; pay per call via x402. Returns base64 PNG. Prompt capped at 1000 chars.","url":"https://agent402.tools/api/image-gen","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description of the desired image (max 1000 chars)"}}},"responseSchema":{"type":"json","example":{"size":"1024x1024","image":"<base64-encoded PNG>","model":"gpt-image-2","quality":"low","provider":"openai","revised_prompt":"A single red apple on a white background"}},"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_kMjmbRO57Ot4QiM8EdYjw","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 1024x1024 PNG image from a text prompt using GPT Image (mini, low quality), returning a base64-encoded result with pay-per-call billing via x402.","exampleAgentPrompt":"Generate an image of a golden retriever puppy playing in autumn leaves in a sunny park — I need it as a base64 PNG.","exampleUseCases":null,"resultDescription":"A base64-encoded PNG image at 1024x1024 resolution, generated by GPT Image (mini, low quality) based on the provided text prompt. The agent receives the raw base64 string which can be decoded and saved or rendered directly.","failureModes":["Prompt exceeds 1000 characters — request rejected with validation error","Payment via x402 fails or is insufficient — call not processed","OpenAI GPT Image service unavailable — upstream error returned","Empty or missing prompt field — bad request error","Content policy violation in prompt — generation refused"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost AI-generated image without managing your own API keys or subscriptions. It is ideal for agents that need pay-per-use image generation via x402 micropayments at $0.03 USDC per call, and when a 1024x1024 low-quality PNG is sufficient for the use case.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:50:55.217Z","isFirstParty":false}