Payment QR Code

PNG Payment QR Code API

Generate payment qr code images in PNG format with a single HTTP request. Lossless raster format ideal for emails, PDFs, dashboards, and messaging apps. ChartQuery renders publication-ready PNG output that works everywhere, dashboards, emails, documents, and print.

Live Preview

This image is generated in real time by the ChartQuery API, no static assets.

PNG Payment QR Code API, live preview generated by ChartQuery

Quick Start

A single HTTP request is all you need. No SDK, no dependencies.

Terminal
curl -X POST https://api.chartquery.com/v1/qrcode \
  -H "Content-Type: application/json" \
  -d '{
  "data": "https://www.example.com",
  "size": 300,
  "format": "png",
  "dot_type": "rounded",
  "ec_level": "H"
}' \
  --output qrcode.png

How It Works

1

Send a Request

POST a JSON body or use GET with query parameters. No SDK or library needed.

2

Get Your Image

ChartQuery renders your chart, diagram, barcode, QR code, or label and returns it as PNG or SVG.

3

Use It Anywhere

Embed in emails, PDFs, dashboards, documents, or print directly. Works everywhere images work.

Features

PNG Output

Lossless raster format ideal for emails, PDFs, dashboards, and messaging apps. Every response returns a valid PNG file ready to use, no post-processing needed.

Sub-500ms Response

Charts, diagrams, barcodes, and labels render in under 500ms. Get your PNG file back before the next line of code runs.

No Dependencies

No rendering library, no headless browser, no canvas. A single HTTP request returns a PNG image. Works from any language or platform.

Pixel-Perfect at Any Size

Set width, height, and device_pixel_ratio for Retina-quality PNG output up to 4000px.

Use Cases

  • Embed charts in automated email reports and newsletters
  • Add data visualizations to PDF reports and documents
  • Post chart images in Slack, Discord, and Microsoft Teams
  • Include barcode and QR code images in mobile applications

Frequently Asked Questions

How do I generate payment qr code as PNG with an API?

Send a request to the ChartQuery qrcode endpoint with format: "png" in your JSON body (POST) or as a query parameter (GET). The API returns a PNG file directly in the response body. No API key is required for basic usage.

Why choose PNG over other output formats?

Lossless raster format ideal for emails, PDFs, dashboards, and messaging apps. PNG is universally supported in email clients, messaging apps, and document generators where SVG may not render.

What is the maximum resolution for PNG output?

Set width and height up to 4000px and device_pixel_ratio up to 3 for Retina-quality output. The default is 800x400px at 1x pixel ratio.

Is the PNG payment qr code API free?

Yes. Anonymous access gives you 60 requests per hour without an API key. A small watermark is added to free-tier output. Paid plans remove the watermark and increase rate limits.

Can I embed PNG payment qr code in emails and documents?

Yes, PNG is universally supported. Use the render URL directly in an <img> tag in emails, PDFs, Markdown, or any HTML document.

What content type does the API return for PNG?

The API returns image/png in the Content-Type header. The response body is the raw PNG file data, ready to save to disk or stream to the client.

Start generating charts today

No API key required to get started. Generate charts, diagrams, and more with a single HTTP request.

Get StartedView Pricing