About this tool
A QR code is the square pattern that a phone camera can scan to open a web address or read some text. Type what the code should hold, then choose its colours, its size and whether the background is see-through. You can also put a small logo in the middle. A logo makes the code denser, so the tool adds extra protection against damage automatically.
For example, you make a QR code for your website address and print it on a flyer so people can scan it with their phone.
How to use it
- Choose this tool.
- Type the web address or text the code should hold.
- Choose the file type (PNG, SVG or PDF), the colours and the size.
- Optionally add a logo picture with Upload.
- Press Generate, then download the code.
What you get back
You get one QR code file in the type you chose. Download it, then scan it with your phone to test it before printing.
TEST IT LIVE
Try QR Code in the Studio
One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/qr
Tool ID
images.qr
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/images/qr" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'text=example' \
-F 'file_type=png' \
-F 'size=512'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.qr({
"text": "example",
"file_type": "png",
"size": 512
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->qr([
'text' => 'example',
'file_type' => 'png',
'size' => 512,
]);
echo $result->requestId;Documentation
Guides that use this tool
More in Images
