# x402 Gateway Fast Image Generation (FLUX Schnell)

> x402 Gateway Fast Image Generation (FLUX Schnell) is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.015000/call, status unknown (last checked 2026-10-11, last successful call 2026-08-18).

Generates images quickly using FLUX Schnell (~2s inference) from a text prompt, ideal for drafts and rapid prototyping

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/image/fast?utm_source=zero.xyz
- Price: $0.015000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-08-18
- Success rate: 98% of calls made through Zero
- Rating: 4.6 / 5 from 17 reviews
- Activations on Zero: 516
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-6c837dcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eSYLl6yF93YypgkkAUfgv

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-6c837dcc -d '<json body>'
```

Example prompt: Generate a quick draft image of a serene mountain landscape with a clear blue sky and a calm lake reflecting the peaks — use the fast FLUX Schnell model.

## When to prefer this

Use this endpoint when you need fast image generation (approximately 2 seconds) at low cost ($0.015 USDC), especially for drafts, prototypes, or iterative workflows where speed matters more than maximum quality. Prefer over slower high-quality endpoints when you need quick visual feedback or are generating many candidate images.

## Known failure modes

- Invalid or missing prompt returns a 400 error
- Payment not provided or insufficient USDC balance returns a 402 error
- fal.ai upstream service outage causes 502/503 error
- Prompt violates content policy and is rejected
- Request timeout if inference exceeds expected duration

## How this service works

Quick image generation using FLUX Schnell (~2s, good for drafts)

## Output

Returns a JSON object containing a hosted image URL (1024x1024 by default), the seed used, model identifier (fal-ai/flux/schnell), image dimensions, and inference time in milliseconds.

## Example request

```json
{
 "model": "flux-schnell",
 "prompt": "A serene mountain landscape with a clear blue sky and a calm lake reflecting the peaks"
}
```

## 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 red sports car",
       "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-6c837dcc/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)
