Skip to content
HALOWERK

Bildwerk

screenshot to html

Runs the ui-element-map detection (flat-colour regions by flood fill, Tesseract 5.3.4 text lines, busy-cell image regions, rule-based labels; no learned model) and builds a layout tree by recursive XY cuts: elements are split into horizontal bands by vertical gaps, bands into columns by horizontal gaps, and each container is laid out the same way inside its border. The result is semantic HTML (button, input, h1/h2, p, a, hr, img placeholder) with one embedded stylesheet, pixel sizes, margins.

POST https://bild.halowerk.com/v1/screenshot-to-html

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
image_base64stringNoThe screenshot (PNG, JPEG, WebP, GIF, TIFF or AVIF) as base64 or data: URL. Give either image_base64 or image_url.
image_urlstringNoPublic http(s) URL of the screenshot (PNG, JPEG, WebP, GIF, TIFF or AVIF), fetched once (at most 10 MB). Private and local addresses are refused.
languagestringNoTesseract language(s) for the text in the screenshot.
titlestringNo
embed_imagesbooleanNoEmbed detected image regions as JPEG crops instead of grey placeholders.
verifybooleanNoRender the skeleton in headless Chrome and compare it with the screenshot.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "image_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 8000000,
      "description": "The screenshot (PNG, JPEG, WebP, GIF, TIFF or AVIF) as base64 or data: URL. Give either image_base64 or image_url."
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Public http(s) URL of the screenshot (PNG, JPEG, WebP, GIF, TIFF or AVIF), fetched once (at most 10 MB). Private and local addresses are refused."
    },
    "language": {
      "type": "string",
      "enum": [
        "eng",
        "deu",
        "eng+deu"
      ],
      "default": "eng",
      "description": "Tesseract language(s) for the text in the screenshot."
    },
    "title": {
      "type": "string",
      "maxLength": 120,
      "default": "Screenshot skeleton"
    },
    "embed_images": {
      "type": "boolean",
      "default": false,
      "description": "Embed detected image regions as JPEG crops instead of grey placeholders."
    },
    "verify": {
      "type": "boolean",
      "default": true,
      "description": "Render the skeleton in headless Chrome and compare it with the screenshot."
    }
  }
}

Open original schema

Published input example

{
  "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAMgAAABACAYAAABfuzgrAAACz0lEQVR4nO3aMWpUURTG8azjrcAduAJX4A5cgWAb7CzT2lik1c5O0lrYWGppJQiKEoloUBSffA+P3Lm+HIbhmOt8+f/gkGTmzSQM95933yQHM4ALHYz+AYD/GYEACQIBEgQCJAgESBAIkCAQIEEgQIJAgASBAAkCARLlgUx33jIDB7UIxGxQi0DMBrUIxGxQi0DMBrUIxGxQi0DMBrUIxGxQi0DMBrUIxGxQi0DMBrUIxGxQi0DMBrUIxGxQyy6Q6/fezzfvny4fR3zvo5PPyxCIB4tArh2+mx89P5/Pzn9u/Cz6+jIXq8Ic+ToQSD2LQBTH3AShidvk9sMzAsFOLAIJt44/btz+4OmX+dmrb3+dRbSQI6S7jz8tZ6C4L7ZJEZXuXztu6rZUOp5A/FgFss12qj3bvHzzfflcH2PxxyJXWJqWjmvj6Ld08XyjXgcCqWcRiM4UQYv2yYuvy2/8G0cfNo6Lxf/69MefIBSVKJz2GD1P3KazQ9D9bWhtXPq+I18HAqlnEUgsdC38ns4CEUqEpEWtha6Jxa/HTt11RLulirNFBBJfK8Q4Rlu80a8DatkEEqOtjxZq+66WItF9/ZZp7We/6DoiHhuBhPg6eyyB7C+bQPrt1LTyGz22QPoYZ5B2CAS9vQ9EW5z59zVD/y5TH0gc215s6zG7BBIX5Nq2xTFxPTPidSCQf2PvA9ECj2uPuLDWQm0vmGMRt+886TYt9lj4ccy2gUQM8bcXxde+q0UgHvY+kKn5S3pP4fRv/Wor1l/Mt2eBbQOZunet9JxcpPuxCKSd+F+sfru1FtXadcsucY74vy8CuRx2gVz1QS0CMRvUIhCzQS0CMRvUIhCzQS0CMRvUIhCzQS0CMRvUIhCzQS0CMRvUIhCzQS0CMRvUIhCzQa3yQAAnBAIkCARIEAiQIBAgQSBAgkCABIEACQIBEgQCJAgESBAIkPgF575rvJbS+LgAAAAASUVORK5CYII=",
  "title": "Send button"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →