# x402-tokens FLUX.1.1-pro Image Generation

> x402-tokens FLUX.1.1-pro Image Generation is a paid API for AI agents from x402-tokens.fly.dev, paid per call via x402, $0.041944/call, status unknown (last checked 2026-09-14).

Generates high-quality images from text prompts using Black Forest Labs FLUX.1.1-pro via Together AI, billed per megapixel at reconciled actual cost over x402 micropayment protocol

## Facts

- Endpoint: POST https://x402-tokens.fly.dev/v1/images/generations
- Price: $0.041944/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tokens-flux-1-1-pro-image-generation-80312c7c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L-wzelD3kbAfeqyCQPLmQ

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-tokens-flux-1-1-pro-image-generation-80312c7c -d '<json body>'
```

Example prompt: Generate an image of a misty Japanese forest at dawn with golden light filtering through bamboo trees — use FLUX.1.1-pro and make it high resolution, paying per megapixel.

## When to prefer this

Choose this endpoint when you need state-of-the-art image quality from FLUX.1.1-pro (one of the highest-quality text-to-image models as of 2025-2026) and want per-megapixel billing reconciled to actual cost rather than flat-rate pricing. Ideal for agents operating in micropayment environments using the x402 protocol with USDC. Prefer over other image generation endpoints when FLUX model quality is specifically required or when cost-efficiency at scale matters due to per-megapixel reconciliation.

## Known failure modes

- Invalid or missing prompt in request body returns 400 error
- Payment failure or insufficient USDC balance over x402 protocol causes 402 Payment Required
- Model overload or Together AI backend unavailability returns 503
- Malformed JSON body returns 422 validation error
- Prompt content policy violation returns 400 or 403

## How this service works

Together black-forest-labs/FLUX.1.1-pro — per-megapixel, reconciled to actual cost, at 2026-08-31T16:51:27.266Z

## Output

Returns generated image data or a URL to the created image produced by FLUX.1.1-pro, billed at the reconciled per-megapixel cost (~$0.042 USDC per call) after generation completes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tokens-flux-1-1-pro-image-generation-80312c7c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-tokens.fly.dev](https://www.zero.xyz/host/x402-tokens.fly.dev/llms.txt)
