# x402tools Styled QR Code Generator

> x402tools Styled QR Code Generator is a paid API for AI agents from qr.x402tools.xyz, paid per call via x402, $0.05/call, status down (last checked 2026-10-13).

Generates styled QR codes from text or URLs with customizable colors, dot shapes, and gradients, returned as PNG, SVG, or base64

## Facts

- Endpoint: POST https://qr.x402tools.xyz/v1/generate/styled?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402tools-styled-qr-code-generator-246836ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tqo0MDChD8BRCN2PZwQxj

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 x402tools-styled-qr-code-generator-246836ea -d '<json body>'
```

Example prompt: Generate a styled QR code for https://myshop.com — use rounded dots in #1a1a2e on a white background, 512 pixels, and give it back as a PNG.

## When to prefer this

Choose this endpoint when you need a visually customized QR code — with specific dot styles (rounded, dots, diamond, star, square), custom colors, gradients, or branded aesthetics — rather than a plain black-and-white QR code. Ideal when the output needs to match a brand palette or be embedded directly in a web page or document as a base64 data URL.

## Known failure modes

- Missing or empty `text` field returns an error
- Invalid hex color strings may cause rendering failure
- Unsupported format enum value returns validation error
- Oversized `size` values may time out or be rejected
- Gradient object missing `from` or `to` fields may produce unexpected output

## How this service works

Generate a branded, artistic QR code with custom colors, dot shapes, and gradients. Returns PNG, SVG, or Base64. Use for designer QR codes, logo QR codes, and styled marketing barcodes.

## Output

A JSON object containing a `dataUrl` field with the QR code image encoded as a data URI (e.g. data:image/png;base64,...), ready for display or embedding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "number",
   "description": "Image width/height in pixels (default: 512)"
  },
  "text": {
   "type": "string",
   "description": "Content to encode in QR code"
  },
  "format": {
   "enum": [
    "png",
    "svg",
    "base64"
   ],
   "type": "string",
   "description": "Output format"
  },
  "dotType": {
   "enum": [
    "rounded",
    "dots",
    "diamond",
    "star",
    "square"
   ],
   "type": "string"
  },
  "dotColor": {
   "type": "string",
   "description": "Hex color for dots"
  },
  "gradient": {
   "type": "object",
   "properties": {
    "to": {
     "type": "string"
    },
    "from": {
     "type": "string"
    },
    "type": {
     "type": "string"
    }
   }
  },
  "cornerColor": {
   "type": "string",
   "description": "Hex color for corner patterns"
  },
  "backgroundColor": {
   "type": "string",
   "description": "Hex background color"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dataUrl": "data:image/png;base64,iVBORw..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402tools-styled-qr-code-generator-246836ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from qr.x402tools.xyz](https://www.zero.xyz/host/qr.x402tools.xyz/llms.txt)
