# x402engine FLUX.2 Pro High-Quality Image Generation

> x402engine FLUX.2 Pro High-Quality Image Generation is a paid API for AI agents from x402engine.app, paid per call via x402, $0.05/call, status healthy (last checked 2026-10-12, last successful call 2026-10-08).

Generates a high-quality image from a text prompt using FLUX.2 Pro, returning a production-ready result in approximately 5 seconds

## Facts

- Endpoint: POST https://x402engine.app/api/image/quality?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-12
- Last successful call: 2026-10-08
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402engine-flux-2-pro-high-quality-image-generation-96ba69b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tcyVqpYHB71tJmL0tZUGq

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 x402engine-flux-2-pro-high-quality-image-generation-96ba69b7 -d '<json body>'
```

Example prompt: Generate a high-quality 1024×1024 image of a misty forest at dawn with golden light filtering through the trees — use seed 42 so I can reproduce it later.

## When to prefer this

Choose this endpoint when you need high-quality, production-ready image generation (~5s) from a text prompt using FLUX.2 Pro, and are operating in an agentic or automated context where pay-per-call micropayments (x402/USDC) are acceptable. Prefer this over GPT Image or other siblings on x402engine when FLUX.2 Pro quality and speed are specifically required, or when you need seed-based reproducibility for consistent outputs.

## Known failure modes

- Missing required 'prompt' field returns a 400 validation error
- Width or height outside the 256–2048 pixel range may cause a 400 or generation error
- Payment not fulfilled via x402 protocol results in a 402 Payment Required response
- Invalid seed value (non-numeric) returns a schema validation error
- Server-side generation timeout if the model is overloaded may return a 503

## How this service works

125 production APIs behind HTTP 402 micropayments. 87 LLMs, Kling V3 and Hailuo video generation, image generation, code execution, travel search, web scraping, TTS, and transaction simulation. Pay with USDC on Base, USDm on MegaETH, or USDC on Solana.

## Output

Returns a production-ready generated image (PNG) based on the provided text prompt, rendered at the specified resolution (default 1024×1024) using FLUX.2 Pro, typically delivered in approximately 5 seconds. The result is high-quality and suitable for direct use in applications, marketing, or content pipelines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "seed": {
       "type": "number",
       "example": 42,
       "description": "Random seed for reproducibility"
      },
      "width": {
       "type": "number",
       "default": 1024,
       "example": 1024,
       "description": "Image width in pixels (256-2048)"
      },
      "height": {
       "type": "number",
       "default": 1024,
       "example": 1024,
       "description": "Image height in pixels (256-2048)"
      },
      "prompt": {
       "type": "string",
       "example": "a sunset over mountains",
       "description": "Text description of image to generate"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402engine-flux-2-pro-high-quality-image-generation-96ba69b7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402engine.app](https://www.zero.xyz/host/x402engine.app/llms.txt)
