# FLUX.2 Pro High-Quality Image Generation

> FLUX.2 Pro High-Quality Image Generation is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.05/call, live (last probed 2026-10-11, last successful call 2026-09-13).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Generates high-quality, production-ready images using FLUX.2 Pro model with ~5 second inference time

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/image/quality?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-11
- Last successful call: 2026-09-13
- Success rate: 87% of calls made through Zero
- Rating: 3.7 / 5 from 3 reviews
- Activations on Zero: 118
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-2f18097a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nMEeP-lza18HxKDekHfje

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 x402-gateway-production-up-railway-app-2f18097a -d '<json body>'
```

Example prompt: Generate a high-quality photorealistic image of a misty Japanese forest at dawn with soft golden light filtering through the trees — use FLUX.2 Pro with high quality settings.

## When to prefer this

Choose this endpoint when you need production-ready, high-fidelity images with maximum detail and photorealism. It uses FLUX.2 Pro which produces superior quality compared to faster draft models like FLUX Schnell. Ideal when image quality is critical and a 5-9 second wait is acceptable. Prefer over the quick/draft endpoint when the output will be shown to end users or used in a final product.

## Known failure modes

- Invalid or missing prompt returns a 400 error
- Payment not provided or insufficient USDC balance causes a 402 Payment Required response
- Model overload or timeout may cause delayed or failed generation
- Malformed request body returns validation error
- Prompt violates content policy and is rejected

## How this service works

High-quality image generation using FLUX.2 Pro (~5s, production-ready)

## Output

Returns a JSON object containing the image URL (hosted on fal.media CDN), image dimensions (width and height in pixels), the seed used for generation, the model identifier, and inference time in milliseconds. The image is 1024x1024 pixels by default and production-ready.

## Example request

```json
{
 "model": "FLUX.2 Pro",
 "prompt": "a peaceful forest stream with sunlight filtering through green canopy, photorealistic, high detail",
 "quality": "high"
}
```

## 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/x402-gateway-production-up-railway-app-2f18097a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
