# PayWeave Fal – FLUX Pro Kontext Image Generation

> PayWeave Fal – FLUX Pro Kontext Image Generation is a paid API for AI agents from fal.payweave.services, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-15).

Runs the fal-ai/flux-pro/kontext model to generate or edit images using sub-second AI inference, returning CDN-hosted image URLs.

## Facts

- Endpoint: POST https://fal.payweave.services/models/fal-ai/flux-pro/kontext/run
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payweave-fal-flux-pro-kontext-image-generation-6a16ae97
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FppgsM8q5s_rjy6lJ3yAl

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 payweave-fal-flux-pro-kontext-image-generation-6a16ae97 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a misty mountain lake at sunrise with a wooden rowing boat in the foreground using FLUX Pro Kontext — I want a wide landscape composition.

## When to prefer this

Choose this endpoint when you need to run the FLUX Pro Kontext model specifically (known for high-quality, context-aware image generation/editing) via a pay-per-call micropayment model (x402/USDC), without committing to a subscription. Ideal for agents that need on-demand image generation with per-call billing and want a fal.ai-backed inference endpoint that returns ready-to-use CDN image URLs.

## Known failure modes

- Invalid or missing 'input' object returns a 400-level error
- Payment failure (insufficient USDC balance) results in a 402 Payment Required response
- Model inference error returns a non-null 'error' field with a description
- CDN URLs expire after approximately 24 hours — downstream consumers must save images promptly
- Malformed prompt or unsupported input format may result in error or degraded output quality

## How this service works

Sub-second generative AI inference — image, video, audio.

## Output

Returns a JSON object containing the fal request ID, model name, status ('succeeded'), an output field with one or more CDN-hosted image URLs (fal-hosted, ~24h TTL), inference time in seconds, and the USD amount charged for the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "prompt",
    "image_url"
   ],
   "properties": {
    "seed": {
     "type": "integer",
     "minimum": 0,
     "description": "Random seed; omit for non-deterministic outputs."
    },
    "prompt": {
     "type": "string",
     "maxLength": 5000,
     "minLength": 1,
     "description": "Text prompt describing the desired image."
    },
    "image_url": {
     "type": "string",
     "format": "uri",
     "description": "Image to edit (instruction-based)."
    },
    "aspect_ratio": {
     "enum": [
      "1:1",
      "16:9",
      "9:16",
      "4:3",
      "3:4",
      "3:2",
      "2:3",
      "21:9",
      "9:21"
     ],
     "type": "string"
    },
    "output_format": {
     "enum": [
      "jpeg",
      "png"
     ],
     "type": "string"
    },
    "safety_tolerance": {
     "enum": [
      "1",
      "2",
      "3",
      "4",
      "5",
      "6"
     ],
     "type": "string",
     "description": "Content safety strictness; 1=strictest, 6=most permissive. Default 2."
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payweave-fal-flux-pro-kontext-image-generation-6a16ae97/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fal.payweave.services](https://www.zero.xyz/host/fal.payweave.services/llms.txt)
