# SiteCheck API – Image Generation

> SiteCheck API – Image Generation is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Generates a JPEG image from a text prompt using Cloudflare Workers AI (Flux 1 Schnell), returning base64-encoded image data

## Facts

- Endpoint: POST https://api.sitecheck-api.workers.dev/api/image?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-api-image-generation-157d57f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E8k03KBkyJb2qoMWUmkrG

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 sitecheck-api-image-generation-157d57f8 -d '<json body>'
```

Example prompt: Generate an image of a sunlit coastal café with outdoor seating and colorful umbrellas, using 6 diffusion steps for higher quality.

## When to prefer this

Choose this endpoint when you need a low-cost ($0.005 USDC), no-signup, pay-per-call image generation API that accepts a text prompt and returns a base64 JPEG. It is ideal for agents that already use x402/USDC on Base for payments and want a fast Flux 1 Schnell generation without OAuth or API key management. Prefer alternatives if you need PNG output, higher resolution control, style presets, or image-to-image capabilities.

## Known failure modes

- Prompt exceeds 2048 characters — request rejected
- Steps value outside 1–8 range — validation error
- Payment not included or insufficient USDC balance — 402 Payment Required response
- Cloudflare Workers AI upstream failure — 500 or timeout error
- Malformed JSON body — 400 Bad Request

## How this service works

Pay-per-call tools for AI agents: image generation, speech-to-text, text-to-speech, embeddings, LLM chat, website audits and contact enrichment. Payment: x402, USDC on Base. No signup, no API key.

## Output

Returns a JSON object containing the MIME type ('image/jpeg'), the model used ('cf/black-forest-labs/flux-1-schnell'), and the full base64-encoded JPEG image string ready for decoding or embedding in an img tag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "steps": {
   "type": "integer",
   "description": "1-8, default 4"
  },
  "prompt": {
   "type": "string",
   "description": "Up to 2048 chars"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mime": "image/jpeg",
  "model": "@cf/black-forest-labs/flux-1-schnell",
  "image_base64": "/9j/4AAQ..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-api-image-generation-157d57f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
