---
title: "Generate a QR code (POST)"
method: POST
path: "/qr"
---

# Generate a QR code (POST)

`POST /qr`

Generate a QR code based on the provided configuration in the request body.

## Request body

- object
  - `text` string — The text to be encoded in the QR code.
  - `width` integer — The width of the QR code in pixels.
  - `height` integer — The height of the QR code in pixels.
  - `format` string — The output format of the QR code, e.g., 'png' or 'svg'.
  - `margin` integer — The margin around the QR code in pixels.
  - `key` string — QuickChart API key

## Response `200`

A generated QR code image.

---

[API](https://skmtc.dev/quickchart/apis/quickchart-api.md) · [All operations](https://skmtc.dev/quickchart/apis/quickchart-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quickchart/quickchart-api/revisions/92d261378758/schema)
