# agent402.tools Image Generation HD

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

Generates a higher-quality 1024x1024 image from a text prompt using GPT Image (mini, medium quality), returning a base64-encoded PNG, paid per-call via x402.

## Facts

- Endpoint: POST https://agent402.tools/api/image-gen-hd
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-image-generation-hd-5f027560
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E8xSemmTnZRgi_jezrgMl

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 agent402-tools-image-generation-hd-5f027560 -d '<json body>'
```

Example prompt: Generate a high-quality 1024x1024 image of a futuristic cityscape at sunset with neon lights reflecting on wet streets — return it as a base64 PNG.

## When to prefer this

Choose this endpoint when you need a higher-quality 1024x1024 image generated from a text prompt without requiring an OpenAI API key, and are willing to pay $0.10 USDC per call via x402. Prefer over the standard image-gen endpoint when medium quality output is needed.

## Known failure modes

- Prompt exceeds 2000 characters — request rejected
- Payment not provided or insufficient USDC via x402 — 402 Payment Required returned
- GPT Image generation fails due to content policy violation — error response returned
- Malformed request body or missing prompt field — 400 Bad Request

## How this service works

Generate a higher-quality image from a text prompt using GPT Image 2 (medium quality, 1024x1024). No API key needed; pay per call via x402. Returns base64 PNG. Prompt capped at 2000 chars.

## Output

A base64-encoded PNG image (1024x1024 pixels) rendered at medium quality by GPT Image (mini), representing the scene described in the input prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Text description of the desired image (max 2000 chars)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": "1024x1024",
  "image": "<base64-encoded PNG>",
  "model": "gpt-image-2",
  "quality": "medium",
  "provider": "openai",
  "revised_prompt": "A single red apple on a white background"
 }
}
```

## More

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