---
title: "QR Code — free"
method: POST
path: "/v1/util/qr-code"
tags: ["utility"]
---

# QR Code — free

`POST /v1/util/qr-code`

## Request

- Base URL: `https://x402.asterpay.io`
- URL: `https://x402.asterpay.io/v1/util/qr-code`
- Auth: none required

Render any string as a QR code. Returns a data URL. Free tier (no payment required).

## Request body

- object
  - `data` string, required: String to encode
  - `size` integer: Pixel width/height

## Response `200`

QR code

- object
  - `success` boolean, required
  - `data` object, required
    - `qrCode` string, required: Base64 data URL of the PNG
    - `data` string, required
    - `size` integer, required
  - `timestamp` string

---

[API](https://skmtc.dev/asterpay/apis/asterpay-data-api.md) · [All operations](https://skmtc.dev/asterpay/apis/asterpay-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/asterpay/apis/asterpay-data-api/revisions/97b4ab464b3b?raw)
