{"uid":"cap_I5vVjAAS5ZOd1SiEzl8ca","slug":"lotus-network-api-text-to-image-generation-flux-c6e6eb8e","name":"Lotus Network API – Text-to-Image Generation (FLUX)","description":"Text-to-image generation powered by FLUX.2 [pro]. Send a prompt, get back a 1024x1024 image as base64 JSON or raw bytes, plus a durable direct URL. No API key or account needed.","url":"https://lotusnetworkapi.com/api/v1/generate-image","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"format":{"enum":["json","binary"],"type":"string"},"prompt":{"type":"string","description":"Text description of the image to generate"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"image":{"type":"string","description":"Base64-encoded image"},"model":{"type":"string"},"prompt":{"type":"string"},"success":{"type":"boolean"},"mimeType":{"type":"string"},"absoluteUrl":{"type":"string"},"downloadUrl":{"type":"string"},"retentionDays":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"image":"<base64-encoded image bytes>","model":"black-forest-labs/flux-2-pro","prompt":"a cyberpunk city skyline at dusk, neon reflections","success":true,"mimeType":"image/webp","absoluteUrl":"https://lotusnetworkapi.com/api/v1/image/9f2c4a1e7b3d5f8091a2b3c4d5e6f708"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","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.08/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_btrh3WX2Qp5hgLYFvnMs2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a 1024x1024 image from a text prompt using FLUX, returning it as base64 JSON or raw bytes plus a durable direct URL, with no API key required.","exampleAgentPrompt":"Generate an image of a serene Japanese zen garden at sunset with cherry blossoms falling, and give me back the image URL and base64 data in JSON format.","exampleUseCases":[{"title":"AI art for blog post header","prompt":"Create an image of a futuristic cityscape at night with neon reflections on rain-soaked streets — I need it as JSON with base64 so I can embed it directly in my blog."},{"title":"Product mockup background","prompt":"Generate a clean, minimalist white studio background with soft shadows, 1024x1024, and give me the direct download URL so I can use it as a product photo backdrop."},{"title":"Game asset concept art","prompt":"Make me concept art of a fierce dragon perched on a snow-covered mountain peak with storm clouds behind it — return it as raw binary so I can pipe it straight into my asset pipeline."}],"resultDescription":"A JSON object containing: success flag, the original prompt, model name used (FLUX), base64-encoded image string, MIME type, an absolute durable URL to the image, a download URL, and the number of days the image will be retained. Alternatively, raw binary image bytes if the binary format is requested.","failureModes":["Empty or missing prompt parameter returns an error response","Invalid format enum value (anything other than 'json' or 'binary') may cause a bad request error","Payment failure or insufficient USDC balance prevents the call from completing (x402 payment required)","FLUX model timeout or overload may result in a slow or failed generation","Retained image URL may expire after the stated retention period"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-registration text-to-image generation with FLUX quality and want a durable hosted URL in addition to raw image data. It is ideal for agents that need to generate images on demand without managing API credentials, and when a per-call micropayment model (USDC via x402) is acceptable. Prefer alternatives if you need style controls, aspect ratio customization beyond 1024x1024, or higher-volume batch generation at lower per-image cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:27.577Z","isFirstParty":false}