{
  "x402Version": 2,
  "id": 35677,
  "slug": "35677",
  "resource": "https://agentsvc.io/api/v1/proxy/qr-code",
  "description": "Generate a QR code for any text or URL. Returns image_base64 (base64 PNG; decode to get raw bytes). Params: text (required), size in px (64-1024, default 256), error_correction (L/M/Q/H, default M). H = highest redundancy, survives up to 30% damage.",
  "type": "http",
  "serviceName": "QR Code Generator",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "4000",
      "amountUsd": 0.004,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "generated_at": {
                "description": "ISO 8601 timestamp of generation",
                "format": "date-time",
                "type": "string"
              },
              "height": {
                "description": "Image height in pixels",
                "type": "integer"
              },
              "image_base64": {
                "description": "Base64-encoded PNG image of the QR code (decode to get raw bytes)",
                "type": "string"
              },
              "text": {
                "description": "The text that was encoded",
                "type": "string"
              },
              "width": {
                "description": "Image width in pixels",
                "type": "integer"
              }
            },
            "required": [
              "image_base64",
              "width",
              "height",
              "text"
            ],
            "type": "object"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "data"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "utility",
      "info": {
        "input": {
          "body": {
            "size": 256,
            "text": "https://agentsvc.io"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "generated_at": "2026-04-07T12:00:00.000Z",
              "height": 256,
              "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAA...",
              "text": "https://agentsvc.io",
              "width": 256
            },
            "success": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "error_correction": {
                    "default": "M",
                    "description": "Error correction level: L=7%, M=15%, Q=25%, H=30% data recovery. Higher = bigger QR code.",
                    "enum": [
                      "L",
                      "M",
                      "Q",
                      "H"
                    ],
                    "type": "string"
                  },
                  "size": {
                    "default": 256,
                    "description": "Output image size in pixels (width and height). Min: 64, Max: 1024.",
                    "type": "integer"
                  },
                  "text": {
                    "description": "The text or URL to encode in the QR code",
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "generated_at": {
                        "description": "ISO 8601 timestamp of generation",
                        "format": "date-time",
                        "type": "string"
                      },
                      "height": {
                        "description": "Image height in pixels",
                        "type": "integer"
                      },
                      "image_base64": {
                        "description": "Base64-encoded PNG image of the QR code (decode to get raw bytes)",
                        "type": "string"
                      },
                      "text": {
                        "description": "The text that was encoded",
                        "type": "string"
                      },
                      "width": {
                        "description": "Image width in pixels",
                        "type": "integer"
                      }
                    },
                    "required": [
                      "image_base64",
                      "width",
                      "height",
                      "text"
                    ],
                    "type": "object"
                  },
                  "success": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "success",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "qr",
        "qrcode",
        "image",
        "encode",
        "png",
        "barcode",
        "qr-code",
        "qr-generator"
      ]
    },
    "builder-code": {
      "info": {
        "a": "bc_q6wi3opd"
      }
    }
  },
  "tags": [
    "qr",
    "qrcode",
    "image",
    "encode",
    "png",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "agentsvc.io",
  "lastUpdated": "2026-10-11T11:55:42.593Z",
  "quality": {
    "calls30d": 12,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-11T11:55:42.382Z"
  },
  "metadata": {
    "serviceName": "QR Code Generator",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
    "extensions": {
      "bazaar": {
        "category": "utility",
        "info": {
          "input": {
            "body": {
              "size": 256,
              "text": "https://agentsvc.io"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "generated_at": "2026-04-07T12:00:00.000Z",
                "height": 256,
                "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAA...",
                "text": "https://agentsvc.io",
                "width": 256
              },
              "success": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "error_correction": {
                      "default": "M",
                      "description": "Error correction level: L=7%, M=15%, Q=25%, H=30% data recovery. Higher = bigger QR code.",
                      "enum": [
                        "L",
                        "M",
                        "Q",
                        "H"
                      ],
                      "type": "string"
                    },
                    "size": {
                      "default": 256,
                      "description": "Output image size in pixels (width and height). Min: 64, Max: 1024.",
                      "type": "integer"
                    },
                    "text": {
                      "description": "The text or URL to encode in the QR code",
                      "type": "string"
                    }
                  },
                  "required": [
                    "text"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "generated_at": {
                          "description": "ISO 8601 timestamp of generation",
                          "format": "date-time",
                          "type": "string"
                        },
                        "height": {
                          "description": "Image height in pixels",
                          "type": "integer"
                        },
                        "image_base64": {
                          "description": "Base64-encoded PNG image of the QR code (decode to get raw bytes)",
                          "type": "string"
                        },
                        "text": {
                          "description": "The text that was encoded",
                          "type": "string"
                        },
                        "width": {
                          "description": "Image width in pixels",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "image_base64",
                        "width",
                        "height",
                        "text"
                      ],
                      "type": "object"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "qr",
          "qrcode",
          "image",
          "encode",
          "png",
          "barcode",
          "qr-code",
          "qr-generator"
        ]
      },
      "builder-code": {
        "info": {
          "a": "bc_q6wi3opd"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentsvc.io",
    "manifest_name": "agentsvc.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "generated_at": "2026-01-01T00:00:00Z",
        "height": 0,
        "image_base64": "string",
        "text": "string",
        "width": 0
      },
      "success": true
    },
    "type": "string"
  }
}