lesson.services

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
POST /v1/lessons
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"
  }'
job les_7Qm2kV9xrunning
  1. Draft Claude
  2. Validate checks
  3. Review ChatGPT
  4. Revise Claude
  5. Activities Claude
  6. Images ChatGPT
  7. Puzzles checks
  8. Approval you
  9. Translate Claude
  10. 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.

  1. Draft

    Writes the objective, key concepts, article, vocabulary, and image plans from your standards.

    Claude
  2. Validate

    Code checks reading level, lengths, counts, banned words, and standards codes, and sends fixes back.

    Automated checks
  3. Review

    A second model reviews accuracy, standards coverage, grade fit, and voice, with exact fixes.

    ChatGPT
  4. Revise

    Applies the review and logs every fix, plus any it declined and why.

    Claude
  5. Activities

    Builds the activities you chose, each with an answer key.

    Claude
  6. Images

    Generates three illustrations and checks each one, retrying up to three times.

    ChatGPT images
  7. Puzzles

    Builds a crossword and word search from the lesson's vocabulary.

    Automated
  8. Approval

    Optional. The job pauses until someone on your team approves it.

    Your team
  9. Translate

    Translates the approved lesson, rewriting clues and blanks so every activity still works.

    Claude
  10. PDF

    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.
GET /v1/lessons/les_7Qm2kV9x200
{
  "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.

POST/v1/lessonsStart a lesson job
GET/v1/lessons/{id}Job status by stage, with cost so far
POST/v1/lessons/{id}/approveApprove a lesson waiting for review
POST/v1/lessons/{id}/regenerateRerun one part: an image, an activity, or the article
GET/v1/lessons/{id}/filesSigned PDF links by language and edition
GET/v1/standards?q=Search standards by code or keyword
POST/v1/webhooksGet notified when a lesson finishes, fails, or needs approval

Built 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 English
esEspañolLatin American Spanish
frFrançaisInternational French
pt-BRPortuguêsBrazilian Portuguese

The 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.

Visit ClassFabric

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.