{"uid":"cap_mgK9ffToXifIGErbNVrdR","slug":"x402-gateway-text-to-image-fast-b5a417c3","name":"x402-gateway: Text to Image (fast)","description":"Text to Image (fast): Generate an image from a text prompt (fast tier, 2-6s). Returns a permanent https URL to the hosted image on api.freeq.one/media/*. Game assets, avatars, illustrations, concept art. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/image_generate.","url":"https://x402.freeq.one/tools/image_generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"width":{"type":"integer","example":1024,"description":"Image width in px (256-1536, default 1024)"},"height":{"type":"integer","example":1024,"description":"Image height in px (256-1536, default 1024)"},"prompt":{"type":"string","example":"a cat wearing a tiny hat, studio lighting","description":"Text description of the image to generate (max 1200 chars)"}}},"responseSchema":{"type":"json","example":{"result":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jyKxUKQEb1JtGQ3YVW9Fk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an image from a text prompt in 2-6 seconds and returns a permanent hosted HTTPS URL to the result","exampleAgentPrompt":"Generate a 1024x1024 image of a knight in golden armor standing on a cliff at sunset — I need it for a game asset.","exampleUseCases":[{"title":"Game asset generation for indie dev","prompt":"Create a 512x512 image of a pixel-style dragon breathing blue fire for my mobile game — make it look like concept art with a dark background."},{"title":"Custom avatar for user profile","prompt":"Generate a 256x256 portrait of a cartoon fox wearing a hoodie and glasses, clean studio lighting, for a user avatar."},{"title":"Concept art for product pitch","prompt":"Make a 1024x768 image of a futuristic electric motorcycle parked in a neon-lit city street at night — I need it for a startup pitch deck illustration."}],"resultDescription":"A JSON object containing a permanent HTTPS URL (hosted at api.freeq.one/media/*) pointing to the generated image file, accessible directly for download or display.","failureModes":["Prompt exceeds 1200 characters — request rejected","Width or height outside 256-1536px range — validation error","Payment not received or insufficient USDC balance via x402 — 402 Payment Required","Prompt contains disallowed content — generation refused","Generation timeout if upstream model is overloaded"],"whenToPreferThis":"Choose this endpoint when you need a fast (2-6s) AI-generated image from a text prompt at low cost ($0.02 USDC), especially for game assets, avatars, or illustrations, and you want a permanent hosted URL returned without managing storage. Use the premium tier sibling if higher quality and longer generation time (10-30s) is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:30:07.633Z","isFirstParty":false,"canonicalSlug":"x402-gateway-text-to-image-fast-b5a417c3"}