{
  "info": {
    "name": "HTML/CSS to Image — mcp.ai",
    "description": "REST API for the HTML/CSS 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/htmlcss_to_image",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "htmlcss_to_image_create_image",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/image",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "image"
          ]
        },
        "description": "Create a hosted image from HTML/CSS or an internet-reachable webpage, including authenticated pages using request headers. Use GET_IMAGE afterward to download, resize, crop, or convert it.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"css\": \"\",\n  \"url\": \"\",\n  \"html\": \"\",\n  \"headers\": {},\n  \"ms_delay\": 0,\n  \"selector\": \"\",\n  \"timezone\": \"\",\n  \"media_type\": \"\",\n  \"full_screen\": false,\n  \"max_wait_ms\": 0,\n  \"color_scheme\": \"\",\n  \"device_scale\": 0,\n  \"google_fonts\": \"\",\n  \"viewport_width\": 0,\n  \"viewport_height\": 0,\n  \"dedupe_duration_s\": 0,\n  \"render_when_ready\": false,\n  \"block_consent_banners\": false,\n  \"transparent_background\": false,\n  \"additional_header_origins\": \"\",\n  \"include_headers_on_subrequests\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_create_image_from_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/image/from/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "image",
            "from",
            "template"
          ]
        },
        "description": "Create an image from a reusable template using the latest version or an explicitly selected version.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"template_id\": \"\",\n  \"template_values\": {},\n  \"template_version\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_create_images_batch",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/images/batch",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "images",
            "batch"
          ]
        },
        "description": "Create 1 to 25 hosted images from HTML/CSS or internet-reachable webpages in one request, including authenticated pages using shared or per-image headers. Requires an account plan that supports batch ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"variations\": \"\",\n  \"default_options\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_create_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "template"
          ]
        },
        "description": "Create a reusable Handlebars HTML/CSS image template. WARNING: the template is persistent because the API exposes no delete operation, and a free account can hold only one template.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"css\": \"\",\n  \"html\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"render_options\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_delete_image",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/image",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "image"
          ]
        },
        "description": "Permanently delete one generated image and clear its HCTI CDN cache. Copies previously written to external storage are not deleted.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"image_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_delete_images_batch",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/delete/images/batch",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "delete",
            "images",
            "batch"
          ]
        },
        "description": "Permanently delete multiple generated images and clear their HCTI CDN caches. Copies previously written to external storage are not deleted.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"image_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_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": "Download a generated image by ID, optionally converting its format, resizing it, or cropping it.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"dpi\": 0,\n  \"width\": 0,\n  \"format\": \"\",\n  \"height\": 0,\n  \"crop_top\": \"\",\n  \"image_id\": \"\",\n  \"x_origin\": \"\",\n  \"y_origin\": \"\",\n  \"crop_left\": \"\",\n  \"crop_right\": \"\",\n  \"crop_width\": \"\",\n  \"crop_bottom\": \"\",\n  \"crop_height\": \"\",\n  \"aspect_ratio\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_get_usage",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/usage",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "usage"
          ]
        },
        "description": "Return recent hourly, daily, monthly, and billing-period image usage for the connected account.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_list_templates",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/templates",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "templates"
          ]
        },
        "description": "List reusable image templates owned by the connected account, including their current version, source, and render settings.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "htmlcss_to_image_update_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "template"
          ]
        },
        "description": "Create a new version of an existing template using replacement Handlebars HTML and optional CSS or render settings.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"css\": \"\",\n  \"html\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"template_id\": \"\",\n  \"render_options\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}