# Grok Imagine Image Generation via ZeroClick

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

Generates 1–4 images from a text prompt using Grok's image model, billed per call through ZeroClick's x402 payment proxy.

## Facts

- Endpoint: POST https://image.pay.zeroclick.io/api/v1/images/grok-imagine
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grok-imagine-image-generation-via-zeroclick-9169d41d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DrChzeoyORqO5BZxEY93S

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 grok-imagine-image-generation-via-zeroclick-9169d41d -d '<json body>'
```

Example prompt: Use Grok Imagine to generate 2 images of a futuristic cityscape at dusk with neon reflections on wet streets.

## When to prefer this

Choose this endpoint when you specifically want images generated by xAI's Grok Imagine model and need a pay-per-call x402-compatible billing flow without managing API keys — ideal for agents that need to generate 1–4 image variants from a text prompt with per-request USDC pricing and hosted image URL output.

## Known failure modes

- Invalid count value (outside 1–4 range) returns a validation error
- Empty or missing prompt field causes a 400 bad request
- Payment failure or insufficient balance results in a 402 response before generation begins
- Prompt content policy violation causes generation refusal
- Upstream Grok API timeout or outage results in a 502/503 error

## 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 1–4 generated images as hosted URLs, each with a MIME type and file size in bytes, along with the model name that produced them and the 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/grok-imagine-image-generation-via-zeroclick-9169d41d/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)
