网淘吧来吧,欢迎您!

Prezentit技能使用说明

2026-03-28 新闻来源:网淘吧 围观:15
电脑广告
手机广告
---
name: prezentit
description: Generate beautiful AI-powered presentations instantly. Create professional slides with custom themes, visual designs, and speaker notes—all through natural language commands.
homepage: https://prezentit.net
emoji: "👽"
metadata:
  clawdbot:
    emoji: "👽"
    skillKey: prezentit
    homepage: https://prezentit.net
    requires:
      config:
        - PREZENTIT_API_KEY
    config:
      requiredEnv:
        - name: PREZENTIT_API_KEY
          description: Your Prezentit API key (starts with pk_). Get one free at https://prezentit.net/api-keys
      example: |
        export PREZENTIT_API_KEY=pk_your_api_key_here
    permissions:
      network:
        - https://prezentit.net/api/v1/*
      fileSystem: none
      env:
        reads:
          - PREZENTIT_API_KEY
        writes: none
---

# Prezentit - AI Presentation Generator

**Base URL**: `https://prezentit.net/api/v1`
**Auth Header**: `Authorization: Bearer {PREZENTIT_API_KEY}`

> **This skill requires a `PREZENTIT_API_KEY` environment variable.** Get a free API key at https://prezentit.net/api-keys — new accounts include 100 free credits.

## ⚠️ CRITICAL FOR AI AGENTS

**ALWAYS use `"stream": false`** in generation requests! Without this, you get streaming responses that cause issues.

---

## Complete Workflow (FOLLOW THIS ORDER)

### Step 1: Check Credits First

```http
GET /api/v1/me/credits
Authorization: Bearer {PREZENTIT_API_KEY}

→ 如果

{
  "credits": 100,
  "pricing": {
    "outlinePerSlide": 5,
    "designPerSlide": 10,
    "estimatedCostPerSlide": 15
  },
  "_ai": {
    "canGenerate": true,
    "maxSlidesAffordable": 6,
    "nextSteps": ["..."]
  }
}

_ai.canGenerate为假,引导用户至https://prezentit.net/buy-credits→ 使用_ai.maxSlidesAffordable以了解限制步骤 2:选择主题

选项 A — 浏览所有可用主题并按 ID 选择:

响应:

GET /api/v1/themes
Authorization: Bearer {PREZENTIT_API_KEY}

→ 在您的生成请求中使用确切的

{
  "themes": [
    { "id": "corporate_blue", "name": "Corporate Blue", "category": "Corporate & Professional" },
    { "id": "nature_earth", "name": "Nature Earth", "category": "Nature & Organic" }
  ],
  "categories": ["Corporate & Professional", "Creative & Visual", "Data & Analytics", ...],
  "_ai": {
    "totalThemes": 20,
    "popularThemes": ["corporate_blue", "midnight_tech", "nature_earth", "storyteller", "data_dashboard"]
  }
}

id选项 B — 通过关键词搜索主题:

→ 返回按相关性排名的最佳匹配。使用来自

GET /api/v1/themes?search=minimalist
Authorization: Bearer {PREZENTIT_API_KEY}

bestMatchid选项 C — 描述自定义样式(无需主题ID):

使用

customDesignPromptcustomDesignPrompt请改用参数。详情请参阅下方的自定义设计提示部分。

步骤 3:生成演示文稿

POST /api/v1/presentations/generate
Authorization: Bearer {PREZENTIT_API_KEY}
Content-Type: application/json

{
  "topic": "User's topic here",
  "slideCount": 5,
  "theme": "corporate_blue",
  "stream": false
}

⏱️ 重要提示:生成过程需要 1-3 分钟。完成后 API 将返回结果。

完整请求参数:

参数类型必需说明
topic字符串是*演示文稿主题(2-500 个字符)。如果未提供outline则必需。prompt也可作为别名使用。
outline对象预构建的提纲(可节省约 33% 的积分)。请参阅下方的提纲部分。
slideCount数字幻灯片数量(3-50,默认值:5)。若提供大纲则忽略此项。
主题字符串主题ID取自GET /api/v1/themes。请使用准确的id值。
自定义设计提示字符串自定义视觉风格描述(见下文)。将覆盖主题ID。
详情字符串关于演示文稿内容的附加背景信息。
确认部分生成布尔值设置为true以在点数有限时确认部分生成。
流式传输布尔值始终为 falseAI 代理必须始终设置stream: false

*主题是必需的,即使在提供大纲时也是如此(用于演示文稿元数据)。

步骤 4:获取结果

成功响应:

{
  "presentationId": "uuid-here",
  "viewUrl": "https://prezentit.net/view/abc123",
  "creditsUsed": 75,
  "remainingCredits": 25
}

→ 与用户分享viewUrl。这就是他们的演示文稿!

步骤 5:下载(可选)

GET /api/v1/presentations/{presentationId}/download?format=pptx
Authorization: Bearer {PREZENTIT_API_KEY}

格式: pptx(PowerPoint)、pdfjson(原始数据)


定价

场景每页幻灯片成本示例(5 页幻灯片)
自动生成大纲15 积分75 积分
提供你自己的大纲10 积分50 积分(约节省33%!)

主题选择

如何选择主题

  1. 获取主题列表GET /api/v1/themes— 返回所有可用主题,包含idnamecategory
  2. 根据用户主题和风格偏好选择最匹配项
  3. 传递id在生成请求中作为主题参数

您也可以搜索:GET /api/v1/themes?search=关键词或按类别筛选:GET /api/v1/themes?category=类别名称

自定义设计提示(跳过主题列表)

如果现有主题都不合适,请使用customDesignPrompt来描述一个完全自定义的视觉风格。这必须是一个详细、结构化的描述——而不仅仅是一个调色板。

customDesignPrompt 的必需结构(包含以下所有部分):

COLOR SYSTEM: Primary [hex], secondary [hex], accent [hex], background [hex/gradient], text colors for headings and body.

TYPOGRAPHY: Heading font style [e.g., bold geometric sans-serif like Montserrat], body font style [e.g., clean humanist sans-serif like Open Sans], size hierarchy [large/medium/small], weight contrast.

LAYOUT SYSTEM: Slide structure [e.g., asymmetric split with 60/40 content-to-visual ratio], alignment [left-aligned text with right visual panel], spacing philosophy [generous whitespace vs. dense information], grid approach.

VISUAL ELEMENTS: Background treatment [solid/gradient/textured/patterned], decorative motifs [geometric shapes, organic curves, line art, etc.], image style [photography with overlay, illustrations, icons, data visualizations], border/frame treatments.

MOOD & TONE: Overall aesthetic [e.g., corporate authority, playful creativity, academic rigor, tech-forward], energy level [calm/dynamic/bold], intended audience impression.

示例 —— 好的 customDesignPrompt:

{
  "topic": "AI in Healthcare",
  "customDesignPrompt": "COLOR SYSTEM: Primary deep medical blue (#1B3A5C), secondary teal (#2A9D8F), accent warm coral (#E76F51) for callouts, backgrounds alternate between clean white (#FAFAFA) and very subtle blue-gray (#F0F4F8), heading text dark navy, body text #333333. TYPOGRAPHY: Headings in bold geometric sans-serif (Montserrat style), body in clean humanist sans (Source Sans style), strong size hierarchy with 48pt titles, 24pt subtitles, 16pt body. LAYOUT SYSTEM: Asymmetric layouts with 60/40 content-to-visual split, left-aligned text blocks with right-side data visualizations or medical imagery, generous padding (60px margins), clean grid structure. VISUAL ELEMENTS: Subtle DNA helix watermark in corners at 5% opacity, thin teal accent lines as section dividers, medical iconography (stethoscope, heartbeat, molecular structures) as small decorative elements, photography with blue-tinted overlay for full-bleed backgrounds. MOOD & TONE: Professional medical authority balanced with approachable warmth, calm and trustworthy, designed for hospital executives and medical professionals.",
  "stream": false
}

示例 —— 不好的 customDesignPrompt(过于模糊,将产生通用结果):

"blue and white medical theme"

创建大纲(节省约 33% 的积分)

提供您自己的大纲可以节省积分,并让您完全掌控内容。

大纲结构

大纲是一个包含幻灯片数组的对象。每个幻灯片包含以下字段:

{
  "topic": "Your Presentation Topic",
  "outline": {
    "slides": [
      {
        "title": "Slide Title Here",
        "mainIdea": "A clear sentence explaining the core message of this slide and what the audience should take away from it.",
        "talkingPoints": [
          "First key point with enough detail to be meaningful (at least 10 characters)",
          "Second key point expanding on the main idea",
          "Third key point providing supporting evidence or examples"
        ],
        "visualGuide": "Detailed description of the visual layout: background style, image placement, icon suggestions, chart types, color emphasis areas, and decorative elements for this specific slide."
      }
    ]
  },
  "stream": false
}

幻灯片字段参考

字段是否必需约束条件描述
标题3-100个字符,1-15个单词幻灯片标题
核心观点10-500个字符,3-75个单词幻灯片的核心信息
演讲要点2-7个项目,每个项目10-300个字符(3-50个单词)需要涵盖的关键点
视觉指导20-500个字符,5-75个单词该幻灯片的视觉设计说明

验证规则

总体要求:

  • 最少3张幻灯片,最多50张幻灯片
  • 主题仍需提供(用于演示文稿元数据)
  • 所有四个字段(标题核心思想演讲要点视觉引导)每张幻灯片都必须填写

如果验证失败,API会返回详细的错误信息及修复建议。

完整示例

{
  "topic": "Introduction to Machine Learning",
  "outline": {
    "slides": [
      {
        "title": "Introduction to Machine Learning",
        "mainIdea": "Machine learning is transforming how businesses operate by enabling systems to learn from data and improve automatically without explicit programming.",
        "talkingPoints": [
          "Machine learning is a subset of artificial intelligence focused on pattern recognition",
          "ML systems improve through experience rather than manual rule-writing",
          "Global ML market projected to reach $209 billion by 2029"
        ],
        "visualGuide": "Bold title slide with futuristic tech aesthetic. Dark gradient background transitioning from deep navy to midnight blue. Large bold title text centered with a subtle neural network node pattern behind it. Accent glow in electric blue."
      },
      {
        "title": "How Machine Learning Works",
        "mainIdea": "Machine learning algorithms are categorized into supervised, unsupervised, and reinforcement learning based on how they learn from data.",
        "talkingPoints": [
          "Supervised learning uses labeled data for classification and regression tasks",
          "Unsupervised learning discovers hidden patterns in unlabeled data through clustering",
          "Reinforcement learning optimizes decisions through trial, error, and reward signals"
        ],
        "visualGuide": "Three distinct visual sections showing each ML type with representative icons: labeled data pairs for supervised, clustered groups for unsupervised, and a game-like reward loop for reinforcement. Use consistent color coding with blue, green, and purple."
      },
      {
        "title": "Business Applications",
        "mainIdea": "Companies across industries are leveraging machine learning for competitive advantage in customer experience, operations, and decision-making.",
        "talkingPoints": [
          "Customer churn prediction reduces revenue loss by identifying at-risk accounts early",
          "Fraud detection systems process millions of transactions in real-time",
          "Personalized recommendation engines drive significant increases in engagement and sales"
        ],
        "visualGuide": "Clean content layout with left-aligned text and right-side icons or mini-charts for each application. Use a white background with subtle grid lines. Each talking point gets a small illustrative icon (shield for fraud, chart for prediction, user icon for personalization)."
      },
      {
        "title": "Getting Started with ML",
        "mainIdea": "Successful ML adoption requires starting with clear use cases, quality data, and the right team rather than jumping straight to complex algorithms.",
        "talkingPoints": [
          "Identify high-impact use cases where prediction or automation adds clear value",
          "Invest in clean, well-structured data before selecting algorithms",
          "Build or partner with ML expertise and start with proven frameworks"
        ],
        "visualGuide": "Conclusion slide with a numbered roadmap or step layout. Three large numbered circles (1, 2, 3) each containing a step. Background with subtle upward-pointing arrows suggesting progress. Call-to-action feel with bold accent color on the final step."
      }
    ]
  },
  "theme": "midnight_tech",
  "stream": false
}

通过编程方式获取架构

GET /api/v1/docs/outline-format
Authorization: Bearer {PREZENTIT_API_KEY}

返回包含所有约束条件和示例幻灯片的完整JSON架构。


错误处理

错误响应格式

{
  "error": "Human readable message",
  "code": "ERROR_CODE",
  "fix": "Guidance on how to resolve this"
}

常见错误与解决方案

HTTP状态码错误代码错误信息解决方案
400MISSING_TOPIC主题或提示为必填项请提供主题提示字段
400INVALID_OUTLINE大纲验证失败检查大纲结构 — 响应包含详细的验证错误以及每个字段的修复建议
400INVALID_SLIDE_COUNT幻灯片数量必须在3到50之间请调整幻灯片数量介于3到50之间
401未经授权API密钥无效或缺失检查Authorization: Bearer pk_...请求头
402余额不足信用额度不足响应包含所需,可用, 和购买链接
404演示文稿未找到演示文稿不存在验证演示文稿ID
409重复请求冷却期内相同请求请等待后重试 — 不要重复发送相同请求
409生成中已在生成检查状态请访问GET /api/v1/me/generation/status或取消请访问POST /api/v1/me/generation/cancel
429请求频率受限请求过多请等待重试等待时间秒后重试
500生成失败内部错误请重试一次,然后联系技术支持
503服务不可用系统负载过高请在重试等待时间秒后重试

处理积分不足

{
  "error": "Insufficient credits",
  "code": "INSUFFICIENT_CREDITS",
  "required": 75,
  "available": 50,
  "purchaseUrl": "https://prezentit.net/buy-credits"
}

AI代理响应:"你需要75个积分,但只有50个。请在以下链接购买更多积分:https://prezentit.net/buy-credits"

处理部分生成

如果用户有积分但不足以完成全部生成,API会返回一个confirmation_required响应及选项。请读取_ai.options数组并将其展示给用户。要继续进行部分生成,需重新发送请求并附带"confirmPartial": true

处理速率限制

{
  "error": "Too many requests",
  "code": "RATE_LIMITED",
  "retryAfter": 30
}

AI代理操作:等待retryAfter秒后重试。


附加端点

检查生成状态

GET /api/v1/me/generation/status
Authorization: Bearer {PREZENTIT_API_KEY}

如果生成任务正在进行中,返回当前进度:阶段、百分比、已完成的设计数量。

取消活跃生成

POST /api/v1/me/generation/cancel
Authorization: Bearer {PREZENTIT_API_KEY}

取消当前正在进行的生成任务。

获取演示文稿详情

GET /api/v1/presentations/{presentationId}
Authorization: Bearer {PREZENTIT_API_KEY}

列出用户的演示文稿

GET /api/v1/me/presentations
Authorization: Bearer {PREZENTIT_API_KEY}

可选参数:?limit=20&offset=0

列出所有主题

GET /api/v1/themes
Authorization: Bearer {PREZENTIT_API_KEY}

可选查询参数:

  • ?search=关键词— 按名称筛选
  • ?category=企业— 按类别筛选

反垃圾规则

规则限制后果
重复检测约30秒相同请求返回409错误
速率限制因密钥而异429错误,附带retryAfter
一次仅允许一个生成任务1个并发409生成进行中错误

最佳实践:始终检查retryAfter在错误响应中,并等待相应时长。


快速复制粘贴示例

最小化生成

POST /api/v1/presentations/generate

{
  "topic": "Introduction to Climate Change",
  "stream": false
}

使用主题(先获取ID)

1. GET /api/v1/themes → find the theme ID
2. POST /api/v1/presentations/generate
{
  "topic": "Q4 Sales Report",
  "slideCount": 8,
  "theme": "corporate_blue",
  "stream": false
}

使用自定义设计提示

{
  "topic": "Startup Pitch Deck",
  "slideCount": 10,
  "customDesignPrompt": "COLOR SYSTEM: Primary electric indigo (#4F46E5), secondary cyan (#06B6D4), accent hot pink (#EC4899), background dark charcoal (#111827) with subtle radial gradient to #1F2937, heading text white, body text #D1D5DB. TYPOGRAPHY: Headings in extra-bold wide-tracking sans-serif (Inter/Poppins style), body in medium-weight clean sans, dramatic size contrast with 56pt titles and 18pt body. LAYOUT SYSTEM: Full-bleed dark slides with asymmetric content placement, bold left-aligned headlines with supporting text below, large visual areas for mockups and charts, 80px margins. VISUAL ELEMENTS: Subtle dot grid pattern at 3% opacity on backgrounds, neon-glow accent lines, rounded corners on all containers, glassmorphism cards with frosted backgrounds for data callouts, gradient mesh blobs as decorative elements. MOOD & TONE: Bold tech-startup energy, confident and forward-looking, designed to impress venture capital investors.",
  "stream": false
}

使用大纲(约节省33%)

{
  "topic": "Weekly Team Sync",
  "outline": {
    "slides": [
      {
        "title": "Weekly Team Sync",
        "mainIdea": "Kickoff slide for the January 15, 2024 weekly team synchronization meeting covering accomplishments and upcoming goals.",
        "talkingPoints": [
          "Welcome the team and set the agenda for today's sync",
          "Cover last week's wins and this week's priorities"
        ],
        "visualGuide": "Clean title slide with company colors. Bold centered title, date as subtitle below. Simple professional background with subtle geometric pattern."
      },
      {
        "title": "Last Week's Accomplishments",
        "mainIdea": "The team delivered significant progress across feature development, bug resolution, and performance optimization last week.",
        "talkingPoints": [
          "Feature X completed and merged into the main branch ahead of schedule",
          "Resolved three critical production bugs affecting checkout flow",
          "Database query optimization improved page load times by twenty percent"
        ],
        "visualGuide": "Content slide with checkmark icons next to each accomplishment. Green accent color for completed items. Left-aligned text with small celebration graphic in the corner."
      },
      {
        "title": "This Week's Goals",
        "mainIdea": "This week focuses on the beta launch, initial user testing, and completing documentation before the public release.",
        "talkingPoints": [
          "Launch beta version to internal testers by Wednesday",
          "Conduct user testing sessions with five pilot customers",
          "Complete API documentation and developer onboarding guide"
        ],
        "visualGuide": "Forward-looking slide with numbered steps or timeline visual. Blue accent color for upcoming items. Arrow or roadmap graphic showing progression from current state to launch."
      },
      {
        "title": "Open Discussion",
        "mainIdea": "Time for team questions, blockers, and any items not covered in the structured agenda.",
        "talkingPoints": [
          "Open floor for questions and discussion of blockers",
          "Next sync meeting scheduled for Monday at ten AM"
        ],
        "visualGuide": "Simple closing slide with question mark icon or discussion bubble graphic. Calm colors, minimal text, large font for the key info. Meeting time prominently displayed."
      }
    ]
  },
  "theme": "corporate_blue",
  "stream": false
}

获取帮助

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第331302名访客 今日有577篇新文章/评论