# FLUX.1 AI Image Generator (onchaincheck.dev)

> FLUX.1 AI Image Generator (onchaincheck.dev) is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-22).

Generates a 1024x1024 JPEG image from a text prompt using FLUX.1 [schnell], returned as base64-encoded JSON, with optional diffusion steps and seed for reproducibility.

## Facts

- Endpoint: GET https://onchaincheck.dev/ai/image?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/flux-1-ai-image-generator-onchaincheck-dev-b75785c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X_pJIXFye52GESWO-_-KX

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 flux-1-ai-image-generator-onchaincheck-dev-b75785c6
```

Example prompt: Can you generate an image of a futuristic city skyline at sunset with neon lights reflecting on wet streets — use 8 diffusion steps and seed 42 so I can reproduce it later?

## When to prefer this

Choose this endpoint when you need fast, low-cost ($0.01 USDC) AI image generation via FLUX.1 [schnell] with reproducibility via seed control, especially in agentic or x402-payment-enabled workflows. It is ideal when you want a simple GET-based API returning base64 JSON without managing complex diffusion infrastructure. Prefer alternatives if you need higher resolution, style fine-tuning, image-to-image, or non-FLUX models.

## Known failure modes

- Missing required 'prompt' parameter returns an error
- Prompt exceeding 1,000 characters is rejected
- Steps value outside 1-8 range is rejected
- Seed value exceeding 10 digits is rejected
- Payment failure (x402 protocol) if USDC balance is insufficient
- Upstream FLUX.1 model timeout or unavailability

## How this service works

Generate an image from a text prompt with FLUX.1 [schnell]: a 1024x1024 JPEG returned as base64 in JSON. Optional steps (1-8, default 4) and seed for repeatable results.

## Output

A JSON object containing a base64-encoded 1024x1024 JPEG image generated from the prompt. The agent can decode the base64 string to obtain the raw image bytes for display, storage, or further processing.

## 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": "string",
       "pattern": "^\\d{1,10}$",
       "description": "Seed for a repeatable image"
      },
      "steps": {
       "type": "string",
       "pattern": "^[1-8]$",
       "description": "Diffusion steps 1-8 (default 4)"
      },
      "prompt": {
       "type": "string",
       "pattern": "^[\\s\\S]{1,1000}$",
       "description": "What to draw, up to 1,000 characters"
      }
     },
     "additionalProperties": false
    }
   },
   "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/flux-1-ai-image-generator-onchaincheck-dev-b75785c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
