{"uid":"cap_RRNmrl3a1Vu73HbI8AfBu","slug":"aile-ai-image-generation-1618e7ba","name":"Aile AI Image Generation","description":"Rent trusted AI models priced per token; lend idle subscriptions and API keys. A live, metered market that settles every call in USDC on Solana.","url":"https://api.aile.sh/v1/images/generations?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["model","prompt"],"properties":{"n":{"type":"integer","description":"How many images. THE PRICE IS PER IMAGE; x402 takes one per request."},"size":{"type":"string","description":"e.g. `1024x1024`; the model's own list, refused rather than coerced."},"model":{"type":"string","description":"`<provider>/<model>`, e.g. `openrouter/black-forest-labs/flux.2-pro`. GET /v1/models?output_modalities=image lists what is servable, with prices."},"prompt":{"type":"string","description":"What to draw."},"quality":{"type":"string"}}},"responseSchema":{"data":[{"b64_json":"iVBORw0KGgo…"}],"created":1760000000},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01575","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01575/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01575","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01575","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yT4owaxvIAxKC0HCZETQf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01575","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate images from a text prompt using premium AI image models (e.g. FLUX) accessed via Aile's token marketplace, paying per image in USDC on Solana.","exampleAgentPrompt":"Using Aile with the openrouter/black-forest-labs/flux.2-pro model, generate a 1024x1024 image of a glowing neon cityscape at night with rain-soaked streets reflecting the lights.","exampleUseCases":[{"title":"AI concept art for game assets","prompt":"Use the openrouter/black-forest-labs/flux.2-pro model on Aile to generate a 1024x1024 image of a dark fantasy warrior standing in a misty forest — I need it in high quality for a game concept."},{"title":"Product mockup from description","prompt":"Generate a clean, photorealistic 1024x1024 image of a minimalist white coffee mug on a marble countertop with soft morning light — use FLUX Pro via Aile."},{"title":"Marketing visual from brand brief","prompt":"Create a 1024x1024 promotional image of a woman hiking at golden hour in the mountains, vibrant and editorial style — use openrouter/black-forest-labs/flux.2-pro on Aile and give me the result."}],"resultDescription":"Returns a JSON object with a `data` array containing one base64-encoded PNG (b64_json field) per image generated, along with a Unix `created` timestamp. The agent can decode the base64 string to get the raw image bytes.","failureModes":["Model not available — requested model not listed under /v1/models?output_modalities=image; returns refusal rather than coercion","Unsupported size — if the size string is not in the model's accepted list, the request is refused","Payment failure — USDC payment on Solana not settled, resulting in a 402 or authorization error","Invalid prompt — empty or missing prompt field causes a 400 validation error","n > 1 with x402 — x402 protocol may only authorize one payment per request, causing issues if n>1 is requested"],"whenToPreferThis":"Choose Aile's image generation endpoint when you need access to premium image models (like FLUX Pro) without holding a direct API subscription, or when you want per-call metered billing settled in USDC on Solana with no upfront commitment. It is especially useful for agents that want to select from a marketplace of multiple image model providers using a single API contract and pay-as-you-go pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:31:05.674Z","isFirstParty":false,"canonicalSlug":"aile-ai-image-generation-6f6c85ae"}