TemplateRequest
The template's own fields, plus the optional `format`. Field names, types and defaults vary per template and are documented on each template page at https://html2img.com/templates/. Unrecognised fields are rejected with 422.
Properties
| Name | Type | Description |
|---|---|---|
| format | string | Output container. `pdf` produces a real vector PDF with selectable text and embedded fonts, laid out on A4 portrait pages that paginate automatically. A PDF costs the same single credit as a PNG. With |
| webhook_url | string | Switches the request to async mode. The API responds immediately with `status: "processing"` and POSTs the finished render to this URL. Recommended whenever a render might exceed the 30 second synchro |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/html2img-com/json-schema/html2img-com-template-request-schema.json",
"title": "TemplateRequest",
"description": "The template's own fields, plus the optional `format`. Field names, types and defaults vary per template and are documented on each template page at https://html2img.com/templates/. Unrecognised fields are rejected with 422.",
"x-generated": "2026-10-31",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/_original/html2img-com-api-openapi.json#/components/schemas/TemplateRequest",
"type": "object",
"additionalProperties": true,
"properties": {
"format": {
"type": "string",
"enum": [
"png",
"pdf"
],
"default": "png",
"description": "Output container. `pdf` produces a real vector PDF with selectable text and embedded fonts, laid out on A4 portrait pages that paginate automatically. A PDF costs the same single credit as a PNG. With `pdf`, the parameters `dpi`, `fullpage` and `selector` have no effect."
},
"webhook_url": {
"type": "string",
"format": "uri",
"description": "Switches the request to async mode. The API responds immediately with `status: \"processing\"` and POSTs the finished render to this URL. Recommended whenever a render might exceed the 30 second synchronous budget: large full-page captures, DPI 3, or JavaScript-heavy pages. Delivery is attempted once, with no retry."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/html2img-com-template-request"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.