text_to_images
Convert written content into Xiaohongshu-ready image series with selectable themes, aspect ratios, and optional AI cover generation.
Instructions
Convert text content to a series of images with Xiaohongshu (小红书) style themes.
Supported themes:
minimal: Clean white background, good for knowledge/tips content
elegant: Warm beige with serif font, good for novels/essays
warm: Warm gradient with card style, good for lifestyle/emotional content
dark: Dark mode, eye-friendly for night reading
Image ratios:
3:4 (1080x1440): Best for Xiaohongshu feed, takes most screen space
1:1 (1080x1080): Square format
4:3 (1080x810): Landscape format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text content to convert to images | |
| ratio | No | Image aspect ratio | 3:4 |
| theme | No | Visual theme for the images | minimal |
| title | No | Optional title for cover page | |
| fontSize | No | Font size for content | medium |
| outputDir | No | Directory path to save generated images. If provided, images will be saved as PNG files. | |
| showCover | No | Whether to generate a cover page | |
| charsPerPage | No | Custom characters per page (overrides automatic calculation) | |
| generateAiCover | No | Generate AI cover image using Gemini. Defaults to true if GEMINI_API_KEY is set. Set to false to disable. |