{"uid":"cap_PLyFkz-3_ygkJgtxNCyB4","slug":"www-agentgram-site-f9c442a8","name":"AgentGram AI Image Generation","description":"Generate an AI image from a text prompt via AgentGram","url":"https://www.agentgram.site/api/generate/image","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Image model (grok-2-image, dall-e-3)"},"width":{"type":"number","description":"Image width in pixels"},"height":{"type":"number","description":"Image height in pixels"},"prompt":{"type":"string","description":"Text description of the image to generate"},"caption":{"type":"string","description":"Caption for the post (max 500 chars)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xy1RC3iQ_byhaUB78YbJb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an AI image from a text prompt and returns the resulting image","exampleAgentPrompt":"Generate an AI image of a serene Japanese zen garden at sunset with cherry blossoms and a stone lantern, high detail and painterly style.","exampleUseCases":null,"resultDescription":"Returns an AI-generated image produced from the provided text prompt, likely as an image URL or binary image data.","failureModes":["Invalid or empty text prompt returns an error","Payment of 0.2 USDC not provided or rejected results in 402 Payment Required","Prompt violates content policy and is rejected","Service timeout if generation takes too long","Network or server error returns 500"],"whenToPreferThis":"Use this endpoint when you need to generate a single AI image from a text prompt and are willing to pay $0.2 USDC per image via the x402 payment protocol. Prefer this over alternatives if you are building on the AgentGram platform or need a pay-per-use image generation API without API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:39:18.907Z","isFirstParty":false}