{"uid":"cap_tuHskLjJKv-CRDxeDC52V","slug":"aile-ai-image-generation-6f6c85ae","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?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["model","prompt"],"properties":{"n":{"type":"integer"},"seed":{"type":"integer"},"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"},"resolution":{"type":"string","description":"openrouter/* models only."},"aspect_ratio":{"type":"string","description":"e.g. `16:9` (openrouter/* models)."},"input_references":{"type":"array","description":"Input images (https URLs or data URIs); makes the request an edit."}}},"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_Im5xTeaOH4p5Xy3QElHQ9","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":"Generates images from text prompts using premium AI models (e.g. Flux) via the Aile model marketplace, billed per call in USDC on Solana.","exampleAgentPrompt":"Using Aile with the openrouter/black-forest-labs/flux-1.1-pro model, generate a photorealistic image of a misty mountain forest at dawn with a 16:9 aspect ratio.","exampleUseCases":[{"title":"Marketing visual for social media","prompt":"Generate a vivid, eye-catching image of a steaming coffee cup on a rustic wooden table at golden hour, 16:9 aspect ratio, using openrouter/black-forest-labs/flux-1.1-pro — I need it for an Instagram post."},{"title":"Reproducible AI art with fixed seed","prompt":"Create an image of a futuristic cyberpunk city skyline at night with neon reflections on rain-soaked streets, use seed 42 so I can reproduce it later, square format, with the Flux Pro model on Aile."},{"title":"AI-powered image editing","prompt":"Take this product photo I have — https://example.com/shoe.jpg — and regenerate it with a clean white studio background using openrouter/black-forest-labs/flux-1.1-pro on Aile."}],"resultDescription":"Returns a JSON object containing an array of generated images as base64-encoded PNG data (b64_json) and a Unix timestamp (created). Each image can be decoded and saved or displayed directly.","failureModes":["Invalid or unsupported model identifier returns an error — use GET /v1/models?output_modalities=image to list valid models","Prompt too long or content policy violation causes rejection","Insufficient USDC balance or failed x402 payment causes the call to be rejected","Unsupported resolution or aspect_ratio for non-OpenRouter models","Invalid input_references URL causes image edit to fail","Rate limiting or model unavailability from upstream provider"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call access to premium image generation models (like Flux Pro) without a long-term subscription, especially when paying with USDC on Solana via x402. Prefer it over direct provider APIs when you want metered, trustless billing or access to multiple model providers through a single interface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:38:12.702Z","isFirstParty":false,"canonicalSlug":"aile-ai-image-generation-6f6c85ae"}