---
title: "Create a QR code image from text or a URL"
method: GET
path: "/qr"
---

# Create a QR code image from text or a URL

`GET /qr`

## Request

- Base URL: `https://api.gadgethumans.com`
- URL: `https://api.gadgethumans.com/qr`
- Auth: none declared

QR code image - Generate a QR code image (png or svg) from any text or URL - ?text=&format=&size=. Deterministic, instant, no account.

## Query parameters

- `text` string, required: Text or URL to encode (required)
- `format` string: png | svg (optional)
- `size` integer: Image size in px (128-1024, default 256) (optional)
- `color` string: Parameter: color (optional)
- `bgcolor` string: Parameter: bgcolor (optional)
- `ecc` string: Parameter: ecc (optional)

## Response `200`

Success

- object

## Other responses

- `402`: Payment Required: x402 exact scheme, USDC on Base

---

[API](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub.md) · [All operations](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub/llms.txt) · [OpenAPI document](https://skmtc.dev/gadgethumans/apis/gadgethumans-api-hub/revisions/7e0ce6386a0d?raw)
