{"code": 200, "message": "Questions generated successfully.", "response": [{"topic": "Python", "category_type": 5, "question": ["Ques : What is one of the most important aspects of programming?"], "options": [" How to build a proper program"], "help_text": "How to build a proper program."}, {"topic": "Python", "category_type": 1, "question": ["Ques : What is one of the most important aspects of programming?"], "options": [" How To Build A Proper Program *", " How To Design A Program", " What Tools To Use", " What Language To Use"], "help_text": "How to build a proper program."}, {"topic": "Python", "category_type": 2, "question": ["Ques : What is one of the most important aspects of programming?", " I. What Language To Use", " II. What Tools To Use", " III. How To Build A Proper Program ", " IV. How To Design A Program", "Which of the options given above is/are correct:"], "options": [" II and I only.", " III only.*", " III, II and I only.", " IV only."], "help_text": "How to build a proper program."}, {"topic": "Python", "category_type": 2, "question": ["Ques : What is not one of the most important aspects of programming?", " I. How To Build A Proper Program ", " II. What Tools To Use", " III. How To Design A Program", " IV. What Language To Use", "Which of the options given above is/are correct:"], "options": [" I only.", " I, III and II only.", " III, II and IV only.*", " All the above."], "help_text": "How to build a proper program."}, {"topic": "Python", "category_type": 6, "question": ["Ques : _________ is one of the most important aspects of programming."], "options": [" How To Design A Program", " What Language To Use", " How To Build A Proper Program *", " What Tools To Use"], "help_text": "How to build a proper program."}, {"topic": "Python", "category_type": 4, "question": ["Ques : How to build a proper program is one of the most important aspects of programming."], "options": [" True*", " False"], "help_text": "How to build a proper program."}, {"topic": "Python", "category_type": 4, "question": ["Ques : Read the following statements carefully:", " Statement I: What tools to use is one of the most important aspects of programming.", " Statement II: How to build a proper program is one of the most important aspects of programming.", " Which of the following option is correct:"], "options": [" Both Statements are False.", " Statement I is True & Statement II is False.", " Statemet II is True.*", " Both Statements are True."], "help_text": "How to build a proper program."}], "success": true}
curl --location --request POST 'https://zylalabs.com/api/743/questions+generator+for+exams+api/456/question+generator?topic=US Declaration of Independence&content=The US Declaration of Independence was held in Philadelphia on July 4, 1776.' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 考试问题生成器 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
关于API:
这个API提供不同的问题模型用于教育目的。能够根据您传递给它的文本动态生成问题。
这个API将接收一个主题和描述文本,并从中提取问题形式。为了更好的输出,我们建议将问题分成短主题。
API将为您提供多个问题选项供您选择。
这个API非常适合希望即时向用户提出问题的教育门户。这非常适合根据提供的文本轻松制作选择题。
能够使用这个API创建优秀的考试门户。
除了每月的API调用限制外,没有其他限制。
API根据提供的文本返回JSON格式的问题和答案对 包括按难度级别分类的选择题 填空题 是非题和描述性问题
响应中的关键字段包括“code”(请求的状态)“message”(结果的描述)“response”(生成的问题)和“success”(指示请求是否成功)
用户可以通过提供特定主题和详细描述文本来自定义请求。为了获得最佳效果,建议将文本分解为更短、更集中的部分
响应数据被结构化为一个JSON对象 包括状态码 消息和响应字段 其中包含生成的问题 使用户能够轻松解析和利用数据
典型的用例包括为教育平台生成测验 创建练习考试 和开发根据用户输入调整问题的互动学习工具
该API利用先进的算法根据输入文本生成问题,确保相关性和准确性。持续的更新和改进问题生成模型有助于保持高质量
用户可以期待基于输入文本的各种问题类型,难度等级从简单到困难。输出将根据提供的描述的复杂性和长度而有所不同
如果输入文本过短或缺乏足够的细节,API 可能会返回一条错误消息,指出问题所在。用户应确保输入内容全面,以获得有意义的问题输出