# Agent Toolbox – FLUX.1 Schnell Image Generation

> Agent Toolbox – FLUX.1 Schnell Image Generation is a paid API for AI agents from agent-toolbox.zafermemon87.workers.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, with built-in safety filtering, returning the result as a base64-encoded string.

## Facts

- Endpoint: POST https://agent-toolbox.zafermemon87.workers.dev/v1/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/agent-toolbox-flux-1-schnell-image-generation-21e4a2a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U23B33dBuXRYhUtCkdqZ8

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-toolbox-flux-1-schnell-image-generation-21e4a2a4 -d '<json body>'
```

Example prompt: Can you generate an image of a lighthouse on a cliff at sunrise in a watercolor style, using 6 diffusion steps for extra detail?

## When to prefer this

Choose this endpoint when you need fast, affordable AI image generation (1024x1024 JPEG) from a text prompt with built-in safety filtering, pay-per-call x402 pricing at $0.01 USDC, and a base64 response format suitable for direct embedding in applications. Prefer it over heavier image APIs when you want adjustable quality via diffusion steps (1–8) and don't need advanced features like style presets, multiple resolutions, or image-to-image editing.

## Known failure modes

- Prompt flagged by safety filter — request is refused with an error and no charge is applied
- Prompt exceeds 2048 characters — request rejected with a validation error
- Steps parameter outside 1–8 range — validation error returned
- Payment not provided or insufficient — x402 payment required error
- Model inference timeout — transient server error, retryable

## How this service works

Generate a 1024x1024 JPEG image from a text prompt with FLUX.1 schnell; every prompt passes a safety check first (sexual content and other unsafe requests are refused and not charged). Returns the image as base64.

## Output

A JSON object containing the base64-encoded JPEG image (1024x1024), the MIME type ('image/jpeg'), the model used ('flux-1-schnell'), the number of diffusion steps applied, the original prompt, and a plain-text confirmation message. The agent can decode the base64 string to obtain the raw image bytes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "steps": {
   "type": "integer",
   "maximum": 8,
   "minimum": 1,
   "description": "Diffusion steps, 1 to 8 (default 4; more is slower and finer)"
  },
  "prompt": {
   "type": "string",
   "description": "What to draw, up to 2048 characters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "flux-1-schnell",
  "plain": "Image generated (4 steps).",
  "steps": 4,
  "prompt": "a lighthouse on a cliff at sunrise, watercolor",
  "mime_type": "image/jpeg",
  "image_base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEB...(base64 JPEG)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-toolbox-flux-1-schnell-image-generation-21e4a2a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-toolbox.zafermemon87.workers.dev](https://www.zero.xyz/host/agent-toolbox.zafermemon87.workers.dev/llms.txt)
