# AmanChain AI Image Generation

> AmanChain AI Image Generation is a paid API for AI agents from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai, paid per call via x402, $0.012441/call, status unknown (last checked 2026-09-13).

Generates a 1024x1024 image from a text prompt via a pay-per-call x402/USDC micropayment, no API key required

## Facts

- Endpoint: POST https://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-image-gen
- Price: $0.012441/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-ai-image-generation-ec75adca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3qyvbyKxabz361rylxobv

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 amanchain-ai-image-generation-ec75adca -d '<json body>'
```

Example prompt: Generate me a 1024x1024 image of a futuristic city skyline at sunset with neon lights reflected in a rain-soaked street — pay for it with USDC.

## When to prefer this

Choose this endpoint when you need keyless, accountless, pay-per-use text-to-image generation settled in USDC on Base via x402, and you want a fixed 1024x1024 output without managing API keys or subscriptions. Particularly suited for AI agents that need to generate images on demand in a trustless, micropayment-native workflow.

## Known failure modes

- Invalid or missing serviceId field — returns error indicating wrong service identifier
- Payment not completed or insufficient USDC balance — x402 payment failure, request blocked
- Prompt is empty or too long — validation error returned
- Node unavailable or consensus state error — service temporarily unavailable
- Ambiguous or policy-violating prompt — content rejected by generation model

## How this service works

AI Image Generation: generate a 1024x1024 image from any text prompt Executed deterministically by the AmanChain node against live consensus state (real blocks, pools, balances) — paid per call via x402, settled in USDC on Base. Input: JSON body {"serviceId":"aman-image-gen","request":"<input>"}. No account, no API key.

## Output

A generated 1024x1024 image based on the provided text prompt, returned as image data or a URL, produced by the AmanChain node's AI image generation service. Payment is settled in USDC on Base via x402 at approximately $0.031 per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-ai-image-generation-ec75adca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai](https://www.zero.xyz/host/preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/llms.txt)
