# Flux 2 Pro High-Quality Image Generation with Reference Images

> Flux 2 Pro High-Quality Image Generation with Reference Images is a paid API for AI agents from api.xona-agent.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13, last successful call 2026-08-09).

Generates and edits high-quality images using the Flux 2 Pro model, supporting up to eight reference images for style or composition guidance.

## Facts

- Endpoint: POST https://api.xona-agent.com/base-main/image/flux-2-pro
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-08-09
- Activations on Zero: 12
- Tags: x402
- Canonical page: https://www.zero.xyz/c/flux-2-pro-high-quality-image-generation-with-reference-images-d6a7f74a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g6nQRAwvmjvsG4p_qSnBn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability flux-2-pro-high-quality-image-generation-with-reference-images-d6a7f74a -d '<json body>'
```

Example prompt: 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].

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

High-quality image generation and editing with support for eight reference images (Base Mainnet).

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/flux-2-pro-high-quality-image-generation-with-reference-images-d6a7f74a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.xona-agent.com](https://www.zero.xyz/host/api.xona-agent.com/llms.txt)
