# Agent Hub FLUX.1 Image Generation

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

Generates a 1024px JPEG image from a text prompt using the FLUX.1 schnell model via an OpenAI-compatible /v1/images/generations interface

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/images/generations?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-flux-1-image-generation-91fc8d55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8kuucqMyNPaJyvaC_Vjp_

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 agent-hub-flux-1-image-generation-91fc8d55
```

Example prompt: Generate an image of a serene Japanese garden with cherry blossoms reflecting in a koi pond at sunset, and give me the result as a base64 image.

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.01 USDC flat), no-API-key image generation call that is OpenAI-compatible and returns a base64 JPEG or data URL. It is ideal for agents that already use the OpenAI images API shape and want to drop in a low-cost FLUX.1 schnell alternative. Prefer it over OpenAI's DALL-E when cost per image is a priority and the OpenAI interface shape is required. Not suitable for batch image generation, high-resolution outputs beyond 1024px, or formats other than JPEG.

## Known failure modes

- Missing `prompt` parameter returns a 400 error
- Setting `n` to anything other than 1 is not supported and may be ignored or cause an error
- Content policy violations may result in a rejected generation
- Payment not completed (x402) results in a 402 Payment Required response
- Overly long or complex prompts may be truncated 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 with a `data` array containing one image object. By default the image is returned as a base64-encoded JPEG string (`b64_json`). If `response_format=url` is specified, the image is returned as a base64 data URL. The image is always a single 1024×1024 JPEG.

## 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/agent-hub-flux-1-image-generation-91fc8d55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
