Future Textbook API
收藏Future Textbook API 数据集概述
基本信息
- API名称: Future Textbook API
- 提供商: Studymeter
- 类别: Education
- 访问地址: https://future-textbook-api.p.rapidapi.com/api/contents
- 请求方法: POST
- 当前版本: v1
- 服务等级: 93%
- 平均延迟: 4242ms
- 订阅模式: Freemium
定价计划
- BASIC: $0.00 / 月
- PRO: $10.00 / 月
功能描述
此API根据给定的标题和写作风格生成教科书内容。它以多张幻灯片的形式生成内容,并自动使用网络搜索收集参考资料。生成的内容针对带有旁白和图像的视频演示进行了优化。
请求规范
请求头
| 项 | 值 |
|---|---|
| Content-Type | "application/json" |
| x-rapidapi-host | "future-textbook-api.p.rapidapi.com" |
| x-rapidapi-key | 您的API密钥 |
请求体参数
| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
| style | String | ○ | 教科书风格 ("1": 面向儿童/初学者, "2": 从基础详细说明, "3": 专业, "4": 词汇表, "5": 测验) |
| prompt | String | ○ | 教科书的页面标题 |
| addInfo | String | 先前创建的页面内容或附加信息 | |
| slideCount | Number | 幻灯片数量 (默认: 4) |
请求示例
json { "style": "1", "prompt": "The Rise of Machine Learning", "addInfo": "Have you ever heard of AI (Artificial Intelligence)? AI refers to computers that can think and learn like humans. The history of AI goes back more than 70 years.
In the 1950s, British researcher Alan Turing asked, Can computers think like humans? He introduced the Turing Test, a method to determine if a machine can think like a person.
In 1956, at the Dartmouth Conference in the United States, the term Artificial Intelligence (AI) was first used, and many researchers began studying AI. During this era, several pioneering inventions were made, such as programs that could play chess and solve mazes.
This is how AI gradually progressed over time.", "slideCount": 4 }
响应规范
响应结构
| 字段 | 类型 | 描述 |
|---|---|---|
| slides | Array | 幻灯片列表 |
| slides.templateId | String | 幻灯片模板ID ("title" 或 "textImage") |
| slides.title | String | 幻灯片标题 |
| slides.description | String | 幻灯片正文 (约100-150字符) |
| slides.narration | String | 语音旁白文本 (约100-150字符) |
| slides.image | String | 幻灯片中使用图像的URL |
| slides.durationSec | Number | 幻灯片显示时长 (秒) |
| references | Array | 参考资料列表 |
| references.title | String | 参考资料标题 |
| references.url | String | 参考资料URL |
响应示例
json { "slides": [ { "templateId": "title", "title": "Why Machine Learning Became Popular", "description": "Have you heard the term machine learning recently? In this video, well learn how machine learning helps us in our daily lives.", "narration": "Hello everyone! Today, were going to learn about why machine learning became so popular. Machine learning is like magic technology that allows computers to learn by themselves.", "image": "https://example.com/images/machine-learning-intro.jpg", "durationSec": 10 }, { "templateId": "textImage", "title": "The Power of Data and Computers", "description": "Since the 2010s, weve been able to use vast amounts of data and powerful computers. Thanks to this, machine learning became more accessible, and many companies and researchers started using this technology.", "narration": "There are two main reasons why machine learning became popular. First, the internet made it possible to collect massive amounts of data. Second, computers became much more powerful in their calculations.", "image": "https://example.com/images/data-computers.jpg", "durationSec": 15 }, { "templateId": "textImage", "title": "Machine Learning in Our Daily Lives", "description": "Machine learning is active all around you: recommending videos and books on the internet, enhancing photos on smartphones, and AI understanding human speech.", "narration": "Actually, you use machine learning every day! YouTube recommendations, smartphone camera features, voice assistants - machine learning is used in all of these places.", "image": "https://example.com/images/ai-daily-life.jpg", "durationSec": 15 }, { "templateId": "textImage", "title": "Summary", "description": "Machine learning became popular thanks to vast amounts of data and powerful computers. As our lives become more convenient, machine learning is becoming increasingly important.", "narration": "Lets summarize what we learned today. Machine learning is a wonderful technology that makes our lives more convenient through the evolution of data and computers. Machine learning will continue to evolve in the future.", "image": "https://example.com/images/future-ai.jpg", "durationSec": 10 } ], "references": [ { "title": "The 6 Big Predictions for AI/Machine Learning in 2023 - @IT", "url": "https://atmarkit.itmedia.co.jp/ait/articles/2212/28/news018.html" }, { "title": "Predicting Online News Popularity Based on Machine Learning - J-GLOBAL", "url": "https://jglobal.jst.go.jp/public/202202259893166258" }, { "title": "The Quiet Spread of Machine Learning Misuse is Creating a Reproducibility Crisis in Science - WIRED", "url": "https://wired.jp/article/machine-learning-reproducibility-crisis/" } ] }
风格选项
| 风格值 | 描述 | 输出格式 |
|---|---|---|
| "1" | 面向儿童和初学者 | 使用简单语言解释基本概念 |
| "2" | 从基础详细说明 | 为希望深入学习的学员提供详细解释 |
| "3" | 专业 | 系统地解释专业内容 |
| "4" | 词汇表 | 以词汇表形式用项目符号解释术语 |
| "5" | 测验 | 以问题集形式呈现测验 |
幻灯片结构
幻灯片结构根据 slideCount 参数中指定的数量生成,如下所示:
- 幻灯片1: 标题幻灯片 (
templateId: "title") - 幻灯片2~(n-1): 内容幻灯片 (
templateId: "textImage") - 幻灯片n: 摘要幻灯片 (
templateId: "textImage") 默认生成4张幻灯片。
注意事项
- 每个幻灯片的
narration字段包含针对视频旁白优化的文本 image字段会自动填充适合幻灯片内容的图像URLreferences包含通过网络搜索收集的可靠来源- 使用
addInfo参数可以生成连续的页面



