{"uid":"cap_oCuoUzGaAKWDYXPabQPPV","slug":"api-xona-agent-com-bae11bca","name":"Xona Agent Grok Imagine – Text-to-Image Generation","description":"AI image generation using Grok Imagine model (Base Mainnet).","url":"https://api.xona-agent.com/base-main/image/grok-imagine?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Detailed prompt description for the image"},"referenceImage":{"type":"string","description":"URL of reference image for style/composition guidance (Grok only supports one image)"}}},"responseSchema":null,"example":{"request":{"prompt":"A minimalist abstract composition with geometric shapes in cool blue and white tones"},"response":{"metadata":{"model":"grok-imagine-image","cdn_key":"generated/grok-f05c8390-1d70-4b7b-8999-98cb36728a5c-1781324824054.jpg","grok_url":"https://imgen.x.ai/xai-imgen/xai-tmp-imgen-8dba113d-f5ba-418f-8cc7-b5a048a3be05.jpeg","endpoint_used":"/images/generations","original_prompt_length":84},"image_url":"https://provey-media.sgp1.cdn.digitaloceanspaces.com/generated/grok-f05c8390-1d70-4b7b-8999-98cb36728a5c-1781324824054.jpg","image_description":"A minimalist abstract composition with geometric shapes in cool blue and white tones"}},"exampleRequest":{"prompt":"A minimalist abstract composition with geometric shapes in cool blue and white tones"},"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.75","successRate":"0.50","reviews":1,"stars":"4.0","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_S5Ldjl-DCRrMG-2CI40DR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates high-quality images from text prompts using Grok's image model, with optional reference image support, paid via USDC on Base.","exampleAgentPrompt":"Generate an image of a futuristic cyberpunk city at night with neon lights reflecting on rain-soaked streets using Grok's image model — use this reference image for the color palette: https://example.com/ref.jpg","exampleUseCases":null,"resultDescription":"Returns a generated image (likely as a hosted image URL) produced by the Grok image model based on the input prompt and optional reference image style guidance.","failureModes":["Invalid or inaccessible reference image URL returns an error","Insufficient USDC payment on Base results in 402 payment required","Overly vague or empty prompt may produce low-quality or unexpected output","Payment transaction failure on eip155:8453 (Base) blocks generation","Rate limiting or model unavailability returns 429 or 503 error"],"whenToPreferThis":"Choose this endpoint when you specifically want Grok's image generation model for text-to-image tasks, especially when paying with USDC on the Base blockchain (x402 protocol). Prefer this over other xona-agent image endpoints (nano-banana, designer) when you want Grok's specific aesthetic and style, or when you have a reference image to guide composition or style.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-06-25T03:10:14.278Z","lastSuccessfullyRanAt":"2026-06-25T03:10:14.278Z","lastHealthCheckAt":"2026-10-10T18:42:41.596Z","isFirstParty":false,"canonicalSlug":"api-xona-agent-com-bae11bca"}