# ThaiKit PromptPay QR Code Generator

> ThaiKit PromptPay QR Code Generator is a paid API for AI agents from api.thaikit.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-03).

Generates a Thai PromptPay QR code as a PNG (base64 data URL), SVG, and raw payload text for a given Thai mobile number, national ID, tax ID, or e-wallet ID, with an optional payment amount in baht.

## Facts

- Endpoint: GET https://api.thaikit.dev/promptpay-qr?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/thaikit-promptpay-qr-code-generator-5a97c333
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qw9O52RG3isOVrEpiRxeh

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 thaikit-promptpay-qr-code-generator-5a97c333
```

Example prompt: Generate a PromptPay QR code for Thai mobile number 0812345678 for exactly 150 baht — give me both the PNG image and SVG so I can send it on LINE.

## When to prefer this

Use this endpoint when you need to programmatically generate a Thai PromptPay QR code for any standard Thai payment identifier (mobile, national ID, tax ID, or e-wallet) and need the result as a ready-to-send image (PNG base64 or SVG) rather than just a raw payload string — especially when delivering payment requests via messaging apps like LINE or Telegram, or embedding them in emails or invoices.

## Known failure modes

- Invalid or unrecognized PromptPay ID format returns an error
- Amount exceeding 2 decimal places may be rejected or rounded
- Size parameter outside 128–1024 range may return an error or be clamped
- Missing required 'id' query parameter returns a 400-level error
- Malformed mobile number (wrong digit count) returns a validation error

## How this service works

Thai PromptPay QR code as a ready-to-send image: PNG (base64 data URL, for LINE, Telegram, email) and SVG, plus the payload text. For a mobile number, 13-digit national ID or tax ID, or e-wallet ID, with an optional amount in baht; any Thai banking app can scan and pay it. Query: ?id=0812345678&amount=150 (optional &size=128-1024 px, default 512)

## Output

Returns a JSON object containing: a PNG image as a base64 data URL (ready to embed in HTML, LINE, Telegram, or email), an SVG string, and the raw PromptPay payload text that any Thai banking app can scan to initiate payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "PromptPay ID: Thai mobile number, 13-digit national ID or tax ID, or 15-digit e-wallet ID"
      },
      "size": {
       "type": "string",
       "description": "Optional image width in pixels, 128-1024 (default 512)"
      },
      "amount": {
       "type": "string",
       "description": "Optional amount in baht, up to 2 decimals; omit for a reusable QR"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/thaikit-promptpay-qr-code-generator-5a97c333/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.thaikit.dev](https://www.zero.xyz/host/api.thaikit.dev/llms.txt)
