Use case

AI API for e-learning: lessons, voice-over and visuals

A course pipeline writes a lesson script, narrates it and adds an image or two. Each step has a unit price, so you can cost a whole course before you produce it.

Prices checked Nov 26, 2026

What you can build

  • A lesson generator from an outline
  • Narration for each lesson in several languages
  • Diagrams and illustrations for slides

Models to start with

These are starting points to test on your own inputs, chosen by price and listed capabilities. We publish no quality or speed benchmarks.

TaskModelPriceWhy start here
Lesson scripts and quizzesClaude Sonnet 5.5$0.80 in, $4.00 out per 1M tokensA balanced chat model for longer, structured text.
NarrationGemini 3.8 Flash TTS$7.88 per 1M tokens (Audio output)Billed per million tokens; the model supports two-speaker dialogue and 100+ languages.
Narration, per characterElevenLabs$0.037 per 1K chars (Turbo 2.5)The lowest ElevenLabs tier per character, easy to estimate from a script's length.
IllustrationsSeedream 5.5$0.018 per image (1K)The lowest 1K image price.

Worked cost example

A 40-lesson course: script, 6,000-character narration and 3 images per lesson. Claude Sonnet 5.5 with 3,000 tokens in and 2,500 out per lesson; ElevenLabs Turbo 2.5; Seedream 5.5 at 1K.

ItemModel and tierQuantityCost
ScriptsClaude Sonnet 5.540 requests, 3,000 in and 2,500 out tokens each$0.496
Narration (6K characters each)ElevenLabs, Turbo 2.5240 1K characterss$9.00
IllustrationsSeedream 5.5, 1K120 images$2.16
Total$11.66

Prices checked 2026-11-26, in dollars at 100 credits = $1. Failed tasks are not charged. Put your own numbers into the media cost calculator or the LLM cost calculator.

How to build it

  1. Write the outline and learning goals yourself.
  2. Generate drafts, then have a subject expert review every lesson.
  3. Narrate the approved script, not the draft.
  4. Keep the source outline and prompts so lessons can be regenerated.

A request to Claude Sonnet 5.5 looks like this. Same key and endpoint for every model; see the API docs for the full reference.

curl https://api.tapmodels.com/v1/chat/completions \
  -H "Authorization: Bearer $TAPMODELS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "messages": [
      {
        "role": "user",
        "content": "Plan a zero-downtime migration of a 40M-row table."
      }
    ],
    "max_tokens": 1024
  }'

Frequently asked questions

Can the model replace a subject expert?

No. Generated lessons can contain errors. Have a subject expert review each lesson before it reaches learners.