# Image Generation via GET (FLUX.1 schnell, OpenAI-compatible)

> Image Generation via GET (FLUX.1 schnell, OpenAI-compatible) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-12).

Generates a 1024x1024 JPEG image from a text prompt using FLUX.1 schnell, returning it as both b64_json and a data URL, via a GET request for $0.01 per image.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/v1/images/generations?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-image-generation-via-get-7cf2d9ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1WAr_XZ8H5p095t0Q25ib

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-data-tools-revmesh2074-workers-dev-image-generation-via-get-7cf2d9ac
```

Example prompt: Generate an image of a futuristic city skyline at sunset with flying cars and neon lights — I need it as a base64 JPEG.

## When to prefer this

Use this endpoint when your HTTP client or environment can only issue GET requests and cannot POST a JSON body — for example, simple browser fetch calls, server-side rendering pipelines, or link-based integrations. It is also ideal when you want OpenAI SDK compatibility at $0.01 per image using FLUX.1 schnell without needing an OpenAI account, and when you want guaranteed no-charge on failed calls.

## Known failure modes

- Prompt shorter than 3 or longer than 800 characters returns a validation error and no charge
- n != 1 is rejected since one payment covers exactly one image
- Payment failure (x402 or MPP) results in no image generated and no charge
- Invalid or expired API key results in authentication error
- Prompt contains disallowed content (NSFW/safety filter triggers) returns an error without charge

## How this service works

OpenAI-compatible image generation, pay per image: a prompt in, one 1024x1024 FLUX.1 schnell JPEG out as b64_json. No account or API key; failed calls are not charged.

## Output

Returns an OpenAI-shaped JSON object with a data array containing one item: b64_json (the full base64-encoded 1024x1024 JPEG), url (a data: URL of the same image), and revised_prompt. Also includes created (Unix timestamp), model (FLUX.1 schnell), output_format, and size fields.

## 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": [
      "prompt"
     ],
     "properties": {
      "steps": {
       "type": "integer",
       "examples": [
        4
       ],
       "description": "Diffusion steps, 1-8 (default 4)"
      },
      "prompt": {
       "type": "string",
       "examples": [
        "a lighthouse on a cliff at sunset, watercolor"
       ],
       "description": "What the image should show (3-800 characters)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "model": {
       "type": "string"
      },
      "steps": {
       "type": "number"
      },
      "prompt": {
       "type": "string"
      },
      "contentType": {
       "type": "string"
      },
      "imageBase64": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/black-forest-labs/flux-1-schnell",
  "steps": 4,
  "prompt": "a lighthouse on a cliff at sunset, watercolor",
  "contentType": "image/jpeg",
  "imageBase64": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-image-generation-via-get-7cf2d9ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
