{
  "info": {
    "name": "HTML to Image — mcp.ai",
    "description": "REST API for the HTML to Image MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/html_to_image",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "html_to_image_check_usage",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/check/usage",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "check",
            "usage"
          ]
        },
        "description": "Attempts to retrieve account usage statistics from the HTML-to-Image API by trying multiple common endpoint patterns. NOTE: The html2img.com API does not officially document a dedicated usage statisti",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"endpoint_paths\": \"\",\n  \"return_defaults_on_error\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "html_to_image_convert_to_image",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/convert/to/image",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "convert",
            "to",
            "image"
          ]
        },
        "description": "Tool to convert HTML content into an image. Returns either a downloadable file or a JSON payload containing id and url, depending on the upstream API behavior.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"html\": \"\",\n  \"width\": 0,\n  \"height\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "html_to_image_get_image",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/image",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "image"
          ]
        },
        "description": "Retrieve a previously generated image by its URL. Use this to fetch, resize, or download an existing HTML-to-image asset. The image URL is typically obtained from the 'url' field of the HTML_TO_IMAGE_",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"dl\": 0,\n  \"dpi\": 0,\n  \"width\": 0,\n  \"height\": 0,\n  \"image_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}