# CCC Tools QR Code Generator

> CCC Tools QR Code Generator is a paid API for AI agents from ccc-tools-phi.vercel.app, paid per call via x402, $0.07/call, status unknown (last checked 2026-09-15).

Generates a QR code image from a text string or URL with configurable size and foreground color

## Facts

- Endpoint: GET https://ccc-tools-phi.vercel.app/api/qr
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ccc-tools-qr-code-generator-b59d808d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oaE3_7CBVsabo8BulR9DT

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 ccc-tools-qr-code-generator-b59d808d
```

Example prompt: Generate a 300px QR code for https://example.com using dark blue (#003087) as the foreground color.

## When to prefer this

Use this endpoint when you need a quick, pay-per-use QR code generation with color and size customization without setting up a dedicated QR library or service account — especially in x402-enabled micropayment workflows.

## Known failure modes

- Missing required 'text' parameter returns an error
- Invalid hex color format may cause rendering failure or default fallback
- Very large size values may time out or be rejected
- Payment not provided or insufficient USDC balance causes 402 response

## How this service works

Developer utilities via x402 micropayments. QR code generation, markdown-to-HTML conversion, base64 encoding/decoding, hash generation (SHA256/SHA512/MD5), text statistics, and JSON formatting.

## Output

Returns a QR code image file encoding the provided text or URL at the specified pixel size and foreground color, ready to be embedded or downloaded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "string",
   "description": "Image size (px)"
  },
  "text": {
   "type": "string",
   "description": "Text or URL to encode"
  },
  "color": {
   "type": "string",
   "description": "Foreground hex color"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ccc-tools-qr-code-generator-b59d808d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ccc-tools-phi.vercel.app](https://www.zero.xyz/host/ccc-tools-phi.vercel.app/llms.txt)
