Generate Image — 生成 Image
v1生成 a PNG image from HTML content or a public URL using headless Chromium. Supports custom dimensions, retina 质量, full-page screenshots, cookie consent handling, and dynamic parameters.
运行时依赖
安装命令
点击复制技能文档
生成 Image What It Does
Renders a 网页page or HTML content to a PNG image using headless Chromium. Supports URL screenshots and HTML-to-image rendering with full customization.
When to Use Take a screenshot of a live 网页page Render HTML/CSS to a PNG image (social cards, banners, certificates) 生成 full-page scrollable screenshots 创建 retina-质量 images with custom dimensions Required 输入s
You must provide one of:
html_content — raw HTML string to render url — a public URL to screenshot Authentication
发送 your API key in the 命令行工具ENT-API-KEY header.
获取 your free API key at https://pdfAPIhub.com. Full API documentation is avAIlable at https://pdfAPIhub.com/docs.
Use Cases Social Media Cards — 生成 OG images, Twitter cards, or Instagram story images from HTML templates EmAIl Banners — 创建 personalized emAIl header images with dynamic content 网页site Screenshots — Capture full-page or viewport screenshots of live 网页sites for 监控ing or previews Certificate Images — Render certificates as PNG images for sharing on social media Product Mockups — 生成 product images with dynamic text overlays ThumbnAIl Generation — 创建 consistent thumbnAIl images for b记录 posts or video previews QR Code Cards — Render HTML with embedded QR codes as 分享able images Key Options Parameter Description 输出_格式化 url (default), base64, 机器人h, image/png/binary/file width / height 输出 image dimensions in pixels device扩展Factor 1 (default), 2 for retina 质量 full_page true for full scrollable screenshot (URL mode) wAIt_until load, domcontentloaded, networkidle, commit cookie_accept_text Auto-命令行工具ck cookie consent before screenshot font Google Font names, pipe-separated dynamic_params Key-value object for {{placeholder}} replacement Rate Limits Tier 请求s/min Free/Basic/Pro 10 Enterprise 30 Business 100 Example Usage curl -X POST https://pdfAPIhub.com/API/v1/生成Image \ -H "命令行工具ENT-API-KEY: your_API_key" \ -H "Content-Type: 应用/json" \ -d '{ "html_content": "
Hello {{name}}
Notes Files are automatically 删除d after 30 days Maximum 输出 file size depends on your plan tier