2slides-skillsAI-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.
Install via ClawdBot CLI:
clawdbot install javainthinking/2slides-skillsGenerate professional presentations using the 2slides AI API. Supports content-based generation, style matching from reference images, and document summarization.
Users must have a 2slides API key and credits:
SLIDES_2SLIDES_API_KEYexport SLIDES_2SLIDES_API_KEY="your_api_key_here"
Credit Costs:
See references/pricing.md for detailed pricing information.
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)
Generate slides from user-provided text content.
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):
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:
# 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:
{
"slideUrl": "https://2slides.com/slides/abc123",
"pdfUrl": "https://2slides.com/slides/abc123/download",
"status": "completed"
}
Provide both URLs to the user:
slideUrl: Interactive online slidespdfUrl: Downloadable PDF versionAsync mode response:
{
"jobId": "job123",
"status": "pending"
}
Poll for results:
python scripts/get_job_status.py --job-id "job123"
Generate slides that match the style of a reference image.
Step 1: Verify Image URL
Ensure the reference image is:
Step 2: Generate Slides
Use the generate_slides.py script with --reference-image:
python scripts/generate_slides.py \
--content "Your presentation content" \
--reference-image "https://example.com/template.jpg" \
--language "Auto"
Optional parameters:
--aspect-ratio "16:9" # width:height format (e.g., "16:9", "4:3")
--resolution "2K" # "1K", "2K" (default), or "4K"
--page 5 # Number of slides (0 for auto-detection, max 100)
--content-detail "concise" # "concise" (brief) or "standard" (detailed)
Note: This uses Nano Banana Pro mode with credit costs:
Step 3: Handle Results
This mode always runs synchronously and returns:
{
"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 workspacepdfUrl: Direct PDF download (expires in 1 hour)Processing time: ~30 seconds per page (30-60 seconds typical for 1-2 pages)
Generate custom-designed slides from text without needing a reference image.
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:
# Basic generation
python scripts/create_pdf_slides.py --content "Your content here"
# With design specifications
python scripts/create_pdf_slides.py \
--content "Sales Report Q4 2025" \
--design-spec "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:
--design-spec "text" # Design specifications (e.g., "corporate professional")
--aspect-ratio "16:9" # width:height format
--resolution "2K" # "1K", "2K" (default), or "4K"
--page 5 # Number of slides (0 for auto-detection, max 100)
--content-detail "concise" # "concise" (brief) or "standard" (detailed)
--language "Auto" # Language for content
Step 3: Handle Results
Returns same structure as create-like-this:
{
"slideUrl": "https://2slides.com/workspace?jobId=...",
"pdfUrl": "https://...pdf...",
"status": "completed",
"message": "Successfully generated N slides",
"slidePageCount": N
}
Notes:
Generate slides from document content.
Step 1: Read Document
Use appropriate tool to read the document content:
Step 2: Extract Key Points
Analyze the document and extract:
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:
# 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:
Add AI-generated voice narration to slides.
IMPORTANT: The slide generation job must be completed before adding narration.
Step 1: Choose Voice
30 voices available including:
List all voices:
python scripts/generate_narration.py --list-voices
Step 2: Generate Narration
Use the generate_narration.py script with the job ID:
# Basic narration with default voice
python scripts/generate_narration.py --job-id "abc-123-def-456"
# With specific voice
python scripts/generate_narration.py --job-id "abc-123-def-456" --voice "Aoede"
# Multi-speaker mode
python scripts/generate_narration.py --job-id "abc-123-def-456" --multi-speaker
# In specific language
python scripts/generate_narration.py \
--job-id "abc-123-def-456" \
--language "Spanish" \
--voice "Charon"
Parameters:
--job-id: Job ID from slide generation (required, must be UUID format for Nano Banana)--voice: Voice name (default: "Puck")--multi-speaker: Enable multi-speaker mode (default: off)--language: Language for narration (default: "Auto")Step 3: Check Status
Narration generation runs asynchronously:
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:
Download slides as PNG images and voice narrations as WAV files.
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:
# 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"
Step 3: Extract Contents
The ZIP archive contains:
Notes:
Find appropriate themes for presentations.
Search themes:
# Search for specific style (query is required)
python scripts/search_themes.py --query "business"
python scripts/search_themes.py --query "creative"
python scripts/search_themes.py --query "education"
python scripts/search_themes.py --query "professional"
# Get more results
python scripts/search_themes.py --query "modern" --limit 50
Theme selection:
If the 2slides MCP server is configured in Claude Desktop, use the integrated tools instead of scripts.
Two Configuration Modes:
"url": "https://2slides.com/api/mcp?apikey=YOUR_API_KEY""command": "npx", "args": ["2slides-mcp"]Available MCP tools:
slides_generate - Generate slides from contentslides_create_like_this - Generate from reference imagethemes_search - Search themesjobs_get - Check job statusSee mcp-integration.md for complete setup instructions and detailed tool documentation.
When to use MCP vs scripts:
Sync Mode (default):
Async Mode:
get_job_status.pyDifferent endpoints have different rate limits:
If rate limited, wait before retrying or check plan limits.
2slides uses a pay-as-you-go credit system with no subscriptions required.
Credit Packages: (Current promotion: up to 20% off)
New users receive 500 free credits for onboarding (~50 Fast PPT pages).
Credits never expire - use them at your own pace.
Purchase credits at: https://2slides.com/pricing
All download URLs (PDF, ZIP archives) are valid for 1 hour only. Download files promptly after generation.
Generate slides in multiple languages (use full language name):
--language "Auto" # Automatic detection (default)
--language "English" # English
--language "Simplified Chinese" # 简体中文
--language "Traditional Chinese" # 繁體中文
--language "Spanish" # Español
--language "French" # Français
--language "German" # Deutsch
--language "Japanese" # 日本語
--language "Korean" # 한국어
And more: Arabic, Portuguese, Indonesian, Russian, Hindi, Vietnamese, Turkish, Polish, Italian
Common error codes:
Error: API key not found
Solution: Set SLIDES_2SLIDES_API_KEY environment variable
Error: 429 Too Many Requests
Solution: Wait 20-30 seconds before retrying
Rate limits: Fast PPT (10/min), Nano Banana (6/min)
Error: Not enough credits
Solution: Add credits at https://2slides.com/api
Error: Job ID not found or invalid
Solution: Verify job ID format (must be UUID for Nano Banana)
Error: 400 Bad Request
Solution: Verify content format and parameters
See api-reference.md for:
See pricing.md for:
Content Structure:
Theme Selection:
Reference Images:
Document Processing:
Generated Mar 1, 2026
Marketing teams can quickly generate polished pitch decks from product descriptions or campaign outlines, using reference images to match brand guidelines. This saves hours of design work and ensures consistent visual identity across presentations.
Educators and trainers can convert lecture notes or textbook summaries into engaging slides with voice narration for online courses. The content-based generation supports multiple languages, making it ideal for global educational content.
Business analysts can upload lengthy documents like annual reports or research papers to automatically create concise presentation summaries. This helps in distilling key insights for stakeholder meetings without manual slide design.
Sales teams can generate custom-designed slides from proposal text, using reference images to align with client branding. The ability to add voice narration enhances remote sales pitches and follow-up materials.
Event organizers and speakers can create slides from speech scripts or agendas, matching styles from event logos or past materials. The fast generation mode allows for last-minute updates before conferences or workshops.
Users purchase credits to generate slides, with costs varying by mode (e.g., Fast PPT at 10 credits/page, Nano Banana at 100-200 credits/page). This model offers flexibility with no subscriptions, appealing to occasional users and small businesses.
New users receive 500 free credits (~50 Fast PPT pages) to try the service, encouraging adoption. This lowers the barrier to entry and can convert users to paid credit purchases for higher-volume or premium features like voice narration.
Marketing or design agencies integrate the API into their workflows to automate presentation creation for clients. They can charge clients for custom slides while managing costs through bulk credit purchases at discounted rates.
💬 Integration Tip
Store the API key securely in environment variables and use the provided scripts to streamline generation workflows, starting with the decision tree to choose the right mode.
Edit PDFs with natural-language instructions using the nano-pdf CLI.
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.
用 MinerU API 解析 PDF/Word/PPT/图片为 Markdown,支持公式、表格、OCR。适用于论文解析、文档提取。
Generate hand-drawn style diagrams, flowcharts, and architecture diagrams as PNG images from Excalidraw JSON
The awesome PPT format generation tool provided by baidu.