# AgentRXI FLUX.1 Image Generation

> AgentRXI FLUX.1 Image Generation is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Generates a single 1024px JPEG image from a text prompt using FLUX.1 schnell, returning it as base64 JSON or a data URL, with an OpenAI-compatible interface

## Facts

- Endpoint: GET https://agentrxi.com/v1/images/generations?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-flux-1-image-generation-40e13d7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i8lvh0Tt0KOt2Hxe2GYIC

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 agentrxi-flux-1-image-generation-40e13d7d
```

Example prompt: Generate an image of a serene Japanese zen garden at sunset with cherry blossom petals floating in the air, and give it back to me as a base64 JPEG.

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.01 USDC flat), OpenAI-compatible image generation call using FLUX.1 schnell with no API key required. It is ideal for agents already using the x402 micropayment protocol, for drop-in replacement of OpenAI image generation calls, or when you need a base64-encoded or data URL image output in a single synchronous call. Prefer alternatives if you need multiple image sizes, multiple images per call, style fine-tuning, or a different underlying model.

## Known failure modes

- Missing or empty prompt returns a validation error
- n values other than 1 are not supported and will fail
- Unsupported response_format values cause errors
- Payment not completed (x402 flow not resolved) results in a 402 response
- Very long or complex prompts may time out or produce unexpected results

## How this service works

OpenAI-compatible image generation (FLUX.1 schnell): same shape as OpenAI /v1/images/generations, returns b64_json (or a data URL with response_format=url). One 1024px JPEG per call, flat price, no API key. Also callable as GET with the same fields as query parameters.

## Output

Returns an OpenAI-compatible JSON response containing a single generated 1024×1024 JPEG image. By default the image is encoded as a base64 string in the `b64_json` field. If `response_format=url` is specified, it returns a data URL instead. The response shape mirrors OpenAI's /v1/images/generations format with a `data` array containing one image object.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "n": {
       "type": "integer",
       "description": "Must be 1"
      },
      "prompt": {
       "type": "string"
      },
      "response_format": {
       "type": "string",
       "description": "b64_json (default) | url (data URL)"
      }
     }
    }
   },
   "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/agentrxi-flux-1-image-generation-40e13d7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
