# WithZero Grok Imagine Image Generation

> WithZero Grok Imagine Image Generation is a paid API for AI agents from agents.withzero.xyz, paid per call via x402 or MPP, $0.05/call, status unknown (last checked 2026-09-15, last successful call 2026-09-01).

Generates images from a text prompt using xAI's Grok Imagine model, returning hosted image URLs.

## Facts

- Endpoint: POST https://agents.withzero.xyz/api/v1/image/images/grok-imagine
- Price: $0.05/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-09-15
- Last successful call: 2026-09-01
- Success rate: 51% of calls made through Zero
- Rating: 4.0 / 5 from 2 reviews
- Activations on Zero: 49
- Tags: x402
- Canonical page: https://www.zero.xyz/c/withzero-grok-imagine-image-generation-58f6270b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qypax7Jn6WRwO_v2vOK1z

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 withzero-grok-imagine-image-generation-58f6270b -d '<json body>'
```

Example prompt: Generate 2 images of a futuristic Tokyo cityscape at night with neon reflections on wet streets using Grok Imagine.

## When to prefer this

Choose this endpoint when you need image generation specifically using xAI's Grok Imagine quality tier and want hosted URLs returned directly. Prefer this over other generators when Grok Imagine's specific aesthetic or quality characteristics are desired, or when you need up to 4 image variations from a single prompt in one call.

## Known failure modes

- Prompt too long (exceeds 4000 characters) — returns validation error
- Count out of range (less than 1 or more than 4) — returns validation error
- Model unavailable or overloaded — returns service error
- Payment failure via x402 protocol — returns 402 Payment Required
- Empty or missing prompt — returns validation error

## How this service works

Generate images from a text prompt with xAI's Grok Imagine quality tier. Returns hosted image URLs.

## Output

Returns hosted image URLs for the generated images — between 1 and 4 depending on the count requested. Each URL points to a publicly accessible image generated by xAI's Grok Imagine model based on the provided text prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "integer",
   "default": 1,
   "maximum": 4,
   "minimum": 1,
   "description": "How many images to generate (1–4)."
  },
  "prompt": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "Text description of the image to generate."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/withzero-grok-imagine-image-generation-58f6270b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.withzero.xyz](https://www.zero.xyz/host/agents.withzero.xyz/llms.txt)
