The QR code API for your own website and app.
One script tag or one API call. Branded QR codes, UPI payment codes and a ready-made generator for your visitors. Built in India, priced once.
- SVG and PNG
- Your logo on every code
- Domain lock
- UPI QR built in
- 600 requests / minute
<script src="https://generator.orbasesix.com/embed/v1.js"
data-key="ob_live_YOUR_KEY" async></script>
<div data-orbase-qr
data-value="https://yourshop.com/menu"
data-size="220"></div>
curl "https://generator.orbasesix.com/api/v1/qr.png?data=https://yourshop.com&size=400" \
-H "X-API-Key: ob_live_YOUR_KEY" -o qr.png
const r = await fetch("https://generator.orbasesix.com/api/v1/qr.json", {
method: "POST",
headers: { "X-API-Key": "ob_live_YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ type: "upi", upi_id: "shop@okaxis", amount: 499 })
});
const { svg, data_uri } = await r.json();
From purchase to live QR codes in three steps
No SDK to install and no build step. If your site can load a script tag, it can show a QR code.
Buy once, get your key
Pay ₹4599 by UPI or card. Your first key is ready the moment the payment is confirmed.
Lock it to your website
Add your domain and upload your logo. Only your pages can use the key, and every code carries your brand.
Paste the code
Copy the snippet for your platform. QR codes appear on your pages, or give visitors the full generator.
What your website developer will do
- 1Create the key and lock it to the website in the dashboard.
- 2Paste two lines into the page: a script tag and a div.
- 3The QR code appears on the live page, made by the API in real time.
- 4Or embed the generator so visitors design and download their own codes.
Try the API right now
This panel uses the public demo key, so you see exactly what your site will receive.
See the embeddable generator your visitors would get
Quick start
Send your key in the X-API-Key header (or Authorization: Bearer ..., or the key parameter for image tags). Use GET with query parameters, or POST with JSON. Base URL: https://generator.orbasesix.com.
curl -H "X-API-Key: ob_live_YOUR_KEY" \
"https://generator.orbasesix.com/api/v1/qr.svg?data=https://yourshop.com&size=400" -o qr.svg
# check that a key works
curl -H "X-API-Key: ob_live_YOUR_KEY" https://generator.orbasesix.com/api/v1/pingIntegration code
Replace ob_live_YOUR_KEY with your key from the dashboard. Pick your platform:
Works anywhere HTML works: web pages, emails, blogs, invoices.
<img src="https://generator.orbasesix.com/api/v1/qr.png?key=ob_live_YOUR_KEY&data=https%3A%2F%2Fyourshop.com&size=300&fg=0f1513"
width="300" height="300" alt="Scan to visit yourshop.com">The widget reads data attributes, shows the code, and keeps working when your page changes (React, Vue, Shopify sections, popups).
<script src="https://generator.orbasesix.com/embed/v1.js" data-key="ob_live_YOUR_KEY" async></script>
<div data-orbase-qr data-value="https://yourshop.com" data-size="240"></div>
<!-- colours, shape and template are optional -->
<div data-orbase-qr data-value="https://yourshop.com" data-fg="0f1513" data-dots="rounded" data-template="t15"></div>Your visitors design and download their own QR code without leaving your website. Restrict the types, match your brand colour.
<script src="https://generator.orbasesix.com/embed/v1.js" data-key="ob_live_YOUR_KEY" async></script>
<div data-orbase-generator data-types="url,upi,wifi,whatsapp" data-accent="0f766e"></div>
<script>
// optional: know when someone downloads a code
document.addEventListener("orbase:download", function (e) { console.log("downloaded", e.detail.format); });
</script>type=upi builds the standard UPI link that GPay, PhonePe, Paytm and every BHIM app understand. Amount and note are optional.
<div data-orbase-qr data-type="upi" data-upi-id="yourshop@okbank" data-name="Your Shop"
data-amount="499" data-note="Order 1042" data-size="260"></div>Get the SVG as text or a data URI, from the browser or Node 18+.
const res = await fetch("https://generator.orbasesix.com/api/v1/qr", {
method: "POST",
headers: { "Content-Type": "application/json", "X-API-Key": "ob_live_YOUR_KEY" },
body: JSON.stringify({ data: "https://yourshop.com", format: "json", size: 512, fg: "0f1513", dots: "rounded" })
});
const out = await res.json();
if (!out.ok) throw new Error(out.error.message);
document.querySelector("#qr").src = out.data_uri; // or inject out.svgA tiny component. No package to install: it loads the same image the widget uses.
export function Qr({ value, size = 240 }) {
const src = `https://generator.orbasesix.com/api/v1/qr.svg?key=ob_live_YOUR_KEY&size=${size}&data=${encodeURIComponent(value)}`;
return <img src={src} width={size} height={size} alt="QR code" />;
}
// <Qr value="https://yourshop.com" />Create the QR on your server and store it, so the picture never depends on anyone else being online.
<?php
$ch = curl_init("https://generator.orbasesix.com/api/v1/qr.png");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["Content-Type: application/json", "X-API-Key: ob_live_YOUR_KEY"],
CURLOPT_POSTFIELDS => json_encode(["data" => "https://yourshop.com", "size" => 600]),
]);
$png = curl_exec($ch);
file_put_contents("qr.png", $png);Works in Django, Flask, FastAPI or a plain script.
import requests
r = requests.post("https://generator.orbasesix.com/api/v1/qr.png",
headers={"X-API-Key": "ob_live_YOUR_KEY"},
json={"data": "https://yourshop.com", "size": 600, "fg": "0f1513"})
r.raise_for_status()
open("qr.png", "wb").write(r.content)Handy for testing your key from a terminal.
curl -H "X-API-Key: ob_live_YOUR_KEY" \
"https://generator.orbasesix.com/api/v1/qr.svg?data=https://yourshop.com&size=400" -o qr.svg
# check a key without making a code
curl -H "X-API-Key: ob_live_YOUR_KEY" https://generator.orbasesix.com/api/v1/pingAdd a Custom HTML block (or the HTML embed element) and paste the script and a div. No plugin needed.
<script src="https://generator.orbasesix.com/embed/v1.js" data-key="ob_live_YOUR_KEY" async></script>
<div data-orbase-qr data-value="https://yourshop.com" data-size="220"></div>Paste into theme.liquid (once) and any section or product template. The current product link becomes the QR code.
<script src="https://generator.orbasesix.com/embed/v1.js" data-key="ob_live_YOUR_KEY" async></script>
<div data-orbase-qr
data-value="{{ shop.url }}{{ product.url }}"
data-size="200"></div>Endpoints
/api/v1/qr.svgQR code as SVG. All styles, frames and gradients./api/v1/qr.pngPNG up to 2000 px with colours, margin, logo and the dot shapes square, rounded, circle and bars./api/v1/qr.jsonJSON with svg, data_uri, the encoded data and any warnings./api/v1/pingChecks that a key works and lists its allowed domains./api/v1/typesQR types and their fields. No key needed./api/v1/templatesThe 70 template ids. No key needed.You can also use /api/v1/qr?format=svg|png|json. Add download=1 or filename=my-qr to make the browser save the file. GET and POST both work on every QR endpoint.
Parameters
| Parameter | Meaning |
|---|---|
data | Text or link to encode (up to 1,500 characters). Or use type with its fields instead. |
type | One of the types below, e.g. upi, wifi, whatsapp. Then send that type's fields as parameters. |
size | Pixels, 64 to 2000. Default 512. |
fg, bg | Code and background colour, hex with or without #. bg=transparent for no background. |
dots | square, rounded, extra-rounded, classy, circle, small-circle, diamond, star, plus, vertical, horizontal, pixel, random. |
eye, ball | Corner square and its centre shape (SVG): square, soft, rounded, circle, leaf, pointed, dots. |
grad, fg2 | Gradient linear or radial from fg to fg2 (SVG). |
template | One of 70 ready-made designs, e.g. t15. Your own parameters override it. |
frame, frame_text | A "SCAN ME" style frame (SVG): box-bottom, box-top, bubble, pill, corners, ribbon, circle. |
margin, ec | Quiet zone 0 to 8 modules; error correction L, M, Q, H or auto. |
logo | Your uploaded logo is used automatically. Send logo=0 to leave it out. |
QR types and their fields
Send type and the fields, and we build the right payload for you.
| type | Fields |
|---|---|
url Website / Link | url |
whatsapp WhatsApp | phone message |
upi UPI Payment | upi_id name amount note |
review Google Review | place_id |
wifi Wi-Fi | ssid password encryption |
vcard Business Card (vCard) | first last org title phone work_phone email website address |
menu Digital Menu | url |
location Location | address lat lng |
phone Phone Call | phone |
sms SMS | phone message |
email Email | email subject body |
text Plain Text | text |
event Event | title start end location details |
app App Download | url |
instagram Instagram | handle |
facebook Facebook | handle |
youtube YouTube | handle |
linkedin LinkedIn | handle |
telegram Telegram | handle |
x X (Twitter) | handle |
Errors and limits
Errors always come as JSON: {"ok": false, "error": {"code": "...", "message": "..."}}. In a browser the widget prints the reason in the console.
| HTTP | Code | Meaning |
|---|---|---|
| 401 | missing_key invalid_key | No key sent, or the key is wrong or switched off. |
| 403 | domain_not_allowed no_access | The calling website is not on the key's list, or API & Embed is not active. |
| 400 | invalid_data invalid_type missing_data data_too_long | Something in the request needs fixing. The message says what. |
| 429 | rate_limited | More than 600 requests a minute on one key. |
The public demo key is limited to 40 requests per 10 minutes and sizes up to 400 px.
Keys and security
Add your website names to a key. Browsers calling from any other site get domain_not_allowed, and the embedded generator can only be framed by your sites.
A key only creates QR codes. It cannot read anything from your account, so it can sit in your page source.
Calls from your server (no Origin header) work with the key. Keep server-side keys out of public repositories.
Switch a key off or generate a new value in one click. Up to 5 keys, for example one per website or client.
Frequently asked questions
How much does the QR code API cost?
A single payment of Rs 4599. There is no monthly fee, no per-code charge and no renewal. You get up to 5 API keys.
How do I add a QR code to my website?
Paste one script tag with your key, then add a div with data-orbase-qr and the link you want to encode. The widget shows the code. You can also use a plain image tag or call the REST API from your server.
Is it safe to put the API key in my web page?
Yes. Lock each key to your own websites in the dashboard. Requests from other sites are refused, keys are rate limited, and you can switch off or replace a key at any time.
Which formats and sizes can I get?
SVG (all styles, any size), PNG up to 2000 px and a JSON response with the SVG and a data URI. Colours can be written with or without the # sign.
Can I put my own logo in the QR codes?
Yes. Upload your logo once per key and it is placed in the centre of every code, with error correction raised so the code still scans.
Can I create UPI payment QR codes with the API?
Yes. Use type=upi with your UPI ID, payee name and an optional amount and note. The code opens GPay, PhonePe, Paytm and any BHIM UPI app.
Will it work on WordPress, Shopify, Wix or React?
Yes. On site builders add a Custom HTML block with the script and div. On React or Next.js use the image component shown in the docs. There is nothing to install.
Do the QR codes expire?
The codes are static, so they never expire and have no scan limit. If you link to our image URL the picture is served by us; to own the file forever, call the API from your server and save the SVG or PNG.
What are the limits?
Up to 600 requests per minute per key, 1,500 characters of data per code, and sizes from 64 to 2000 px. Contact us if you need more.
Put QR codes on your own website today.
One payment. Your key is ready the moment it is confirmed. Need help integrating? Write to [email protected] and we will help.
- QR code API and website widget
- Embeddable generator for your visitors
- Your logo, up to 5 keys, domain lock
- No monthly fee, no per-code charge
Pay by UPI or card · access switches on straight away