CodingMantra LogoCodingMantra
GalleryProductsPortfolioServicesGamesPricingContact
CodingMantra LogoCodingMantra

Providing business solutions for small and medium-sized businesses and helping them to grow.

WhatsApp ChannelX / TwitterLinkedInInstagramFacebookGitHubYouTube

Company

  • Home
  • About Us
  • Services
  • Products
  • Portfolio
  • Pricing
  • Blog
  • API Docs
  • Contact Us

Top Tools

  • All Tools
  • Image Tools
  • Video Tools
  • Brand Context
  • Digital Marketing
  • Financial Tools
  • SEO Tools

Legal

  • Privacy Policy
  • Terms & Conditions
  • Return Policy
  • Deals
  • Sitemap

About CodingMantra

CodingMantra is a premier digital solutions hub dedicated to empowering small and medium-sized businesses with cutting-edge technology. Our comprehensive suite of free AI-powered tools, productivity utilities, and developer resources is designed to streamline your workflow and accelerate your digital growth. From advanced AI image generation and virtual try-ons to sophisticated CRM and SEO utilities, we bridge the gap between complex technology and user-friendly applications. Our mission is to democratize access to high-end AI tools, enabling creators and entrepreneurs to compete on a global scale.

Professional Services

Beyond our free tools, CodingMantra offers specialized consulting and development services in Web 3.0, Artificial Intelligence, Mobile App Development, and custom SaaS architecture. Our team of expert developers and strategists works closely with clients to build robust, scalable, and innovative digital products that solve real-world business challenges and drive measurable results. Whether you're looking for custom AI integration, high-performance web applications, or strategic digital transformation, we provide the expertise to turn your vision into reality.

AI-Driven Innovation

Our platform leverages state-of-the-art generative AI models to provide tools like the AI Product Photography Generator, Virtual Try-Ons for apparel and jewelry, and Logo Animation creators. We are constantly updating our toolkit to include the latest advancements in machine learning, ensuring that you always have access to the most powerful creative automation tools available. By combining intuitive design with powerful back-end intelligence, CodingMantra helps you produce professional-grade content with minimal effort and zero cost.

Comprehensive AI & Digital Solutions Suite

Visual & Creative AI

Transform your brand with our Image & Video AI suite. Generate studio-quality product photography, realistic jewelry virtual try-ons, and professional apparel mockups instantly. Our AI Video Tools enable cinematic festival greetings and dynamic logo animations, while our creative editors handle everything from background removal to AI-powered upscaling.

Marketing & SEO Growth

Optimize your online presence with data-driven SEO & Marketing tools. Utilize our AI Ad Copy Generator for high-converting Google and Facebook ads, or extract your brand's unique voice with the Brand Context Generator. From Keyword Research and Meta Tag generation to Social Media Post creation, we provide the utilities to dominate search rankings.

Business & Finance Ops

Streamline your operations with our Financial & Business tools. Generate professional GST-compliant invoices, calculate EMI and Loan prepayments, or plan your investments with SIP and PPF calculators. Our CRM tools help you manage customer groups and email campaigns, while our Legal generators handle privacy policies and terms of service.

Developer & Utility Tools

Boost your productivity with our Developer & Productivity toolkit. Format and validate JSON, test Regex, generate SSH/RSA keys, and merge PDF files securely in your browser. With over 100+ utilities including QR Code generators, Text converters and Security tools, we are the ultimate resource for developers and digital professionals.

© 2026 CodingMantra. All Rights Reserved.

    1. API Documentation
    2. QR Code API

    QR Code API

    Endpoints for generating and decoding custom QR Codes.

    Available Endpoints

    GET
    /api/qr-code/generate/{apiKey}/{text}

    A simple endpoint to quickly generate a QR code for any text or URL. Returns a PNG image directly.

    Example Request

    # Embed directly in HTML:
    <img src="https://codingmantra.com/api/qr-code/generate/YOUR_API_KEY/hello%20world" alt="QR Code" />
    
    # Or use with curl:
    curl -X GET 'https://codingmantra.com/api/qr-code/generate/YOUR_API_KEY/hello%20world' -o qr.png

    Example Response

    The API returns a direct `image/png` response, not JSON.

    GET
    /api/qr-code/generate-base64/{apiKey}/{text}

    A simple endpoint to quickly generate a QR code for any text or URL. Returns a JSON object containing a Base64 data URI of the PNG image.

    Example Request

    curl -X GET 'https://codingmantra.com/api/qr-code/generate-base64/YOUR_API_KEY/hello%20world' \
         -H 'Authorization: Bearer YOUR_API_KEY'

    Example Response

    {
      "data": {
        "qrCodeDataUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
      }
    }

    POST
    /api/qr-code/generate

    Generate a custom QR code for various data types like URLs, text, Wi-Fi credentials, and more. Requires authentication. The response will be a JSON object containing a Base64 data URI of the generated PNG image.

    Request Body

    The request body must include a `type` field which determines the other required fields. Below are the schemas for each type.

    Shared Design Parameters (Optional)

    FieldTypeDescription
    sizenumberSize of the QR code in pixels (e.g., 512). Default: 512.
    fgColorstringForeground color in hex format (e.g., "#0A66C2"). Default: #000000.
    bgColorstringBackground color in hex format. Default: #FFFFFF.
    logoUrlstringURL of a logo to embed in the center.
    logoSizeRationumberRatio of the logo size to the QR code size (0.1 to 0.4). Default: 0.2.
    isTransparentbooleanIf true, background will be transparent. Default: false.

    Type: `url`

    FieldTypeDescription
    valuestringThe URL to encode (e.g., "https://codingmantra.com").

    Type: `text`

    FieldTypeDescription
    valuestringThe plain text to encode.

    Type: `wifi`

    FieldTypeDescription
    ssidstringThe name of the Wi-Fi network.
    passwordstringThe network password.
    encryptionstringEncryption type: 'WPA', 'WEP', or 'nopass'.

    Type: `email`

    FieldTypeDescription
    tostringRecipient email address.
    subjectstringEmail subject. (Optional)
    bodystringEmail body. (Optional)

    Type: `vcard`

    FieldTypeDescription
    firstNamestringFirst name.
    lastNamestringLast name.
    organizationstringCompany name. (Optional)
    phoneWorkstringWork phone number. (Optional)
    emailstringEmail address. (Optional)
    websitestringWebsite URL. (Optional)

    Type: `upi`

    FieldTypeDescription
    upiIdstringThe UPI ID (VPA) of the payee.
    payeeNamestringThe name of the payee.
    amountnumberThe payment amount. Optional.
    notestringA note for the transaction. Optional.

    Example Request (URL type)

    curl -X POST 'https://codingmantra.com/api/qr-code/generate' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "type": "url",
              "value": "https://codingmantra.com",
              "size": 512,
              "fgColor": "#0A66C2",
              "logoUrl": "https://codingmantra.com/assets/icons/logo-1024.png"
            }'

    Example Request (UPI type)

    curl -X POST 'https://codingmantra.com/api/qr-code/generate' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "type": "upi",
              "upiId": "example@upi",
              "payeeName": "John Doe",
              "amount": 150.50,
              "note": "Payment for services"
            }'

    Example Response (All POST types)

    {
      "data": {
        "qrCodeDataUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
      }
    }

    POST
    /api/qr-code/decode

    Decode a QR code from a provided image URL or Base64 data URI. Requires authentication. The response will be a JSON object containing the decoded text.

    Request Body

    Provide exactly one of the following fields:

    FieldTypeDescription
    urlstringA publicly accessible URL of the QR code image.
    base64stringA Base64 data URI of the QR code image.

    Example Request

    # By URL
    curl -X POST 'https://codingmantra.com/api/qr-code/decode' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "url": "https://example.com/path/to/your/qrcode.png"
            }'
    
    # By Base64
    curl -X POST 'https://codingmantra.com/api/qr-code/decode' \
         -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer YOUR_API_KEY' \
         -d '{
              "base64": "data:image/png;base64,iVBORw0KGgo..."
            }'

    Example Response

    {
      "data": {
        "decodedText": "https://codingmantra.com"
      }
    }

    Explore Other API Documentation

    On This Page

    GET /generate/{apiKey}/{text}GET /generate-base64/{apiKey}/{text}POST /generatePOST /decode