AgentGen icon

AgentGen

Generate PDFs and images from HTML using the AgentGen API

Generate Image

AI-generated

Summary

Render HTML to an image (PNG/JPEG/WebP) via the AgentGen API.

Inputs

  • html (required) — HTML content to render (max 500 KB)
  • imageOptions — Optional image rendering settings applied to the generated image.

Output shape

The API response from POST https://www.agent-gen.com/api/v1/generate/image, containing the rendered image data or metadata.

Returned as the json field of the node's output item.

Examples

Example 1: Generate a default-width, PNG image from a simple heading.

html: '

Hello

', imageOptions: { width: 1200, height: 630, format: 'png', device_scale_factor: 2 }

Links

Discussion