SuperAPI AI Directory

aippt

Office & productivity

View repository

Updated 10-15 16:45

About this skill

AIPPT - AI PPT Generation Workflow

Core Concept: Use base images to constrain style, use prompts to replace content, and let AI generate each page.

When to Use

  • You have an existing PPT template and want to quickly generate new content
  • You need to batch-generate multiple PPT pages
  • You want each page to have a consistent style but different content

Workflow

导出图片 → 分析模板 → 内容分段 → 表达形式设计 → 内容映射 → 上传图床 → 调用API → 下载保存 → 打包PPTX
    ↓          ↓          ↓            ↓            ↓          ↓         ↓          ↓          ↓
  垫图      布局库      页面规划    最佳表达形式    提示词      URL      生成图片    PNG文件    .pptx

Quick Start

Step 1: Prepare base images

Read 01_导出方法.md — Export PPT as images

Step 2: Analyze the template

Read 02_PPT模板分析方法.md — Output layout library

Step 3: Plan content

Read 03_内容分段方法.md — Determine what goes on each page

Step 3.5: Expression Form Design (Key)

For each page's content, ask:What is the best expression form?

  • Template has a suitable layout → Use the template
  • Template does not have one → Use a creative page (style unchanged, expression free)

See details in 04_内容映射方法.md the "Expression Form Design" section

Step 4: Mapping + prompts

Read 04_内容映射方法.md — Match content to layouts and generate prompts

Prompt SpecificationSee 02_PPT模板分析方法.md Chapter 6

Step 5: Generate images

Upload base images → Call API → Download and save

Step 6: Package PPT

node scripts/images2pptx.js <图片目录> output.pptx

File Index

File Role Function
01_导出方法.md Stage 1 Export PPT as images (base images)
02_PPT模板分析方法.md Stage 2 Analyze the template and output a layout library
03_内容分段方法.md Stage 3 Split content into pages
04_内容映射方法.md Stage 4 Match content to layouts and generate prompts
05_图床上传方法.md Tool Upload to image host to obtain URL
config/secrets.md Configuration API Key
scripts/images2pptx.js Tool Package images into PPTX

API Calls

Read configuration

From config/secrets.md Get the API Key

Call the image generation API

curl -s -X POST "https://api.apicore.ai/v1/images/generations" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemini-3-pro-image-preview-4k", "prompt": "提示词", "size": "16:9", "n": 1}'

Model Selection

Model Description
gemini-3-pro-image-preview Standard
gemini-3-pro-image-preview-2k 2K HD
gemini-3-pro-image-preview-4k 4K Ultra HD (default)

Download images

curl -s -o "输出.png" "图片URL"

Package PPTX

# 首次使用安装依赖
npm install pptxgenjs

# 打包
node scripts/images2pptx.js <图片目录> [输出文件名]
  • Automatically recognize jpg/png/gif/webp
  • Sort by the numbers in file names
  • Output 16:9 aspect ratio

Directory Structure

AIPPT2/
├── SKILL.md              # 入口(本文件)
├── README.md             # 总览
├── 01_导出方法.md
├── 02_PPT模板分析方法.md
├── 03_内容分段方法.md
├── 04_内容映射方法.md
├── 05_图床上传方法.md
├── config/
│   └── secrets.md        # API Key
└── scripts/
    └── images2pptx.js    # 打包脚本