# AmanChain AI Image Generation

> AmanChain AI Image Generation is a paid API for AI agents from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai, paid per call via x402, $0.031104/call, status unknown (last checked 2026-09-15).

Generates a 1024x1024 image from a text prompt, paid per call via x402 in USDC on Base with no API key required

## Facts

- Endpoint: POST https://preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/api/x402/aman-image-gen
- Price: $0.031104/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-ai-image-generation-d27918e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O4H9lCw8kzGOQC3dm7-m0

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-d27918e4 -d '<json body>'
```

Example prompt: Generate a 1024x1024 image of a serene Japanese zen garden at sunrise with cherry blossoms falling — pay for it automatically using my USDC balance.

## When to prefer this

Choose this endpoint when you need keyless, accountless text-to-image generation paid per-call in USDC with no subscription or API key setup, especially in agentic workflows that already handle x402 micropayments on Base.

## Known failure modes

- Payment failure if USDC balance is insufficient or x402 settlement fails
- Invalid or missing serviceId returns an error
- Prompt too long or containing disallowed content may be rejected
- Network timeout if the image generation takes longer than expected
- Ambiguous or very short prompts may produce low-quality or unexpected images

## 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 1024x1024 generated image produced from the input text prompt, returned as the API response payload after the per-call payment is settled in USDC on Base via x402.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "request": {
       "type": "string",
       "description": "service input (see body example)"
      },
      "serviceId": {
       "type": "string",
       "description": "the service id, \"aman-image-gen\""
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-ai-image-generation-d27918e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai](https://www.zero.xyz/host/preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/llms.txt)
