A complete lesson from one API call.
Send a topic, a grade, and your standards. lesson.services writes the article, has it reviewed, illustrates it, builds the activities and answer keys, translates it, and returns print-ready PDFs.
- Per lesson
- About 20 pages
- Languages
- EN, ES, FR, PT-BR
- Editions
- Student and teacher
curl https://api.lesson.services/v1/lessons \ -H "Authorization: Bearer $LS_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Weathering and Erosion", "subject": "earth_science", "grade": 6, "standards": ["NGSS:MS-ESS2-2"], "activities": ["guided_notes", "data_analysis", "case_study"], "languages": ["en", "es", "pt-BR"], "approval": "required" }'
import os, requests job = requests.post( "https://api.lesson.services/v1/lessons", headers={"Authorization": f"Bearer {os.environ['LS_KEY']}"}, json={ "title": "Weathering and Erosion", "subject": "earth_science", "grade": 6, "standards": ["NGSS:MS-ESS2-2"], "activities": ["guided_notes", "data_analysis", "case_study"], "languages": ["en", "es", "pt-BR"], "approval": "required", }, ).json() print(job["id"], job["status"]) # les_7Qm2kV9x queued
- Draft Claude
- Validate checks
- Review ChatGPT
- Revise Claude
- Activities Claude
- Images ChatGPT
- Puzzles checks
- Approval you
- Translate Claude
- PDF DocRaptor
The same process 3andB uses to make its books
Every job runs the steps below in order. Each step is logged, so you can see what happened, what it cost, and rerun any single part.
Draft
Writes the objective, key concepts, article, vocabulary, and image plans from your standards.
ClaudeValidate
Code checks reading level, lengths, counts, banned words, and standards codes, and sends fixes back.
Automated checksReview
A second model reviews accuracy, standards coverage, grade fit, and voice, with exact fixes.
ChatGPTRevise
Applies the review and logs every fix, plus any it declined and why.
ClaudeActivities
Builds the activities you chose, each with an answer key.
ClaudeImages
Generates three illustrations and checks each one, retrying up to three times.
ChatGPT imagesPuzzles
Builds a crossword and word search from the lesson's vocabulary.
AutomatedApproval
Optional. The job pauses until someone on your team approves it.
Your teamTranslate
Translates the approved lesson, rewriting clues and blanks so every activity still works.
ClaudePDF
Typesets student and teacher editions in each language from your template.
DocRaptor
What you get back
Structured JSON for every part of the lesson, plus finished PDFs. Use the PDFs as they are, or put the JSON into your own layout.
- Article
- About 900 words at grade level, with a real-world case and 10 defined terms.
- Images
- Three text-free illustrations with captions, shared across languages.
- Activities
- Guided notes, reflection, hypotheticals, data analysis, case study, self-assessment, and lecture notes.
- Answer keys
- Sample answers and what to look for, in a separate teacher edition.
- Puzzles
- Crossword and word search with solutions.
- Files
- Signed links to each PDF by language and edition.
{
"id": "les_7Qm2kV9x",
"status": "completed",
"title": "Weathering and Erosion",
"standards": ["NGSS:MS-ESS2-2"],
"stages": {
"review": { "issues": 7, "fixed": 7 },
"images": { "attempts": [1, 2, 1] }
},
"cost_usd": 0.68,
"files": {
"en": { "student": "https://…/en/student.pdf",
"teacher": "https://…/en/teacher.pdf" },
"es": { … },
"pt-BR": { … }
}
}
A small API on purpose
Seven endpoints cover the whole lifecycle. Authenticate with a bearer key on every request.
/v1/lessonsStart a lesson job/v1/lessons/{id}Job status by stage, with cost so far/v1/lessons/{id}/approveApprove a lesson waiting for review/v1/lessons/{id}/regenerateRerun one part: an image, an activity, or the article/v1/lessons/{id}/filesSigned PDF links by language and edition/v1/standards?q=Search standards by code or keyword/v1/webhooksGet notified when a lesson finishes, fails, or needs approvalBuilt for production
Webhooks for every step
Subscribe to lesson.awaiting_approval, lesson.completed, and lesson.failed instead of polling.
Human approval when you want it
Set "approval": "required" and nothing is translated or typeset until your team signs off.
Cost on every job
Each job reports what it cost, stage by stage, so you can price your products with real numbers.
Rerun one part
Replace a weak image or one activity without paying to regenerate the whole lesson.
Safe retries
Send an Idempotency-Key header and a retried request never starts a second job.
Your templates
Upload your own PDF templates, or use ours and take the JSON into your own design.
Four languages from the same lesson
Translation runs after approval, so every language matches the version your team signed off on.
enEnglishUS EnglishesEspañolLatin American SpanishfrFrançaisInternational Frenchpt-BRPortuguêsBrazilian PortugueseThe engine behind ClassFabric
Every lesson in the ClassFabric store is made with lesson.services, then read and approved by a 3andB educator before it goes on sale.
Start building with lesson.services
Tell us what you're making and how many lessons you expect to generate. We'll send a key and per-lesson pricing.