# Xona Agent Grok Imagine – Text-to-Image Generation

> Xona Agent Grok Imagine – Text-to-Image Generation is a paid API for AI agents from api.xona-agent.com, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-10, last successful call 2026-06-25).

Generates high-quality images from text prompts using Grok's image model, with optional reference image support, paid via USDC on Base.

## Facts

- Endpoint: POST https://api.xona-agent.com/base-main/image/grok-imagine?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Last successful call: 2026-06-25
- Success rate: 50% of calls made through Zero
- Rating: 4.0 / 5 from 1 review
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-xona-agent-com-bae11bca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oCuoUzGaAKWDYXPabQPPV

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 api-xona-agent-com-bae11bca -d '<json body>'
```

Example prompt: Generate an image of a futuristic cyberpunk city at night with neon lights reflecting on rain-soaked streets using Grok's image model — use this reference image for the color palette: https://example.com/ref.jpg

## When to prefer this

Choose this endpoint when you specifically want Grok's image generation model for text-to-image tasks, especially when paying with USDC on the Base blockchain (x402 protocol). Prefer this over other xona-agent image endpoints (nano-banana, designer) when you want Grok's specific aesthetic and style, or when you have a reference image to guide composition or style.

## Known failure modes

- Invalid or inaccessible reference image URL returns an error
- Insufficient USDC payment on Base results in 402 payment required
- Overly vague or empty prompt may produce low-quality or unexpected output
- Payment transaction failure on eip155:8453 (Base) blocks generation
- Rate limiting or model unavailability returns 429 or 503 error

## How this service works

AI image generation using Grok Imagine model (Base Mainnet).

## Output

Returns a generated image (likely as a hosted image URL) produced by the Grok image model based on the input prompt and optional reference image style guidance.

## Example request

```json
{
 "prompt": "A minimalist abstract composition with geometric shapes in cool blue and white tones"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Detailed prompt description for the image"
  },
  "referenceImage": {
   "type": "string",
   "description": "URL of reference image for style/composition guidance (Grok only supports one image)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-xona-agent-com-bae11bca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.xona-agent.com](https://www.zero.xyz/host/api.xona-agent.com/llms.txt)
