For Developers
One API call returns HTML, CSS, separated images, structured JSON and a quality report.
Call a pipeline, not a model
Feed an image to a general multimodal model and you will get something HTML-shaped. You will still have to build tall-image slicing, asset cropping, text and number validation, render comparison, retries and refunds yourself. The img2htm API ships that whole production system behind one endpoint.
POST /api/v1/reconstruct
Authorization: Bearer i2h_...
image_file=@page.jpg&mode=full&format=jsonWhat the response contains
html,css— a publishable documentassets— separated image URLscontent— sections and texts as structured JSONquality— accuracy scores and suggested review areas
See the API documentation for async mode, exponential backoff and rate limits.
Key benefits
- REST API, one call
- JSON, HTML and ZIP output formats
- Async jobs with status polling
- Automatic credit refund on failure
- Samples for cURL, Node, Python, PHP and more
- Per-key rate limits and usage
Key benefits
REST API, one call
JSON, HTML and ZIP output formats
Async jobs with status polling
Automatic credit refund on failure
Samples for cURL, Node, Python, PHP and more
Per-key rate limits and usage
How it works
Upload image
Upload a JPG, PNG or WebP. Up to 25 MB. 1 credit per 15,000 vertical pixels.
AI separates & reconstructs
Understands the hierarchy of headings, body copy, prices, tables and lists and restores them as real text.
HTML verified & published
Generates semantic HTML and CSS that reflows naturally on desktop, tablet and mobile.
Related features
Smart Editor
Fix the reconstructed result right in the browser. Click a sentence to edit it, swap an im…
For Individuals
No need to ask the designer again. Upload one flattened image and get a web page you can e…
For Designers
Give publishing time back to design. Upload a design image and get a semantic HTML draft.
For Marketing
Turn campaign visuals into testable HTML. Swap copy, localize and get indexed in one pass.
Reclaim the web trapped in pixels
Free credits on signup. No credit card required.