# Image Generation via ZeroClick (GPT-5 Image)

> Image Generation via ZeroClick (GPT-5 Image) is a paid API for AI agents from image.pay.zeroclick.io, paid per call via x402, $0.21/call, status unknown (last checked 2026-09-15).

Generates 1–4 AI images from a text prompt using GPT-5 Image model, billed per-call through ZeroClick's payment proxy.

## Facts

- Endpoint: POST https://image.pay.zeroclick.io/api/v1/images/gpt-5-image
- Price: $0.21/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/image-generation-via-zeroclick-gpt-5-image-702fa504
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wkN-XVpV5XgDZQiZYDhKv

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 image-generation-via-zeroclick-gpt-5-image-702fa504 -d '<json body>'
```

Example prompt: Generate 2 images of a cozy Scandinavian coffee shop interior in the morning, warm light streaming through frosted windows, minimalist wooden furniture.

## When to prefer this

Choose this endpoint when you need GPT-5 Image model quality specifically and want per-call USDC micropayment billing without managing an OpenAI API key. It is ideal for agents that need pay-as-you-go image generation with no subscription setup, especially when generating 1–4 images per request with reliable hosted URL outputs.

## Known failure modes

- Invalid prompt (empty or too long) — returns 400 with validation error
- Count out of range (less than 1 or more than 4) — returns 400 bad request
- Payment failure or insufficient balance — returns 402 payment required
- Upstream GPT-5 Image API unavailable — returns 502 or 503
- Content policy violation in prompt — returns 400 or 422 with policy rejection message

## How this service works

This server is a paid, transparent proxy in front of Image's own API: ZeroClick handles identity, payment, and proxying. This document is the source of truth for agents: it lists the complete verified paid surface, and every listed operation is billable through ZeroClick (see its x-payment-info). Endpoints not listed here are not part of the supported paid catalog.

## Output

Returns an array of generated image objects, each containing a hosted URL, MIME type, and size in bytes. Also includes the model name used and the exact USDC amount charged for the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "count",
  "prompt"
 ],
 "properties": {
  "count": {
   "type": "integer",
   "description": "How many images to generate (1–4)."
  },
  "prompt": {
   "type": "string",
   "description": "Text description of the image to generate."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "images",
  "model",
  "price_usdc"
 ],
 "properties": {
  "model": {
   "type": "string",
   "description": "The model that produced the images."
  },
  "images": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "url",
     "mimeType",
     "sizeBytes"
    ],
    "properties": {
     "url": {
      "type": "string"
     },
     "mimeType": {
      "type": "string"
     },
     "sizeBytes": {
      "type": "number"
     }
    },
    "additionalProperties": false
   },
   "description": "The generated images, as hosted URLs."
  },
  "price_usdc": {
   "type": "string",
   "description": "The amount charged for this request, in USDC."
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/image-generation-via-zeroclick-gpt-5-image-702fa504/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from image.pay.zeroclick.io](https://www.zero.xyz/host/image.pay.zeroclick.io/llms.txt)
