# x402donghang HD Image Generation

> x402donghang HD Image Generation is a paid API for AI agents from x402donghang.duckdns.org, paid per call via x402, $0.12/call, status unknown (last checked 2026-09-15).

Generates high-definition AI images from a text prompt in various sizes, paid per-call via USDC through the x402 protocol.

## Facts

- Endpoint: POST https://x402donghang.duckdns.org/x402/v1/image-gen/hd
- Price: $0.12/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402donghang-hd-image-generation-ae13ac26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9J0bosu0Md2GL2II7UbSo

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 x402donghang-hd-image-generation-ae13ac26 -d '<json body>'
```

Example prompt: Generate an HD image of a glowing Bitcoin coin resting on dark sea glass with a minimal aesthetic — make it 1536x1024 landscape format.

## When to prefer this

Choose this endpoint when you need HD-quality AI image generation (including landscape 1536x1024, portrait 1024x1536, or widescreen 1280x720 formats) without account signup, paying per-call in USDC via x402. It is backed by Alibaba Bailian turbo and suits agents that require programmatic, pay-as-you-go image creation without API key management.

## Known failure modes

- Prompt too short (minLength 1 not met) — returns validation error
- Prompt exceeds 2000 characters — returns validation error
- Invalid size value not in enum — returns 400 error
- Payment not provided or insufficient USDC — returns 402 Payment Required
- Image generation model unavailable — returns 503 or error response
- Generated image hosting fails — URL may be inaccessible

## How this service works

Fresh crypto narrative research with market context and verifiable source URLs. Free BTC sample; custom radar $0.02/call via x402 USDC.

## Output

A JSON object containing a hosted image URL (on the x402donghang CDN), the output size, tier (standard), model name (z-image Bailian turbo), the prompt echoed back, and the price charged per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "enum": [
    "1024x1024",
    "1280x720",
    "1536x1024",
    "1024x1536"
   ],
   "type": "string",
   "description": "Output size; default 1024x1024 on the standard tier"
  },
  "prompt": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 1,
   "description": "Text description of the image to draw"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "size": "1024x1024",
  "tier": "standard",
  "model": "z-image (Bailian turbo)",
  "price": "$0.05",
  "prompt": "a glowing bitcoin coin on dark sea glass, minimal",
  "product": "image-gen",
  "image_url": "https://x402donghang.duckdns.org/x402/media/images/img_20260827_abcd.png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402donghang-hd-image-generation-ae13ac26/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402donghang.duckdns.org](https://www.zero.xyz/host/x402donghang.duckdns.org/llms.txt)
