{"uid":"cap_E8xSemmTnZRgi_jezrgMl","slug":"agent402-tools-image-generation-hd-5f027560","name":"agent402.tools Image Generation HD","description":"Generate a higher-quality image from a text prompt using GPT Image 2 (medium quality, 1024x1024). No API key needed; pay per call via x402. Returns base64 PNG. Prompt capped at 2000 chars.","url":"https://agent402.tools/api/image-gen-hd","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Text description of the desired image (max 2000 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.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LmR00_zXVn2_GCk2E7RWz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a higher-quality 1024x1024 image from a text prompt using GPT Image (mini, medium quality), returning a base64-encoded PNG, paid per-call via x402.","exampleAgentPrompt":"Generate a high-quality 1024x1024 image of a futuristic cityscape at sunset with neon lights reflecting on wet streets — return it as a base64 PNG.","exampleUseCases":null,"resultDescription":"A base64-encoded PNG image (1024x1024 pixels) rendered at medium quality by GPT Image (mini), representing the scene described in the input prompt.","failureModes":["Prompt exceeds 2000 characters — request rejected","Payment not provided or insufficient USDC via x402 — 402 Payment Required returned","GPT Image generation fails due to content policy violation — error response returned","Malformed request body or missing prompt field — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a higher-quality 1024x1024 image generated from a text prompt without requiring an OpenAI API key, and are willing to pay $0.10 USDC per call via x402. Prefer over the standard image-gen endpoint when medium quality output is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:17:24.292Z","isFirstParty":false}