Skip to main content

2slides

AI-powered presentation generation using 2slides API. Create slides from text content, match reference image styles, or summarize documents into presentations. Use when users request to "create a presentation", "make slides", "generate a deck", "create slides from this content/document/image", or any presentation creation task. Supports theme selection, multiple languages, and both synchronous and asynchronous generation modes.

跳到安装

来源信息

仓库
Bilal140202/the-lord-of-the-skills
最近来源活动
2026年6月29日 18:16
检测到的 SKILL.md 语言
英语
星标
4
分支
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
2slides
description
AI-powered presentation generation using 2slides API. Create slides from text content, match reference image styles, or summarize documents into presentations. Use when users request to "create a presentation", "make slides", "generate a deck", "create slides from this content/document/image", or any presentation creation task. Supports theme selection, multiple languages, and both synchronous and asynchronous generation modes.
# 2slides Presentation Generation Generate professional presentations using the 2slides AI API. Supports content-based generation, style matching from reference images, and document summarization. ## Setup Requirements Users must have a 2slides API key and credits: 1. **Get API Key:** Visit https://2slides.com/api to create an account and API key - New users receive **500 free credits** (~50 Fast PPT pages) 2. **Purchase Credits (Optional):** Visit https://2slides.com/pricing to buy additional credits - Pay-as-you-go, no subscriptions - Credits never expire - Up to 20% off on larger packages 3. **Set API Key:** Store the key in environment variable: `SLIDES_2SLIDES_API_KEY` ```bash export SLIDES_2SLIDES_API_KEY="your_api_key_here" ``` **Credit Costs:** - Fast PPT: 10 credits/page - Nano Banana 1K/2K: 100 credits/page - Nano Banana 4K: 200 credits/page - Voice Narration: 210 credits/page - Download Export: FREE See [references/pricing.md](references/pricing.md) for detailed pricing information. ## Workflow Decision Tree Choose the appropriate approach based on the user's request: ``` User Request │ ├─ "Create slides from this content/text" │ └─> Use Content-Based Generation (Section 1) │ ├─ "Create slides like this image" │ └─> Use Reference Image Generation (Section 2) │ ├─ "Create custom designed slides" or "Create PDF slides" │ └─> Use Custom PDF Generation (Section 3) │ ├─ "Create slides from this document" │ └─> Use Document Summarization (Section 4) │ ├─ "Add voice narration" or "Generate audio for slides" │ └─> Use Voice Narration (Section 5) │ ├─ "Download slides as images" or "Export slides and voices" │ └─> Use Download Export (Section 6) │ └─ "Search for themes" or "What themes are available?" └─> Use Theme Search (Section 7) ``` --- ## 1. Content-Based Generation Generate slides from user-provided text content. ### When to Use - User provides content directly in their message - User says "create a presentation about X" - User provides structured outline or bullet points ### Workflow **Step 1: Prepare Content** Structure the content clearly for best results: ``` Title: [Main Topic] Section 1: [Subtopic] - Key point 1 - Key point 2 - Key point 3 Section 2: [Subtopic] - Key point 1 - Key point 2 ``` **Step 2: Choose Theme (Required)** Search for an appropriate theme (themeId is required): ```bash python scripts/search_themes.py --query "business" python scripts/search_themes.py --query "professional" python scripts/search_themes.py --query "creative" ``` Pick a theme ID from the results. **Step 3: Generate Slides** Use the `generate_slides.py` script with the theme ID: ```bash # Basic generation (theme ID required) python scripts/generate_slides.py --content "Your content here" --theme-id "theme123" # In different language python scripts/generate_slides.py --content "Your content" --theme-id "theme123" --language "Spanish" # Async mode for longer presentations python scripts/generate_slides.py --content "Your content" --theme-id "theme123" --mode async ``` **Step 4: Handle Results** **Sync mode response:** ```json { "slideUrl": "https://2slides.com/slides/abc123", "pdfUrl": "https://2slides.com/slides/abc123/download", "status": "completed" } ``` Provide both URLs to the user: - `slideUrl`: Interactive online slides - `pdfUrl`: Downloadable PDF version **Async mode response:** ```json { "jobId": "job123", "status": "pending" } ``` Poll for results: ```bash python scripts/get_job_status.py --job-id "job123" ``` --- ## 2. Reference Image Generation Generate slides that match the style of a reference image. ### When to Use - User provides an image URL and says "create slides like this" - User wants to match existing brand/design style - User has a template image they want to emulate ### Workflow **Step 1: Verify Image URL** Ensure the reference image is: - Publicly accessible URL - Valid image format (PNG, JPG, etc.) - Represents the desired slide style **Step 2: Generate Slides** Use the `generate_slides.py` script with `--reference-image`: ```bash python scripts/generate_slides.py \ --content "Your presentation content" \ --reference-image "https://example.com/template.jpg" \ --language "Auto" ``` **Optional parameters (all values from [2slides API](https://2slides.com/api.md)):** ```bash --language LANG # Auto, English, Spanish, Arabic, Portuguese, Indonesian, # Japanese, Russian, Hindi, French, German, Greek, Vietnamese, # Turkish, Polish, Italian, Korean, Simplified Chinese, # Traditional Chinese, Thai (default: Auto) --mode sync|async # default: sync for theme, async for reference-image --aspect-ratio RATIO # 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 (default: 16:9) --resolution 1K|2K|4K # default: 2K --page N # 0=auto, 1-100 (default: 1) --content-detail concise|standard # default: standard ``` **Note:** This uses Nano Banana Pro mode with credit costs: - 1K/2K: 100 credits per page - 4K: 200 credits per page **Step 3: Handle Results** This mode always runs synchronously and returns: ```json { "slideUrl": "https://2slides.com/workspace?jobId=...", "pdfUrl": "https://...pdf...", "status": "completed", "message": "Successfully generated N slides", "slidePageCount": N } ``` Provide both URLs to the user: - `slideUrl`: View slides in 2slides workspace - `pdfUrl`: Direct PDF download (expires in 1 hour) **Processing time:** ~30 seconds per page (30-60 seconds typical for 1-2 pages) --- ## 3. Custom PDF Generation Generate custom-designed slides from text without needing a reference image. ### When to Use - User wants custom design without providing a reference image - User requests "create PDF slides" - User wants to specify design characteristics - Alternative to theme-based generation with more design flexibility ### Workflow **Step 1: Prepare Content** Structure the content clearly: ``` Title: [Main Topic] Section 1: [Subtopic] - Key point 1 - Key point 2 Section 2: [Subtopic] - Key point 1 - Key point 2 ``` **Step 2: Generate Slides** Use the `create_pdf_slides.py` script: ```bash # Basic generation python scripts/create_pdf_slides.py --content "Your content here" # With design style (API: designStyle) python scripts/create_pdf_slides.py \ --content "Sales Report Q4 2025" \ --design-style "modern minimalist, blue color scheme" # High resolution with auto page detection python scripts/create_pdf_slides.py \ --content "Marketing Plan" \ --resolution 4K \ --page 0 \ --content-detail standard ``` **Optional parameters:** ```bash --design-style "text" # Design instructions (API: designStyle) --language LANG # Same as generate_slides (default: Auto) --aspect-ratio RATIO # 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 (default: 16:9) --resolution 1K|2K|4K # default: 2K --page N # 0=auto, 1-100 (default: 1) --content-detail concise|standard # default: standard --mode sync|async # default: async ``` **Step 3: Handle Results** Returns same structure as create-like-this: ```json { "slideUrl": "https://2slides.com/workspace?jobId=...", "pdfUrl": "https://...pdf...", "status": "completed", "message": "Successfully generated N slides", "slidePageCount": N } ``` **Notes:** - Same credit costs as create-like-this (100 credits/page for 1K/2K, 200 for 4K) - Processing time: ~30 seconds per page - Automatically generates PDF - Uses AI to create custom design based on content and specs --- ## 4. Document Summarization Generate slides from document content. ### When to Use - User uploads a document (PDF, DOCX, TXT, etc.) - User says "create slides from this document" - User wants to summarize long content into presentation format ### Workflow **Step 1: Read Document** Use appropriate tool to read the document content: - PDF: Use PDF reading tools - DOCX: Use DOCX reading tools - TXT/MD: Use Read tool **Step 2: Extract Key Points** Analyze the document and extract: - Main topics and themes - Key points for each section - Important data, quotes, or examples - Logical flow and structure **Step 3: Structure Content** Format extracted information into presentation structure: ``` Title: [Document Main Topic] Introduction - Context - Purpose - Overview [Section 1 from document] - Key point 1 - Key point 2 - Supporting detail [Section 2 from document] - Key point 1 - Key point 2 - Supporting detail Conclusion - Summary - Key takeaways - Next steps ``` **Step 4: Generate Slides** Use content-based generation workflow (Section 1). First search for a theme, then generate: ```bash # Search for appropriate theme python scripts/search_themes.py --query "business" # Generate with theme ID python scripts/generate_slides.py --content "[Structured content from step 3]" --theme-id "theme123" ``` **Tips:** - Keep slides concise (3-5 points per slide) - Focus on key insights, not full text - Use document headings as slide titles - Include important statistics or quotes - Ask user if they want specific sections highlighted --- ## 5. Voice Narration Add AI-generated voice narration to slides. ### When to Use - User wants to add audio to slides - User requests "add voice narration" or "generate audio" - User wants presentations with spoken content - User needs multi-speaker narration ### Prerequisites **IMPORTANT:** The slide generation job must be completed before adding narration. 1. Generate slides first using any method (Section 1, 2, 3, or 4) 2. Get the job ID from the generation result 3. Ensure job status is "completed" before requesting narration ### Workflow **Step 1: Choose Voice** 30 voices available including: - Puck (default) - Aoede - Charon - Kore - Fenrir - Phoebe - And 24 more... List all voices: ```bash python scripts/generate_narration.py --list-voices ``` **Step 2: Generate Narration** Use the `generate_narration.py` script with the job ID: ```bash # Basic narration with default voice python scripts/generate_narration.py --job-id "abc-123-def-456" # Single speaker, specific voice python scripts/generate_narration.py --job-id "abc-123-def-456" --voice Aoede # No speaker intro python scripts/generate_narration.py --job-id "abc-123-def-456" --no-intro # Multi-speaker (names required) python scripts/generate_narration.py --job-id "abc-123-def-456" --multi-speaker \ --speaker1-name "Alice" --speaker2-name "Bob" \ --speaker1-voice Aoede --speaker2-voice Puck ``` **Parameters (aligned with [2slides API](https://2slides.com/api.md)):** - `--job-id`: Job ID (required, UUID for Nano Banana) - `--mode`: `single` or `multi` (default: single) - `--speaker-name`: Speaker name (single mode) - `--voice`: Voice name (default: Puck); use `--list-voices` for all 30 - `--content-mode`: `concise` or `standard` (default: standard) - `--no-intro`: Omit speaker introduction (single mode) - `--speaker1-name`, `--speaker2-name`: Required for multi mode - `--speaker1-voice`, `--speaker2-voice`: Optional for multi mode - `--multi-speaker`: Shortcut for `--mode multi` **Step 3: Check Status** Narration generation runs asynchronously: ```bash python scripts/get_job_status.py --job-id "abc-123-def-456" ``` **Step 4: Handle Results** Once completed, the job will include narration files. Use download endpoint (Section 6) to get audio files. **Notes:** - **Cost:** 210 credits per page (10 for text, 200 for audio) - Processing time varies by slide count - 30 voice options available - Supports 19 languages plus auto-detection - Multi-speaker mode uses different voices for variety --- ## 6. Download Export Download slides as PNG images and voice narrations as WAV files. ### When to Use - User wants to download slides as images - User needs voice files separately - User wants transcripts - User needs slides in image format for other tools ### Workflow **Step 1: Verify Job Complete** Ensure slides (and optionally narration) are generated and job is completed. **Step 2: Download Archive** Use the `download_slides_pages_voices.py` script: ```bash # Download with default filename (<job_id>.zip) python scripts/download_slides_pages_voices.py --job-id "abc-123-def-456" # Download to specific path python scripts/download_slides_pages_voices.py \ --job-id "abc-123-def-456" \ --output "my-presentation.zip"
在 GitHub 查看
这个 SKILL.md 很大,SkillsMP 这里只预览前一段内容。 在 GitHub 查看