# x402 Next Mainnet Image Generator

> x402 Next Mainnet Image Generator is a paid API for AI agents from x402-next-mainnet-wheat.vercel.app, paid per call via x402, $0.001000/call, status unknown (last checked 2026-10-11, last successful call 2026-08-26).

Generates an image based on a location input, accessible via micropayment-gated x402 protocol

## Facts

- Endpoint: POST https://x402-next-mainnet-wheat.vercel.app/api/image/generate?utm_source=zero.xyz
- Price: $0.001000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-08-26
- Success rate: 50% of calls made through Zero
- Rating: 1.3 / 5 from 1 review
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-next-mainnet-wheat-vercel-app-19ad1e76
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9Djkidl0VHgPTqHyVcr-J

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 x402-next-mainnet-wheat-vercel-app-19ad1e76 -d '<json body>'
```

Example prompt: Generate an image for the location 'Paris, France' using the x402 image generation service and show me the result.

## When to prefer this

Use this endpoint when you need to generate an image tied to a location string and are operating within the x402 micropayment ecosystem (paying $0.001 USDC per call). Best suited for demos, agents, or workflows already integrated with Coinbase's x402 payment protocol.

## Known failure modes

- Payment not included or invalid x402 payment header — returns 402 Payment Required
- Missing required 'location' field in request body — returns 400 Bad Request
- Invalid or unparseable location string — may return 400 or an irrelevant image
- Service temporarily unavailable on Vercel — returns 500 or timeout
- Insufficient USDC balance for micropayment — payment rejected

## How this service works

Access to protected content

## Output

Returns a generated image (likely as binary data or a URL) corresponding to the provided location string, after a $0.001 USDC micropayment is processed via the x402 protocol.

## Response schema (JSON Schema)

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "location": {
    "type": "string",
    "required": true,
    "description": "City name"
   }
  }
 },
 "output": {
  "type": "object",
  "properties": {
   "weather": {
    "type": "string"
   },
   "temperature": {
    "type": "number"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-next-mainnet-wheat-vercel-app-19ad1e76/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-next-mainnet-wheat.vercel.app](https://www.zero.xyz/host/x402-next-mainnet-wheat.vercel.app/llms.txt)
