---
title: "Generate QR Code API"
slug: generate-qr-code
url: https://apyverse.com/apyhub/service/generate-qr-code
provider: ApyHub
categories: [Image Processing, Smart Generation]
auth: api_key
---

# Generate QR Code API 

Generate QR codes from text, URLs, vCards, or Wi‑Fi details. Get a hosted image link or a binary download for apps and print workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `generate/qr-code/url` | What it does Generates a QR code from one of the supported inputs and returns a cloud storage link… | 30 |
| POST | `generate/qr-code/file` | What it does Generates a QR code and downloads it as a binary file. The request body supplies the Q… | 30 |

## About

## What it does
QR Code Generator creates downloadable QR codes from plain text, URLs, vCard details, or Wi‑Fi credentials. Send one of those inputs in the request body, and you get back either a pre-signed cloud storage URL or a binary file, depending on the endpoint you use.

Use `content` to encode raw text or a URL, `v_card` to generate a contact QR code, or `wifi_info` to produce a Wi‑Fi login code. The request body also supports optional QR styling: `logo` for a center overlay image, `foreground_color` and `background_color` for color control, `is_gradient` for gradient foregrounds, and `recovery_level` for error correction tuning. For contact cards, `v_card` accepts fields such as `name`, `phone_numbers`, `email`, `website`, `address`, `organization`, and related profile details.

Choose the `/link` endpoint when you want a cloud-hosted image reference in the response. Choose `/download` when you want the QR code file returned directly as binary data. That makes QR Code Generator fit workflows like event badges, business cards, onboarding handouts, printed menus, and captive Wi‑Fi access points.

The response is simple: a URL for hosted delivery, or a file download for immediate use. If you are generating QR codes inside an app, CMS, or print pipeline, this keeps the integration focused on the data you already have and the output format you need.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/generate-qr-code
