# QuickBuild Image Generation API

> QuickBuild Image Generation API is a paid API for AI agents from quickbuild.quynguyenbac.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Generates a 1024×1024 AI image from a text prompt using the Flux-1-Schnell diffusion model, returning base64 JSON or raw JPEG bytes

## Facts

- Endpoint: GET https://quickbuild.quynguyenbac.workers.dev/api/image?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quickbuild-image-generation-api-cb2e5d5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N1GBDYx8szjdEsfqO_5UK

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 quickbuild-image-generation-api-cb2e5d5d
```

Example prompt: Draw me a cozy watercolor illustration of a lighthouse on a cliff at sunrise — use 6 diffusion steps and give me the result as a base64 JSON response.

## When to prefer this

Choose this endpoint when you need fast, affordable ($0.01/call) AI image generation backed by Flux-1-Schnell via Cloudflare Workers, especially when you want flexible output (base64 JSON or raw JPEG) and control over diffusion steps (1–8). It's ideal for lightweight automation pipelines, bots, or apps that need quick image generation without setting up their own inference infrastructure.

## Known failure modes

- Prompt exceeds 1000 characters — request will be rejected or truncated
- Steps parameter outside 1–8 range — validation error returned
- Payment not provided or invalid — 402 Payment Required response
- Model cold-start or Cloudflare Worker timeout — 500 or 504 error
- Invalid format enum value — unexpected behavior or error

## How this service works

Landing pages ($15), Google Sheets/Apps Script automation ($10), scrapers, scripts & Telegram bots (from $15), broken-link + sitemap audit reports ($10). See a working demo first, pay after.

## Output

A JSON object containing the base64-encoded JPEG image string, image dimensions (1024×1024), byte size, number of diffusion steps used, the model identifier (@cf/black-forest-labs/flux-1-schnell), the prompt, and the MIME type — or raw JPEG bytes if format=jpeg is requested.

## 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": [],
     "properties": {
      "steps": {
       "type": "integer",
       "maximum": 8,
       "minimum": 1,
       "description": "Diffusion steps, more = more detail (default 4)."
      },
      "format": {
       "enum": [
        "json",
        "jpeg"
       ],
       "type": "string",
       "description": "json (default): {image_base64, mimeType,...}; jpeg: raw image bytes."
      },
      "prompt": {
       "type": "string",
       "description": "What to draw (max 1000 chars). Optional: defaults to a watercolor lighthouse."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "bytes": {
       "type": "integer"
      },
      "model": {
       "type": "string"
      },
      "steps": {
       "type": "integer"
      },
      "width": {
       "type": "integer"
      },
      "height": {
       "type": "integer"
      },
      "prompt": {
       "type": "string"
      },
      "mimeType": {
       "type": "string"
      },
      "image_base64": {
       "type": "string",
       "description": "Base64-encoded image"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 588000,
  "model": "@cf/black-forest-labs/flux-1-schnell",
  "steps": 4,
  "width": 1024,
  "height": 1024,
  "prompt": "a cozy watercolor illustration of a lighthouse on a cliff at sunrise",
  "mimeType": "image/jpeg",
  "image_base64": "/9j/4AAQSkZJRg..."
 }
}
```

## More

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