AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
docs: promote gpt-image-2 as recommended image backend
hugohe32d0ba2688194
diff --git a/.env.example b/.env.exampleindex a3c4a55f..8795934d 100644--- a/.env.example+++ b/.env.example@@ -8,9 +8,9 @@# 当前进程环境变量优先于这个文件。# Active backend (required) / 当前启用后端(必需)-# Recommended core backends: gemini / openai / qwen / zhipu / volcengine-# 推荐核心后端:gemini / openai / qwen / zhipu / volcengine-# IMAGE_BACKEND=gemini+# Recommended core backends: openai / gemini / qwen / zhipu / volcengine+# 推荐核心后端:openai / gemini / qwen / zhipu / volcengine+# IMAGE_BACKEND=openai# You may also provide the same variables directly via the current process environment.# 也可以不写 .env,而是直接通过当前运行进程的环境变量提供同样的配置。@@ -22,6 +22,14 @@# - 不再支持 IMAGE_API_KEY / IMAGE_MODEL / IMAGE_BASE_URL。# - 请只使用各提供商自己的变量。+# ─────────────────────────────────────────────────────────────+# Example: OpenAI / OpenAI 示例 (recommended / 推荐)+# ─────────────────────────────────────────────────────────────+# IMAGE_BACKEND=openai+# OPENAI_API_KEY=sk-xxx+# OPENAI_MODEL=gpt-image-2+# OPENAI_BASE_URL=http://127.0.0.1:3000/v1+# ─────────────────────────────────────────────────────────────# Example: Gemini / Gemini 示例# ─────────────────────────────────────────────────────────────@@ -30,14 +38,6 @@# GEMINI_MODEL=gemini-3.1-flash-image-preview# GEMINI_BASE_URL=https://your-proxy-url.com-# ─────────────────────────────────────────────────────────────-# Example: OpenAI / OpenAI 示例-# ─────────────────────────────────────────────────────────────-# IMAGE_BACKEND=openai-# OPENAI_API_KEY=sk-xxx-# OPENAI_MODEL=gpt-image-2-# OPENAI_BASE_URL=http://127.0.0.1:3000/v1-# ─────────────────────────────────────────────────────────────# Example: MiniMax / MiniMax 示例# ─────────────────────────────────────────────────────────────@@ -109,11 +109,11 @@# ─────────────────────────────────────────────────────────────# Multi-provider example / 多提供商共存示例# ─────────────────────────────────────────────────────────────-# IMAGE_BACKEND=gemini+# IMAGE_BACKEND=openai+# OPENAI_API_KEY=sk-xxx+# OPENAI_MODEL=gpt-image-2# GEMINI_API_KEY=your-gemini-api-key# GEMINI_MODEL=gemini-3.1-flash-image-preview-# ZHIPU_API_KEY=your-zhipu-key-# ZHIPU_MODEL=glm-image## Switch providers by changing IMAGE_BACKEND only.# 切换提供商时,只改 IMAGE_BACKEND 即可。diff --git a/README.md b/README.mdindex c8d4e2f0..76fc8839 100644--- a/README.md+++ b/README.md@@ -216,14 +216,14 @@ cp .env.example .env # then edit with your API key``````env-IMAGE_BACKEND=gemini # required — must be set explicitly-GEMINI_API_KEY=your-api-key-GEMINI_MODEL=gemini-3.1-flash-image-preview+IMAGE_BACKEND=openai # required — must be set explicitly+OPENAI_API_KEY=sk-xxx+OPENAI_MODEL=gpt-image-2```-Multiple backends are supported across Core / Extended / Experimental tiers. Run `python3 skills/ppt-master/scripts/image_gen.py --list-backends` to see the full list. Environment variables override `.env`. Use provider-specific keys (`GEMINI_API_KEY`, `OPENAI_API_KEY`, etc.) — global `IMAGE_API_KEY` is not supported.+Multiple backends are supported across Core / Extended / Experimental tiers. Run `python3 skills/ppt-master/scripts/image_gen.py --list-backends` to see the full list. Environment variables override `.env`. Use provider-specific keys (`OPENAI_API_KEY`, `GEMINI_API_KEY`, etc.) — global `IMAGE_API_KEY` is not supported.-> **Tip:** For best quality, generate images in [Gemini](https://gemini.google.com/) and select **Download full size**. Remove the watermark with `scripts/gemini_watermark_remover.py`.+> **Tip:** `gpt-image-2` currently delivers the best overall quality. Gemini is also supported — download full size and remove the watermark with `scripts/gemini_watermark_remover.py`.---diff --git a/README_CN.md b/README_CN.mdindex b9374281..e07857a2 100644--- a/README_CN.md+++ b/README_CN.md@@ -220,14 +220,14 @@ cp .env.example .env # 然后填入你的 API Key``````env-IMAGE_BACKEND=gemini # 必填——必须显式指定-GEMINI_API_KEY=your-api-key-GEMINI_MODEL=gemini-3.1-flash-image-preview+IMAGE_BACKEND=openai # 必填——必须显式指定+OPENAI_API_KEY=sk-xxx+OPENAI_MODEL=gpt-image-2```-支持多家后端,按 Core / Extended / Experimental 分级。运行 `python3 skills/ppt-master/scripts/image_gen.py --list-backends` 查看完整清单。环境变量优先于 `.env`。使用各家独立的 Key(`GEMINI_API_KEY`、`OPENAI_API_KEY` 等)——不支持全局 `IMAGE_API_KEY`。+支持多家后端,按 Core / Extended / Experimental 分级。运行 `python3 skills/ppt-master/scripts/image_gen.py --list-backends` 查看完整清单。环境变量优先于 `.env`。使用各家独立的 Key(`OPENAI_API_KEY`、`GEMINI_API_KEY` 等)——不支持全局 `IMAGE_API_KEY`。-> **建议:** 高质量图片推荐在 [Gemini](https://gemini.google.com/) 中生成并选择 **Download full size**。去水印可用 `scripts/gemini_watermark_remover.py`。+> **建议:** `gpt-image-2` 目前综合质量最佳。Gemini 同样支持——下载 full size 后可用 `scripts/gemini_watermark_remover.py` 去水印。---diff --git a/skills/ppt-master/references/image-generator.md b/skills/ppt-master/references/image-generator.mdindex 7f1645e7..2eaf8c8b 100644--- a/skills/ppt-master/references/image-generator.md+++ b/skills/ppt-master/references/image-generator.md@@ -384,7 +384,7 @@ Abstract futuristic background with flowing digital waves...## Usage Instructions1. Copy the "Prompt" above into an AI image generation tool-2. Recommended platforms: Midjourney / DALL-E 3 / Gemini / Stable Diffusion+2. Recommended platforms: gpt-image-2 / Midjourney / DALL-E 3 / Gemini / Stable Diffusion3. Rename generated images to the corresponding filenames4. Place in the `images/` directory```diff --git a/skills/ppt-master/scripts/docs/image.md b/skills/ppt-master/scripts/docs/image.mdindex 405b1dbb..fa88cf02 100644--- a/skills/ppt-master/scripts/docs/image.md+++ b/skills/ppt-master/scripts/docs/image.md@@ -36,18 +36,18 @@ The active backend must always be selected explicitly via `IMAGE_BACKEND`.Example `.env`:```env-IMAGE_BACKEND=gemini-GEMINI_API_KEY=your-api-key-GEMINI_BASE_URL=https://your-proxy-url.com/v1beta-GEMINI_MODEL=gemini-3.1-flash-image-preview+IMAGE_BACKEND=openai+OPENAI_API_KEY=sk-xxx+OPENAI_MODEL=gpt-image-2+# OPENAI_BASE_URL=http://127.0.0.1:3000/v1 # optional proxy```Example process environment:```bash-export IMAGE_BACKEND=gemini-export GEMINI_API_KEY=your-api-key-export GEMINI_MODEL=gemini-3.1-flash-image-preview+export IMAGE_BACKEND=openai+export OPENAI_API_KEY=sk-xxx+export OPENAI_MODEL=gpt-image-2```Current process environment wins over `.env`.diff --git a/skills/ppt-master/scripts/image_gen.py b/skills/ppt-master/scripts/image_gen.pyindex f2258419..3dd7966a 100644--- a/skills/ppt-master/scripts/image_gen.py+++ b/skills/ppt-master/scripts/image_gen.py@@ -346,8 +346,8 @@ def _resolve_backend() -> tuple[object, str]:f"Supported backends: {supported}\n""\n""Example:\n"- " IMAGE_BACKEND=gemini\n"- " GEMINI_API_KEY=your-key\n"+ " IMAGE_BACKEND=openai\n"+ " OPENAI_API_KEY=sk-xxx\n")sys.exit(1)