Navigation
POST web

qr_generate

1 credit

Generate a QR code image from text or URL

Endpoint

POST /api/v1/tools/web/qr_generate

Body Parameters

data string required
size integer optional default: 10
border integer optional default: 4
format string optional default: "PNG"

Example

input Request
{
    "data": "https://example.com",
    "size": 5,
    "border": 2
}
output Response
{
    "width": 1,
    "format": "PNG",
    "height": 1,
    "image_base64": "..."
}

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": {
    "width": 1,
    "format": "PNG",
    "height": 1,
    "image_base64": "..."
},
  "meta": {
    "tool": "qr_generate",
    "credits_consumed": 1
  }
}
HTTP/1.1 422 Unprocessable Entity ERROR
{
  "success": false,
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "The given data was invalid."
  }
}

Sign in to try this tool directly from the docs.

Code Examples
Request Example
lightbulb Developer Tip

Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.