# Blackwood State AI Image Generator (FLUX.1 schnell)

> Blackwood State AI Image Generator (FLUX.1 schnell) is a paid API for AI agents from x402-gateway.blackwoodstate8.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-21).

Generates a 1024x1024 JPEG image from a text prompt using FLUX.1 schnell on Workers AI, returning a jobId and poll URL for async retrieval, at $0.03 USDC per call.

## Facts

- Endpoint: POST https://x402-gateway.blackwoodstate8.workers.dev/v1/image-gen?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blackwood-state-ai-image-generator-flux-1-schnell-aa772f9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RJT-RFqQ-BED7nzpjjKkR

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 blackwood-state-ai-image-generator-flux-1-schnell-aa772f9e -d '<json body>'
```

Example prompt: Generate an image of a lighthouse on a rocky cliff at sunset with dramatic storm clouds, watercolor style — use 6 diffusion steps for more detail.

## When to prefer this

Choose this endpoint when you need a single AI-generated illustration or mockup image from a text prompt and the output does not need to be a specific non-square size, does not involve editing an existing image, does not depict a specific real person, and you only need one image per call. It is well-suited for concept art, blog illustrations, UI mockups, and creative assets where FLUX.1 schnell quality is acceptable.

## Known failure modes

- Prompt too short (below 3 chars) or too long (above 2048 chars) returns validation error
- Steps out of range (must be 1–8) returns validation error
- Payment failure or insufficient USDC balance prevents job from starting
- Job expiry — if the pollUrl is not checked before expiresAt, the result is lost
- Slow inference — p95 job time is ~10 seconds; polling too early returns queued status

## How this service works

Use when you need image generation or text to image from a prompt for illustrations or mockups. Do not use for image edits, specific sizes, photos of real people or more than one image per call. Returns JSON with a 1024x1024 JPEG generated from a text prompt by FLUX.1 schnell on Workers AI, as base64 for 0.03 USDC per call. Asynchronous: the paid call returns a jobId and a free pollUrl; typical job time 10000 ms (p95). Category: Media.

## Output

Returns a JSON object with a jobId (string), a pollUrl (URI) to check when the async job is done, an expiresAt ISO 8601 timestamp after which the result is no longer available, a status of 'queued', and a 'next' object suggesting how to poll for the result. The final polled result contains the 1024x1024 JPEG image encoded as base64.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "steps": {
       "type": "integer",
       "maximum": 8,
       "minimum": 1,
       "description": "Diffusion steps (1-8, 4 when omitted); more steps, more detail"
      },
      "prompt": {
       "type": "string",
       "maxLength": 2048,
       "minLength": 3,
       "description": "What the image should show, in English, e.g. a lighthouse on a cliff at sunset, watercolor"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "jobId",
      "pollUrl",
      "expiresAt",
      "status"
     ],
     "properties": {
      "next": {
       "type": "object",
       "required": [
        "service",
        "tool",
        "method",
        "url",
        "useWhen",
        "sample"
       ],
       "properties": {
        "url": {
         "type": "string",
         "description": "Paid route of the next call"
        },
        "tool": {
         "type": "string",
         "description": "MCP tool name of the same call"
        },
        "method": {
         "enum": [
          "GET",
          "POST"
         ],
         "type": "string"
        },
        "sample": {
         "type": "string",
         "description": "Free fixed sample of the whole family"
        },
        "service": {
         "type": "string",
         "description": "Service id of the suggested next paid call"
        },
        "useWhen": {
         "type": "string",
         "description": "When the next call is the right one"
        }
       },
       "description": "Suggested next paid call in the same family (call it in a loop when the task continues)",
       "additionalProperties": false
      },
      "jobId": {
       "type": "string",
       "maxLength": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "jobId": "job_00000000000000000000000000000000",
  "status": "queued",
  "pollUrl": "https://gateway.example/v1/image-gen/jobs/job_00000000000000000000000000000000",
  "expiresAt": "2026-01-31T00:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blackwood-state-ai-image-generator-flux-1-schnell-aa772f9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway.blackwoodstate8.workers.dev](https://www.zero.xyz/host/x402-gateway.blackwoodstate8.workers.dev/llms.txt)
