{"uid":"cap_kETJMoDPZGTgiNn8uOKiG","slug":"portal-generation-ai-image-generation-flux-sdxl-recraft-seedream-0d0f071d","name":"Portal Generation - AI Image Generation (FLUX, SDXL, Recraft, SeeDream)","description":"AI Image Generation - FLUX, SDXL, Recraft, SeeDream models","url":"https://gen.portalfoundation.ai/api/generate-image","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"seed":{"type":"number","description":"Random seed (-1 for random)"},"model":{"enum":["flux-schnell","flux-dev","flux-pro-1.1","flux-pro-ultra","sdxl","recraft","seedream-4"],"type":"string","description":"Model ID"},"steps":{"type":"number","description":"Number of inference steps"},"prompt":{"type":"string","description":"Text description of the image to generate"}}},"responseSchema":{"model":{"type":"string","description":"Model used"},"imageUrl":{"type":"string","description":"URL of the generated image"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"0.00","reviews":1,"stars":null,"state":"rated"},"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_xGeh3OPYMOJy1pBULt7oL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI images from text prompts using multiple model options including FLUX, SDXL, Recraft, and SeeDream, returning a URL to the generated image","exampleAgentPrompt":"Generate an image of a futuristic cityscape at dusk with neon lights reflecting on wet streets, using the FLUX model with 30 inference steps.","exampleUseCases":[{"title":"Product concept art generation","prompt":"Create a piece of concept art for a sleek electric motorcycle design with a matte black finish and glowing blue accents, use the Recraft model to give it a polished illustration style."},{"title":"Custom social media visuals","prompt":"Generate an eye-catching image of a tropical beach at golden hour with palm trees and crystal-clear water for my travel brand's Instagram post, using the SDXL model."},{"title":"Fantasy scene for game design","prompt":"Make an image of an ancient dragon perched on top of a crumbling castle tower at midnight, with storm clouds and lightning in the background — use the SeeDream model for a more painterly fantasy feel."}],"resultDescription":"Returns a JSON object containing the model used for generation and a URL pointing to the generated image hosted by Portal Foundation.","failureModes":["Missing required 'prompt' field returns a 400 validation error","Invalid model ID may result in a 400 or fallback to default model","Payment not fulfilled (x402 flow not completed) results in a 402 Payment Required response","Server-side generation failure returns a 500 error","Prompt content policy violation may result in a 400 or 403 error","Invalid seed or steps values may cause generation failure"],"whenToPreferThis":"Choose this endpoint when you need text-to-image generation with access to multiple model options (FLUX, SDXL, Recraft, SeeDream) via a pay-per-use x402 micropayment model. Prefer over alternatives when model variety matters, when you want to pay per call without a subscription, or when building agents that use x402 payment rails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-06-16T18:15:48.821Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:43.956Z","isFirstParty":false}