{"uid":"cap_g6nQRAwvmjvsG4p_qSnBn","slug":"flux-2-pro-high-quality-image-generation-with-reference-images-d6a7f74a","name":"Flux 2 Pro High-Quality Image Generation with Reference Images","description":"High-quality image generation and editing with support for eight reference images (Base Mainnet).","url":"https://api.xona-agent.com/base-main/image/flux-2-pro","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string","description":"Detailed prompt description for the image"},"aspect_ratio":{"type":"string","default":"1:1","description":"Image aspect ratio"},"referenceImage":{"type":"array","items":{"type":"string"},"description":"URLs of reference images for style/composition guidance"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fuuDAuPC-IPyvTLagFEwJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates and edits high-quality images using the Flux 2 Pro model, supporting up to eight reference images for style or composition guidance.","exampleAgentPrompt":"Generate a high-quality cinematic landscape image of a misty mountain valley at sunrise in 16:9 aspect ratio, using these two reference images for color palette and mood: [https://example.com/ref1.jpg, https://example.com/ref2.jpg].","exampleUseCases":[{"title":"Brand-consistent social media graphics","prompt":"I need you to create five different Instagram post designs for our product launch. Use our brand logo colors from these reference images and keep the modern, minimalist aesthetic we've established. Make sure each one is optimized for 1:1 square format."},{"title":"Professional product photography mockups","prompt":"Generate a lifestyle product photo of our new water bottle in a gym setting. Match the lighting and photography style from these three reference images of our existing product line, and make it look like a professional studio shoot."},{"title":"Custom illustration for marketing campaign","prompt":"Create a detailed illustration of a futuristic city skyline for our tech conference poster. I've provided four reference images showing the artistic style, color palette, and composition we're going for. Make it vibrant and eye-catching in 16:9 widescreen format."}],"resultDescription":"A high-quality generated image, typically returned as a URL or binary image data, styled according to the text prompt and up to eight reference images provided.","failureModes":["Invalid or inaccessible reference image URLs return an error","Prompt too vague or empty results in a generic or failed generation","Unsupported aspect ratio value causes a validation error","Payment not processed (x402 protocol failure) blocks the request","Rate limiting or quota exceeded returns a 429 error","Model timeout on complex prompts may return a 504 or partial response"],"whenToPreferThis":"Choose this endpoint when you need high-quality image generation with strong style or composition guidance from multiple reference images (up to eight). It is superior to basic text-to-image endpoints when brand consistency, style matching, or multi-reference composition is important. Prefer this over simpler models (e.g. Nano Banana, Grok Imagine) when output fidelity and detail are critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":12,"lastUsedAt":"2026-08-09T06:47:25.657Z","lastSuccessfullyRanAt":"2026-08-09T06:47:25.657Z","lastHealthCheckAt":"2026-09-13T18:47:12.397Z","isFirstParty":false}