# Text-to-Image Generation (FLUX.1 schnell)

> Text-to-Image Generation (FLUX.1 schnell) is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates a 1024x1024 JPEG image from a text prompt using the FLUX.1 schnell diffusion model, returning a hosted URL and optionally base64 data.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/image
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-to-image-generation-flux-1-schnell-0154788c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XkaN5rYRKpB4Lw0zgKS__

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 text-to-image-generation-flux-1-schnell-0154788c -d '<json body>'
```

Example prompt: Generate an image of a golden retriever puppy sitting in a field of sunflowers at sunset, using 6 diffusion steps, and give me both the hosted URL and the base64 so I can embed it.

## When to prefer this

Choose this endpoint when you need a fast (≈2 second), low-cost ($0.01 USDC) AI image generation with no API key or account setup required. It is ideal for agents that need to produce a ready-to-use hosted image URL on the fly. Prefer it over heavier alternatives when turnaround speed and zero-signup frictionless access matter more than maximum image quality or fine-tuning control.

## Known failure modes

- Invalid or empty prompt returns an error with no image generated
- Steps value outside 1-8 range may be rejected or clamped
- Hosted URL expires after 24 hours — agent must use image within that window
- Transient worker errors may return a 5xx with no image delivered (no charge in that case)
- Extremely long or complex prompts may produce unexpected outputs

## How this service works

Generates a 1024x1024 JPEG from a text prompt with FLUX.1 [schnell] in about 2 seconds. Returns a hosted image URL valid for 24 hours that you can hand straight to the next tool; add inline=true to also get the base64. Choose 1-8 diffusion steps (default 4). You are only charged if the image is delivered. No API key, no account.

## Output

Returns a hosted JPEG image URL valid for 24 hours at 1024x1024 resolution. If inline=true is passed, also returns the base64-encoded image data. The response includes the image URL ready to pass to downstream tools.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-to-image-generation-flux-1-schnell-0154788c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
