Learning Generator API
Generate SCORM-compliant eLearning courses programmatically. One API call, one credit, one complete course.
AI-generated SCORM courses in minutes
Send a course title and learning objectives. Receive a fully packaged, SCORM-compliant eLearning course ready to deploy to any LMS.
Built for platforms that need eLearning at scale
LMS Providers
Add AI course generation as a feature of your LMS platform. Let your users create courses without leaving your product.
HR & Training Platforms
Generate compliance, onboarding, and skills training courses on demand for your enterprise clients.
Content Agencies
Produce eLearning at volume for clients. Reduce production time from weeks to minutes per course.
EdTech Startups
Build eLearning generation into your product from day one without developing your own authoring engine.
One credit, one course
No complexity. Every API call to generate a course uses exactly one credit, regardless of course length or features enabled.
Need high-volume pricing? Contact us for enterprise rates.
Three steps to a finished course
Get your API token
Purchase credits and receive your Bearer token. One token authenticates all your API requests.
Send a generation request
POST your course title and learning objectives. Optionally configure course length, quizzes, narration, and content style.
Download the SCORM package
Poll the progress endpoint until generation completes, then download the ready-to-deploy SCORM ZIP file.
Documentation
Everything you need to integrate the Learning Generator into your platform.
Authentication
All API requests require a Bearer token in the Authorization header.
// Include this header with every request Authorization: Bearer your-api-token
Create a Course
Generate a new SCORM course. Uses 1 credit per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
| courseTitle required | string | The title of the course to generate |
| learningObjectives required | string | What learners should know or be able to do after completing the course |
| courseLength optional | string | Course length: Short, Medium, or Long. Default: Medium |
| contentStyle optional | string | Writing style: professional, casual, academic. Default: professional |
| quizEnabled optional | boolean | Include auto-generated quiz questions. Default: true |
| narrationEnabled optional | boolean | Generate AI voiceover narration. Default: false |
| maxScreens optional | integer | Maximum number of screens. Default determined by courseLength |
Example Request
curl -X POST https://library.openelms.com/api/ai-scorm/create \ -H "Authorization: Bearer your-api-token" \ -H "Content-Type: application/json" \ -d '{ "courseTitle": "Fire Safety in the Workplace", "learningObjectives": "Understand fire hazards, know evacuation procedures, use fire extinguishers correctly", "courseLength": "Medium", "quizEnabled": true }'
Response
{
"success": true,
"requestId": "req_abc123def456",
"draftId": "draft_789xyz",
"message": "Course generation started",
"creditsRemaining": 9
}
Check Progress
Poll this endpoint to check the generation status. No credits consumed.
Example Response
{
"requestId": "req_abc123def456",
"status": "completed",
"progress": 100,
"message": "Course ready for download",
"downloadUrl": "https://library.openelms.com/api/items/download/12345"
}
Status Values
| Status | Description |
|---|---|
| queued | Request received, waiting to begin generation |
| generating | AI is generating course content, images, and media |
| packaging | Building the SCORM package |
| completed | Course ready to download via the downloadUrl |
| failed | Generation failed. Check the error message for details |
Rate Limits & Notes
- Maximum 10 concurrent generation requests per API token
- Each generation request consumes exactly 1 credit
- Credits never expire
- Generation typically completes in 2–5 minutes
- Poll the progress endpoint every 10–15 seconds (not faster)
- Download URLs remain valid for 30 days