{"uid":"cap_XFzLdoq6jX_nzP5o7tN5R","slug":"agent402-tools-premium-image-generation-46cc640c","name":"agent402.tools Premium Image Generation","description":"Generate a premium image from a text prompt using GPT Image 2 (medium quality, 1024x1024). Flagship model with best detail and coherence. No API key needed; pay per call via x402. Returns base64 PNG. Prompt capped at 4000 chars.","url":"https://agent402.tools/api/image-gen-premium","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description of the desired image (max 4000 chars)"}}},"responseSchema":{"type":"json","example":{"size":"1024x1024","image":"<base64-encoded PNG>","model":"gpt-image-2","quality":"medium","provider":"openai","revised_prompt":"A single red apple on a white background"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.3","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.3/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.3","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.3","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_di_JTUpwZ2rAXfqKDBpSc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.3","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a 1024x1024 premium PNG image from a text prompt using GPT Image 2 (medium quality), returning the result as a base64-encoded PNG via pay-per-call x402 payment.","exampleAgentPrompt":"Generate a premium 1024x1024 image of a lone astronaut standing on a red Mars landscape at sunset, with Earth visible in the sky and dramatic orange lighting — use GPT Image 2 for maximum detail.","exampleUseCases":null,"resultDescription":"A base64-encoded PNG image at 1024x1024 resolution generated by GPT Image 2 at medium quality, reflecting the input prompt with high detail and coherence.","failureModes":["Prompt exceeds 4000 characters — request rejected with validation error","Payment via x402 fails or is insufficient — request blocked","Model unavailable or overloaded — server error returned","Prompt contains disallowed content — content policy rejection","Network timeout during image generation — no image returned"],"whenToPreferThis":"Choose this endpoint when you need a high-detail, coherent AI-generated image using GPT Image 2 without managing your own API key, and are willing to pay $0.30 USDC per call via x402. Prefer this over standard/economy alternatives when image quality and detail are priorities. It is ideal for agents that need on-demand image generation with crypto-native pay-per-call billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:50:58.105Z","isFirstParty":false}