# the402.ai QR Code Generation

> the402.ai QR Code Generation is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Generates a QR code image for a given URL or text payload, billed at $0.001 USDC per call via x402 micropayment.

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_b7ef24a2ea5947a7/purchase
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-c6c05abe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KVwxNuIwNDF--J7otJZEW

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 api-the402-ai-c6c05abe -d '<json body>'
```

Example prompt: Can you generate a QR code for https://myshop.example.com so I can put it on my product packaging?

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.001 USDC) QR code generated programmatically within an AI agent workflow, especially when already operating within the the402.ai service marketplace and using x402 micropayment infrastructure.

## Known failure modes

- Invalid or missing input text/URL returns a 400 error
- Payment failure or insufficient USDC balance returns a 402 error
- Malformed request body returns a validation error
- Service unavailable returns a 503 or 5xx error

## How this service works

Purchase: QR Code Generation

## Output

Returns a QR code image (likely as a URL, base64-encoded image, or binary) encoding the provided text or URL, ready to embed in print or digital materials.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-c6c05abe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
