---
title: UI与界面 — gpt-image-2 提示词 | RunAPI
description: 复制这个 RunAPI prompt，查看 agent 设置步骤，并使用 gpt-image-2 的 API 代码。
url: https://runapi.ai/zh-CN/prompts/prompt-A1pVL0.md
canonical: https://runapi.ai/zh-CN/prompts/prompt-A1pVL0
locale: zh-CN
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
prompt_id: 11324
model: gpt-image-2
modality: image
endpoint: "/api/v1/gpt_image_2/text_to_image"
---

> HTML version: https://runapi.ai/zh-CN/prompts/prompt-A1pVL0
> Site index for agents: https://runapi.ai/llms.txt


# UI与界面

复制这个 RunAPI prompt，查看 agent 设置步骤，并使用 gpt-image-2 的 API 代码。

**Prompts** · 图像

![UI与界面 preview](https://cdn.runapi.ai/public/prompts/previews/8aa72b98ff349ea4845f760d5669ebd9c2d2a281358d18458030e99b95518389-runapi-ai.jpg)

## Prompt

```text
[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a "ready to sleep" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting.
```

<!-- prompt-detail-slot: generation-parameters -->
<!-- /prompt-detail-slot: generation-parameters -->

<!-- prompt-detail-slot: generate-cta -->

### 生成此 Prompt

| 模型 | GPT Image 2 2 |
|---|---|
| 预计成本 | $0.03 / 次调用 |
| Endpoint | `/api/v1/gpt_image_2/text_to_image` |

[登录后生成](https://runapi.ai/zh-CN/login)

生成的图片会显示在这里
<!-- /prompt-detail-slot: generate-cta -->

<!-- prompt-detail-slot: prompt-breakdown -->

## 提示词解析

### 主体

UI与界面

### 氛围

lifestyle / 图像

### 技术参数

gpt-image-2 / Gpt Image 2 / Text To Image / /api/v1/gpt_image_2/text_to_image

### 风格

9-grid, cream-white, healing, lifestyle, minimalist-layout, sleep-therapy, vertical-poster, xiaohongshu

<!-- /prompt-detail-slot: prompt-breakdown -->

<!-- prompt-detail-slot: supported-models -->
## 支持此 Prompt 的模型

| 模态 | 模型 | 价格 | 试用 |
|---|---|---|---|
| 图像 | Qwen 2/qwen-2-text-to-image | $0.04 / 张图片 | [试用](https://runapi.ai/zh-CN/models/qwen-2/text-to-image.md) |
| 图像 | Qwen 3/qwen-3-pro-text-to-image | $0.04-$0.08 / 张图片 | [试用](https://runapi.ai/zh-CN/models/qwen-3/pro-text-to-image.md) |
| 图像 | Qwen 3/qwen-3-text-to-image | $0.03 / 张图片 | [试用](https://runapi.ai/zh-CN/models/qwen-3/text-to-image.md) |
| 图像 | Qwen Image/qwen-image-text-to-image | $0.03 / 张图片 | [试用](https://runapi.ai/zh-CN/models/qwen-image/text-to-image.md) |
| 图像 | Wan/wan-2.7-image | $0.03 / 张图片 | [试用](https://runapi.ai/zh-CN/models/wan/2.7-image.md) |

<!-- /prompt-detail-slot: supported-models -->

## 运行信息

| Field | Value |
|---|---|
| 模型 | `gpt-image-2` |
| Modality | 图像 |
| Category | lifestyle |
| Tags | 9-grid, cream-white, healing, lifestyle, minimalist-layout, sleep-therapy, vertical-poster, xiaohongshu |

## Use with an agent

### Claude Code

1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt：生成一张图像："[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a "ready to sleep" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting."

### Codex

1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt：生成一张图像："[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a "ready to sleep" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting."

### Cursor

1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt：生成一张图像："[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a "ready to sleep" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting."

### Windsurf

1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt：生成一张图像："[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a "ready to sleep" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting."

<!-- api-example-tabs-slot -->

<!-- ## API examples -->
## Generate via API

### curl

```curl
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "gpt-image-2",
  "prompt": "[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \"ready to sleep\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting."
}
JSON
```

### Node.js

```javascript
import { GptImage2Client } from "@runapi.ai/gpt-image-2";

const client = new GptImage2Client({
  apiKey: process.env.RUNAPI_API_KEY,
});

const result = await client.textToImage.run({
  "model": "gpt-image-2",
  "prompt": "[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \"ready to sleep\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting."
});
console.log(result.id);
```

### Python

```python
import json
import os
import requests

response = requests.post(
    "https://runapi.ai/api/v1/gpt_image_2/text_to_image",
    headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
    json=json.loads("{\n  \"model\": \"gpt-image-2\",\n  \"prompt\": \"[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \\\"ready to sleep\\\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting.\"\n}")
)
response.raise_for_status()
print(response.json()["id"])
```

### PHP

```php
<?php

$ch = curl_init("https://runapi.ai/api/v1/gpt_image_2/text_to_image");
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("RUNAPI_API_KEY"),
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => "{\n  \"model\": \"gpt-image-2\",\n  \"prompt\": \"[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \\\"ready to sleep\\\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting.\"\n}",
    CURLOPT_RETURNTRANSFER => true,
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);
echo $response["id"] . PHP_EOL;
```

### Java

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var request = HttpRequest.newBuilder(URI.create("https://runapi.ai/api/v1/gpt_image_2/text_to_image"))
    .header("Authorization", "Bearer " + System.getenv("RUNAPI_API_KEY"))
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{\n  \"model\": \"gpt-image-2\",\n  \"prompt\": \"[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \\\"ready to sleep\\\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting.\"\n}"))
    .build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

### Ruby

```ruby
require "json"
require "net/http"

uri = URI("https://runapi.ai/api/v1/gpt_image_2/text_to_image")
request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Bearer " + ENV.fetch("RUNAPI_API_KEY")
request["Content-Type"] = "application/json"
request.body = "{\n  \"model\": \"gpt-image-2\",\n  \"prompt\": \"[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \\\"ready to sleep\\\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting.\"\n}"

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }
puts JSON.parse(response.body).fetch("id")
```

### Go

```go
package main

import (
  "context"
  "fmt"
  "log"
  "net/http"
  "os"
  "strings"
)

func main() {
  body := strings.NewReader("{\"model\":\"gpt-image-2\",\"prompt\":\"[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \\\"ready to sleep\\\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting.\"}")
  req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/gpt_image_2/text_to_image", body)
  if err != nil {
    log.Fatal(err)
  }

  req.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
  req.Header.Set("Content-Type", "application/json")

  resp, err := http.DefaultClient.Do(req)
  if err != nil {
    log.Fatal(err)
  }
  defer resp.Body.Close()

  fmt.Println(resp.Status)
}
```

### CLI

```cli
$ runapi generate \
    --model gpt-image-2 \
    --prompt "[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \"ready to sleep\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting." \
    --wait
```

<!-- /api-example-tabs-slot -->

## 更多相似 prompts

- [Camera Dome 48-Point View Setup](https://runapi.ai/zh-CN/prompts/3d-rendered-camera-dome-with-three-rings-and-48-points-JPa6v0.md) — `gpt-image-2`
- [Cozy Vintage Hallway Dance Scene](https://runapi.ai/zh-CN/prompts/elderly-couple-s-playful-hallway-dance-AkyGwJ.md) — `gpt-image-2`
- [Aortic Stenosis Spectrogram Generation](https://runapi.ai/zh-CN/prompts/spectrogram-of-aortic-stenosis-Aj4waJ.md) — `gpt-image-2`

## 使用这个 gpt-image-2 prompt

### 如何安全复制这个 prompt？

使用完整 prompt 区块旁边的复制按钮。它只复制 prompt 文本，不包含页面标签，所以可以直接粘贴到 agent 指令、JSON 请求体或你自己的 prompt 库。

### 为什么详情页会显示参数？

有些 prompt 采集时带有画幅、时长或声音控制等生成设置。存在参数时，页面会单独列出，方便你同时复用 prompt 文本和结构化设置。

### 应该调用哪个 endpoint？

使用 API 代码块里显示的 endpoint 路径。这个路径由 prompt 的 RunAPI 服务和 endpoint 名称生成，并渲染成 curl 与 SDK 示例使用的公开 API URL。

### 可以不用代码，直接在 agent 里用吗？

可以。在标签切换器里选择 Claude Code、Codex、Cursor 或 Windsurf，安装 RunAPI MCP Server，然后粘贴生成好的指令。指令会包含完整 prompt 文本。

## 需要团队接入支持？

我们可以协助团队接入、完成系统集成并解答技术问题。

[联系我们](https://runapi.ai/zh-CN/contact.md)


---

## More from RunAPI

- [Home](https://runapi.ai/zh-CN/.md)
### 产品
- [模型目录](https://runapi.ai/zh-CN/models.md)
- [定价](https://runapi.ai/zh-CN/pricing.md)
- [提供方](https://runapi.ai/zh-CN/models#all-models)
- [提示词库](https://runapi.ai/zh-CN/prompts.md)
### 开发者
- [文档](https://runapi.ai/zh-CN/docs/guides)
- [SDK](https://runapi.ai/zh-CN/sdk.md)
- [CLI](https://runapi.ai/zh-CN/cli.md)
- [MCP Server](https://runapi.ai/zh-CN/mcp.md)
- [x402](https://runapi.ai/zh-CN/x402.md)
### 指南
- [Claude Code 与 Cursor](https://runapi.ai/zh-CN/claude-code-vs-cursor.md)
- [Cursor API 设置](https://runapi.ai/zh-CN/cursor-api-setup.md)
- [RunAPI 与 OpenRouter](https://runapi.ai/zh-CN/openrouter-alternative.md)
### 公司
- [企业版](https://runapi.ai/zh-CN/contact.md)
- [联系](https://runapi.ai/zh-CN/contact.md)
### 法律
- [服务条款](https://runapi.ai/zh-CN/terms.md)
- [隐私政策](https://runapi.ai/zh-CN/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-CN/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-CNicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "首页",
        "item": "https://runapi.ai/zh-CN"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Prompts",
        "item": "https://runapi.ai/zh-CN/prompts"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "图像",
        "item": "https://runapi.ai/zh-CN/prompts/image"
      },
      {
        "@type": "ListItem",
        "position": 4,
        "name": "UI与界面",
        "item": "https://runapi.ai/zh-CN/prompts/prompt-A1pVL0"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "如何安全复制这个 prompt？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "使用完整 prompt 区块旁边的复制按钮。它只复制 prompt 文本，不包含页面标签，所以可以直接粘贴到 agent 指令、JSON 请求体或你自己的 prompt 库。"
        }
      },
      {
        "@type": "Question",
        "name": "为什么详情页会显示参数？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "有些 prompt 采集时带有画幅、时长或声音控制等生成设置。存在参数时，页面会单独列出，方便你同时复用 prompt 文本和结构化设置。"
        }
      },
      {
        "@type": "Question",
        "name": "应该调用哪个 endpoint？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "使用 API 代码块里显示的 endpoint 路径。这个路径由 prompt 的 RunAPI 服务和 endpoint 名称生成，并渲染成 curl 与 SDK 示例使用的公开 API URL。"
        }
      },
      {
        "@type": "Question",
        "name": "可以不用代码，直接在 agent 里用吗？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "可以。在标签切换器里选择 Claude Code、Codex、Cursor 或 Windsurf，安装 RunAPI MCP Server，然后粘贴生成好的指令。指令会包含完整 prompt 文本。"
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh",
    "@type": "CreativeWork",
    "name": "UI与界面",
    "text": "[中文] 生成一张适合小红书发布的 3:4 竖版九宫格海报，整体为 3列 × 3行 排版，九个宫格边界清晰，方便后期直接切割成 9 张单图发布。整体风格干净、高级、统一，适合女性向健康生活方式内容，具有小红书爆款封面气质。画面要求 信息排版清晰、文字大、可读性强、留白舒服、配色温柔治愈。 整体视觉风格： 奶油白、浅米色、淡燕麦色、浅焦糖色为主色调，搭配少量深棕色文字，ins风、治愈感、睡眠疗愈主题，简约排版，轻拟物插画点缀，可加入枕头、月亮、星星、热牛奶、香薰、书本、眼罩、窗帘、床铺等元素。整体像专业新媒体设计图，字体工整，适合做知识科普类小红书九宫格。 排版要求： 整张图必须是标准九宫格构图，切分后每一格都能独立成图 每个宫格内容完整居中，不要把标题或正文压在分割线附近 每个格子之间保留明显间隔或细边框，保证裁切后不影响阅读 所有文字使用中文，清晰易读，不要乱码，不要英文 每个宫格都像独立的小红书图文卡片，但视觉风格保持统一 画面精致、真实、自然，不要廉价营销感，不要过度花哨 九宫格具体内容： 第1格（封面） 大标题：让你倒头就睡的8个 tips 副标题：失眠党、熬夜党一定要收藏 封面视觉最吸睛，适合做首图，加入柔软床铺、月亮、枕头、眼罩等治愈睡眠元素，标题突出，排版高级。 第2格 标题：1. 睡前1小时别玩手机 正文：蓝光会让大脑更清醒，越刷越睡不着。 配图元素：手机、月亮、困倦表情的小插画 第3格 标题：2. 睡前把灯光调暗 正文：暖光环境能帮助身体进入“准备睡觉”的状态。 配图元素：床头灯、暖黄色灯光、窗帘 第4格 标题：3. 房间温度别太高 正文：稍微凉一点，更容易快速入睡。 配图元素：空调、温度计、被子 第5格 标题：4. 晚上别喝浓茶咖啡 正文：咖啡因会延迟困意，让你躺很久还睡不着。 配图元素：咖啡杯、茶杯、禁止符号 第6格 标题：5. 睡前洗个热水澡 正文：能让身体放松下来，入睡速度更快。 配图元素：浴室蒸汽、毛巾、热水 第7格 标题：6. 脑子停不下来就写下来 正文：把烦心事和待办清单写下，大脑会更容易放松。 配图元素：笔记本、钢笔、小台灯 第8格 标题：7. 固定上床时间 正文：每天差不多时间睡，生物钟会越来越稳定。 配图元素：时钟、月亮、床 第9格 标题：8. 试试深呼吸放松法 正文：吸气4秒，停4秒，呼气6秒，慢慢就有困意了。 底部小字：收藏这组，今晚试试看 配图元素：呼吸线条、闭眼人物、星星 画质要求： 高清，高级排版，杂志感，真实可发布，新媒体运营审美，小红书爆款图文风格，文字布局规整，适合直接切图。 [English] Generate a 3:4 vertical 9-grid poster suitable for publishing on Xiaohongshu, with an overall layout of 3 columns × 3 rows. The boundaries of the nine grids are clear, making it easy to directly cut into 9 single images for later publishing. The overall style is clean, premium, and unified, suitable for female-oriented healthy lifestyle content, possessing the vibe of a viral Xiaohongshu cover. Image requirements: clear information layout, large text, strong readability, comfortable white space, gentle and healing color palette. Overall visual style: Cream white, light beige, light oat color, and light caramel color as the main color tones, paired with a small amount of dark brown text. Ins style, healing sense, sleep therapy theme, minimalist layout, light skeuomorphic illustration embellishments. Elements such as pillows, moons, stars, hot milk, aromatherapy, books, eye masks, curtains, and beds can be added. The overall look should be like a professional new media design graphic, with neat fonts, suitable for a knowledge-based popular science Xiaohongshu 9-grid. Layout requirements: The entire image must be a standard 9-grid composition, and each grid can stand alone as an independent image after being cut. The content of each grid should be completely centered; do not place titles or body text near the dividing lines. Keep obvious gaps or thin borders between each grid to ensure that reading is not affected after cropping. All text must use Chinese, be clear and readable, no garbled characters, no English. Each grid should look like an independent Xiaohongshu image-and-text card, but the visual style must remain unified. The image should be exquisite, realistic, and natural, without a cheap marketing feel, and not overly flashy. Specific content of the 9-grid: Grid 1 (Cover) Main title: 8 tips to make you fall asleep instantly Subtitle: Insomniacs and night owls must save this The cover visuals should be the most eye-catching, suitable for the first image. Add healing sleep elements such as soft beds, moons, pillows, and eye masks. The title should be prominent with a premium layout. Grid 2 Title: 1. Don't play with your phone 1 hour before bed Body text: Blue light makes the brain more awake; the more you scroll, the harder it is to fall asleep. Image elements: Mobile phone, moon, small illustration of a sleepy expression Grid 3 Title: 2. Dim the lights before bed Body text: A warm light environment can help the body enter a \"ready to sleep\" state. Image elements: Bedside lamp, warm yellow light, curtains Grid 4 Title: 3. Don't keep the room temperature too high Body text: Keeping it a bit cooler makes it easier to fall asleep quickly. Image elements: Air conditioner, thermometer, quilt Grid 5 Title: 4. Don't drink strong tea or coffee at night Body text: Caffeine delays sleepiness, making you lie in bed for a long time unable to sleep. Image elements: Coffee cup, teacup, prohibition sign Grid 6 Title: 5. Take a hot shower before bed Body text: It can relax the body and help you fall asleep faster. Image elements: Bathroom steam, towel, hot water Grid 7 Title: 6. Write it down if your brain won't stop Body text: Writing down your worries and to-do lists makes it easier for your brain to relax. Image elements: Notebook, fountain pen, small desk lamp Grid 8 Title: 7. Fix your bedtime Body text: Going to bed at about the same time every day will make your biological clock increasingly stable. Image elements: Clock, moon, bed Grid 9 Title: 8. Try deep breathing relaxation Body text: Inhale for 4 seconds, hold for 4 seconds, exhale for 6 seconds, and sleepiness will gradually come. Bottom small text: Save this set and try it tonight Image elements: Breathing lines, person with closed eyes, stars Image quality requirements: High definition, premium layout, magazine feel, realistically publishable, new media operation aesthetics, Xiaohongshu viral image-and-text style, neat text layout, suitable for direct image cutting.",
    "image": "https://cdn.runapi.ai/public/prompts/previews/8aa72b98ff349ea4845f760d5669ebd9c2d2a281358d18458030e99b95518389-runapi-ai.jpg",
    "about": [
      "image",
      "gpt-image-2",
      "lifestyle"
    ]
  }
]
```
