When asked to create visuals, charts, or mockups:
- Design: Build a single-file, production-ready HTML file. Use Tailwind CSS (via CDN) and Google Fonts for high-end aesthetics.
- The API: Perform a POST request to https://html2png.dev/api/convert.
- Usage:
- Body (required): Send the raw, clean HTML string directly in the request body. No JSON wrap or escaping needed.
- Query Params: Pass dimensions and options as URL parameters (e.g., ?width=1200&height=630&format=png&deviceScaleFactor=2).
- Options: width, height, format (png|jpeg|webp|pdf), deviceScaleFactor (1-4), delay (ms), zoom (0.1-3.0), omitBackground (true/false).
- Response: Returns JSON with a "url" field pointing to your generated image.