从 markdown 或 HTML 内容生成专业报告图像、社交卡片和工作流工件。完美适配 AI 应用、自动化工作流和内容团队。
三个简单步骤即可开始从 markdown 生成图像
登录后从您的资料中创建 token。开始获得每月 50 个免费请求。
使用 token 发送 markdown 内容。根据需要自定义主题、字体和输出格式。
接收 URL 或二进制图像/PDF。在您的应用中使用、分享或存储它。
5 个生产级场景。每个场景都展示确切的 JSON payload 和生成的图像 — 复制、调整、调用 API 即可。
将 LLM 生成的报告渲染成品牌化的 PNG,用户可分享、下载或导出为 PDF。
{
"markdown": "# Weekly AI Operations Report\n\n> Week of April 14–20, 2026\n\n## Summary\n\nPlatform processed **47,382** agent requests across 12 workflows. Revenue attribution from AI flows grew **+18% WoW**, completion held at 96%.\n\n## Key metrics\n\n| Metric | This week | Change |\n|---|---|---|\n| Revenue (AI) | $128,400 | +18% |\n| Active agents | 12 | +2 |\n| P95 latency | 842 ms | −12% |\n\n## Top agents\n\n1. **Customer Triage** — 14,200 runs\n2. **Content Generator** — 9,840 runs\n3. **Research Assistant** — 7,120 runs",
"format": "png",
"theme": "github-dark",
"width": 1200
}
将发布说明制作成社交可用的卡片,适用于 X、LinkedIn 或博客 — 内含 bullet 列表和版本号。
{
"markdown": "# v2.4.0 — Shipped April 18, 2026\n\nOur biggest release of the quarter.\n\n## ✨ New\n\n- **Single sign-on** via Okta, Google, Azure AD\n- **Workflow templates** — 12 starter flows\n- **Agent usage dashboard** with per-team view\n\n## ⚡ Improved\n\n- API throughput up **3×**\n- Editor cold start: 1.8 s → 0.6 s\n- Dark-mode contrast tuned\n\n## 🐛 Fixed\n\n- PDF export last-page regression\n- Concurrent token revocation race\n\n> No action required — rolled out automatically.",
"format": "png",
"theme": "pastel",
"width": 1080
}
将博客标题 + 摘要转换为 16:9 封面图或 OpenGraph 预览图,任意宽度。
{
"markdown": "# The 2026 AI Ops Playbook\n\n## How to ship production agents without burning down your on-call\n\nA practical guide to running LLM-powered systems in production — what changes when your model can talk back, where real-world teams fail first, and the dashboards you actually need.\n\n---\n\n**Markdown to Image** · 14 min read · April 2026",
"format": "jpeg",
"width": 1600,
"theme": "sunset"
}
从简短的 markdown 摘要批量生成推文卡片、OG 预览或功能亮点图。
{
"markdown": "# Product Highlights · April 2026\n\n> The fastest release we've shipped.\n\n- **3× faster** rendering on average payloads\n- **40% lower cost** per image for Pro users\n- **New editor** with one-click templates\n- Built-in recipes for **n8n, Dify, Make**\n\n---\n\nTry it free — 50 requests/month, no card.",
"format": "png",
"width": 1200
}
通过同一端点,将长篇 markdown(报告、简报、归档)导出为可下载 PDF。
{
"markdown": "# Executive Briefing · Q1 2026\n\n> Confidential · Prepared for leadership · April 19, 2026\n\n## At a glance\n\nQ1 closed ahead of plan. Revenue grew **22% QoQ**, driven by the API product (38% of new bookings).\n\n## Financial summary\n\n| Line | Q4 2025 | Q1 2026 | Δ |\n|---|---|---|---|\n| Revenue | $2.10M | $2.56M | **+22%** |\n| ARR | $8.4M | $10.2M | +21% |\n| Net new logos | 84 | 112 | +33% |\n\n## Product wins\n\n- **API GA'd in March** — 740 signups in 4 weeks\n- Two enterprise pilots → multi-year contracts\n- Shipped **n8n, Dify, Make** integrations",
"format": "pdf",
"mode": "binary",
"theme": "github"
}
复制并运行这些示例即可开始
curl -X POST https://markdowntoimage.com/api/v1/images/generate \
-H "Authorization: Bearer mti_your_token" \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Hello World\n\nGenerated with API",
"format": "png"
}'任何 HTML 都能渲染 — 包括 Claude Artifacts、ChatGPT canvas、v0 生成的组件,或你自己的 Tailwind HTML — 一次 POST 调用即可转成图片或 PDF。适合 OG 卡、dashboard、以及 markdown 做不到的像素级布局。
无论你在做 AI 产品、内容流水线还是自动化工作流 — 这套 API 都能接入你已有的链路。
一个 HTTP 请求。适配任何语言和框架,也可以直接在 n8n、Dify、Make 里调用。
用一个 POST 请求替代每周的设计流程。输出可预测,成本可预测。
免费月度额度 + 积分机制,让你从 50 张/月扩到数千张都不用重写架构。
PNG、JPEG、WebP、PDF 等
浅色、深色和自定义色彩方案
15+ 种字体和灵活的尺寸选项
10+ 种代码主题(Dracula、Nord、Monokai 等)
使用积分移除水印
易于与任何平台集成