# Flux 2 Flex Max-Quality Image Generation (Base Mainnet)

> Flux 2 Flex Max-Quality Image Generation (Base Mainnet) is a paid API for AI agents from api.xona-agent.com, paid per call via x402, $0.06/call, status unknown (last checked 2026-09-14).

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

## Facts

- Endpoint: POST https://api.xona-agent.com/base-main/image/flux-2-flex
- Price: $0.06/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/flux-2-flex-max-quality-image-generation-base-mainnet-27c881e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3W0PaOqQdF1iiCiagpbW0

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-flex-max-quality-image-generation-base-mainnet-27c881e9 -d '<json body>'
```

Example prompt: Generate a max-quality image of a futuristic cityscape at dusk with neon reflections on rain-soaked streets, in a 16:9 aspect ratio, using these three reference images for style and color palette: [url1, url2, url3].

## When to prefer this

Choose this endpoint when you need the absolute highest image quality available on the Flux lineup, especially when you want to guide generation with up to ten reference images for style, composition, or subject fidelity. Prefer it over lower-tier Flux variants (e.g. 8-reference version) when maximum reference capacity and top-tier output quality are both required.

## Known failure modes

- Invalid or inaccessible reference image URLs — endpoint may fail to fetch references
- More than ten reference images provided — may return a validation error
- Unsupported aspect ratio string — may default to 1:1 or return an error
- Empty or missing prompt — likely returns a 400 bad request
- Network or model timeout — may return a 5xx error
- Insufficient USDC balance for x402 payment — payment fails before call completes

## How this service works

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

## Output

Returns a generated or edited image (likely a URL or binary image data) produced by the Flux 2 Flex model, reflecting the provided prompt, aspect ratio, and any reference image styles or compositions supplied.

## 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-flex-max-quality-image-generation-base-mainnet-27c881e9/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)
