# AdPrompt x402 Image Generation API

> AdPrompt x402 Image Generation API is a paid API for AI agents from x402.adprompt.io, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-14).

Generates images from a prompt via a pay-per-call x402 paywall endpoint, charging $0.01 USDC per request

## Facts

- Endpoint: POST https://x402.adprompt.io/v1/images/generate
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/adprompt-x402-image-generation-api-db98c463
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p1LwOnU2KXXVjlUAi9oG9

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 adprompt-x402-image-generation-api-db98c463 -d '<json body>'
```

Example prompt: Generate an image of a sleek black coffee mug on a minimalist white desk for my brand AdPrompt — I need it for a social media ad campaign.

## When to prefer this

Choose this endpoint when you need programmatic AI image generation on a per-call micropayment basis (no subscription required), especially within an x402-compatible agent workflow. It is particularly suited for marketing and advertising use cases via AdPrompt's platform, and when you need to generate images at $0.01 USDC per call with automatic payment handling.

## Known failure modes

- HTTP 402 returned if no valid x402 payment is supplied — agent must complete the payment challenge before the image is delivered
- Invalid or expired payment token results in continued 402 rejection
- Prompt may be rejected if it violates content policy, returning a 4xx error
- Network timeout or service unavailability may result in 5xx errors
- Ambiguous or very short prompts may produce low-quality or irrelevant images

## How this service works

Public x402 API for the full AdPrompt engine and bundle catalog. Paid endpoints return an x402 v2 402 challenge until a valid payment is supplied.

## Output

Returns a generated image (as a URL or binary), produced by the AdPrompt AI image generation service. If payment has not been provided, the endpoint first returns an HTTP 402 challenge (x402 v2 format) requiring a $0.01 USDC payment; once payment is confirmed, the image is returned.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/adprompt-x402-image-generation-api-db98c463/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.adprompt.io](https://www.zero.xyz/host/x402.adprompt.io/llms.txt)
