# AgentRXI Fast Text-to-Image (SDXL Lightning)

> AgentRXI Fast Text-to-Image (SDXL Lightning) is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-15).

Generates a 1024x1024 image from a text prompt using SDXL Lightning in ~4 seconds for $0.003 USDC, with optional persistent share link storage.

## Facts

- Endpoint: GET https://agentrxi.com/v1/image/fast?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-fast-text-to-image-sdxl-lightning-bdc3e9eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E_snM_Jpx90ADT9hIVUgJ

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-fast-text-to-image-sdxl-lightning-bdc3e9eb
```

Example prompt: Generate an image of a misty mountain lake at sunrise with pine trees reflected in the water — no people — at 1024x1024, and give me a shareable link I can send to someone.

## When to prefer this

Choose this endpoint when you need fast (≈4 seconds), inexpensive ($0.003) text-to-image generation using SDXL Lightning at up to 1024×1024 resolution. It is ideal for agents that need to quickly produce images programmatically without managing GPU infrastructure. Prefer this over heavier diffusion APIs when speed and cost are priorities, and when SDXL-quality output is sufficient. The optional store=true flag makes it easy to get a shareable link without additional upload steps.

## Known failure modes

- Missing required 'prompt' parameter returns a 400 error
- Width or height outside the 256–1024 range may be rejected or clamped
- Payment failure or insufficient USDC balance results in a 402 Payment Required response
- Prompt content policy violation may result in a rejected generation
- Store link may expire after 7 days, breaking downstream references
- Network timeout if generation exceeds expected ~4-second window

## How this service works

Fast, cheap text-to-image with SDXL Lightning: a 1024x1024 image in about 4 seconds for $0.003. Width and height 256-1024, seed, negative prompt. Add store=true (+$0.001) for a share link. Also callable as GET with the same fields as query parameters.

## Output

Returns a generated image either as base64-encoded data or raw binary file bytes (when format=binary). If store=true is set, returns a 7-day shareable URL instead of base64. Images above 3 MB are automatically stored and a share link is returned regardless of the store flag. Resolution is 256–1024 pixels on each axis.

## 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": {
      "seed": {
       "type": "integer"
      },
      "store": {
       "type": "boolean",
       "description": "Return 7-day share links instead of base64 (+$0.001); automatic above 3 MB"
      },
      "width": {
       "type": "integer"
      },
      "format": {
       "type": "string",
       "description": "binary = raw file bytes (single output)"
      },
      "height": {
       "type": "integer"
      },
      "prompt": {
       "type": "string"
      },
      "negative_prompt": {
       "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/agentrxi-fast-text-to-image-sdxl-lightning-bdc3e9eb/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)
