x402tools QR Code Generator API

The QR Code Generator API from x402tools — 2 operation(s) for qr code generator.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /v1/generate Generate a QR Code #
POST /v1/generate/styled Generate a Styled QR Code #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/x402tools-xyz:x402tools-xyz-qr-code-generator-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

x402tools-xyz-qr-code-generator-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: x402tools QR Code Generator API
  description: Pay-per-call utility APIs for AI agents. No API keys, no subscriptions. USDC micropayments on Base via x402 protocol.
  version: 1.1.0
  contact:
    name: x402tools
    url: https://x402tools.xyz
    email: admin@x402tools.xyz
  x-payment-protocol: x402
  x-payment-network: eip155:8453 (Base)
  x-payment-token: USDC
servers:
- url: https://qr.x402tools.xyz
  description: QR Code Generator
- url: https://snap.x402tools.xyz
  description: Screenshot Capture
- url: https://dns.x402tools.xyz
  description: DNS Lookup
- url: https://docparse.x402tools.xyz
  description: DocParse (HTML/PDF → JSON)
- url: https://guard.x402tools.xyz
  description: Guardex — Prompt Injection Screening
- url: https://mailcheck.x402tools.xyz
  description: Mailcheck — Email Validation
- url: https://rendex.x402tools.xyz
  description: Rendex — HTML/URL → PDF
- url: https://visionex.x402tools.xyz
  description: Visionex — Image OCR
tags:
- name: QR Code Generator
paths:
  /v1/generate:
    servers:
    - url: https://qr.x402tools.xyz
      description: QR Code Generator
    post:
      operationId: generateQrCode
      summary: Generate a QR Code
      description: Generate QR codes in PNG, SVG, or Base64 from any text or URL. Costs $0.01 USDC per call.
      x-price: $0.01
      x-server: https://qr.x402tools.xyz
      tags:
      - QR Code Generator
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QrRequest'
            example:
              text: https://x402tools.xyz
              size: 512
              format: png
      responses:
        '200':
          description: QR code generated successfully
          content:
            image/png:
              schema:
                type: string
                format: binary
            image/svg+xml:
              schema:
                type: string
            application/json:
              schema:
                $ref: '#/components/schemas/QrBase64Response'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Payment Required — x402 payment proof needed
          headers:
            X-Payment-Required:
              description: JSON object with payment requirements (scheme, price, network, payTo)
              schema:
                type: string
  /v1/generate/styled:
    servers:
    - url: https://qr.x402tools.xyz
      description: QR Code Generator
    post:
      operationId: generateStyledQrCode
      summary: Generate a Styled QR Code
      description: Generate artistic QR codes with custom dot shapes (dots, diamonds, rounded, stars), color gradients, and corner styling. Costs $0.05 USDC per call.
      x-price: $0.05
      x-server: https://qr.x402tools.xyz
      tags:
      - QR Code Generator
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StyledQrRequest'
            example:
              text: https://x402tools.xyz
              size: 512
              dotType: rounded
              gradient:
                from: '#6366f1'
                to: '#ec4899'
              backgroundColor: '#1e1b4b'
              cornerColor: '#f59e0b'
      responses:
        '200':
          description: Styled QR code generated successfully
          content:
            image/png:
              schema:
                type: string
                format: binary
            image/svg+xml:
              schema:
                type: string
            application/json:
              schema:
                $ref: '#/components/schemas/QrBase64Response'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Payment Required
components:
  schemas:
    QrRequest:
      type: object
      required:
      - text
      properties:
        text:
          type: string
          description: Content to encode in QR code
        size:
          type: integer
          description: Image width/height in pixels
          default: 256
          minimum: 64
          maximum: 2048
        format:
          type: string
          enum:
          - png
          - svg
          - base64
          description: Output format
          default: png
    QrBase64Response:
      type: object
      properties:
        data:
          type: string
          description: Base64-encoded image data
        format:
          type: string
        size:
          type: integer
    StyledQrRequest:
      type: object
      required:
      - text
      properties:
        text:
          type: string
          description: Content to encode in QR code
        size:
          type: integer
          description: Image width/height in pixels
          default: 512
          minimum: 64
          maximum: 2048
        format:
          type: string
          enum:
          - png
          - svg
          - base64
          description: Output format
          default: png
        dotType:
          type: string
          enum:
          - rounded
          - dots
          - diamond
          - star
          - square
          description: Shape of QR modules
          default: rounded
        dotColor:
          type: string
          description: Hex color for dots (ignored if gradient set)
          default: '#000000'
        backgroundColor:
          type: string
          description: Hex background color
          default: '#ffffff'
        cornerColor:
          type: string
          description: Hex color for finder pattern corners
        gradient:
          type: object
          description: Gradient for dot colors
          properties:
            type:
              type: string
              enum:
              - linear
              - radial
              default: linear
            from:
              type: string
              description: Start hex color
            to:
              type: string
              description: End hex color
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error code
        message:
          type: string
          description: Human-readable error message