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.
| Task | Model | Price | Why start here |
|---|---|---|---|
| Lesson scripts and quizzes | Claude Sonnet 5.5 | $0.80 in, $4.00 out per 1M tokens | A balanced chat model for longer, structured text. |
| Narration | Gemini 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 character | ElevenLabs | $0.037 per 1K chars (Turbo 2.5) | The lowest ElevenLabs tier per character, easy to estimate from a script's length. |
| Illustrations | Seedream 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.
| Item | Model and tier | Quantity | Cost |
|---|---|---|---|
| Scripts | Claude Sonnet 5.5 | 40 requests, 3,000 in and 2,500 out tokens each | $0.496 |
| Narration (6K characters each) | ElevenLabs, Turbo 2.5 | 240 1K characterss | $9.00 |
| Illustrations | Seedream 5.5, 1K | 120 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
- Write the outline and learning goals yourself.
- Generate drafts, then have a subject expert review every lesson.
- Narrate the approved script, not the draft.
- 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.
Keep reading
- ElevenLabs API pricingWhat ElevenLabs costs per unit, with a worked example
- ElevenLabs vs Gemini TTSPrice, limits and which to pick
- Claude Sonnet API pricingWhat Claude Sonnet costs per million tokens, with a worked example
- Text to speech APIEvery model we sell for this, ranked by price
- AI video API for ecommerce product videos
- AI image and video API for ad creative