Tutorial•Education AI•LLM Agents•2026
AI Agents for Education: Generate Full Course Materials with Multimedia via NexaAPI
instructional-agents (EACL 2026) generates text course materials with LLM agents. Here's how to add images, audio narration, and video using NexaAPI — $0.003/image, free tier.
Published: March 26, 2026 · Source: pypi.org/project/instructional-agents/ · Fetched: 2026-03-26
What is instructional-agents?
instructional-agents is a research-backed Python package accepted at EACL 2026 Main Conference. It implements the ADDIE instructional design model using multi-agent LLM collaboration to automatically generate:
✅ Syllabus
✅ Lecture slides
✅ Scripts
✅ Assessments
✅ Multi-agent collaboration
✅ LaTeX/PDF output
pip install instructional-agents⚠️ The gap: instructional-agents generates text content only. Modern e-learning needs course diagrams, audio narration, and video.
NexaAPI: Add Multimedia to Your Course Agents
NexaAPI gives your educational AI agents access to 50+ models for images, audio, and video — all under one API key.
📊
Course Diagrams
$0.003/image
🎙️
Audio Narration
TTS API, 50+ voices
🎬
Video Content
AI video generation
Python: Add Images to Your Course Agent
# pip install nexaapi instructional-agents
from nexaapi import NexaAPI
client = NexaAPI(api_key='YOUR_API_KEY')
# Free key at https://nexa-api.com
def generate_course_visual(topic: str, lesson_title: str):
"""Generate an educational diagram for a lesson."""
prompt = f'Educational diagram explaining {topic}, clean infographic style, suitable for students, white background, labeled'
response = client.images.generate(
model='flux-schnell', # check nexa-api.com for current models
prompt=prompt,
width=1024,
height=768
)
image_url = response.data[0].url
print(f'Course visual for "{lesson_title}": {image_url}')
return image_url
def generate_audio_narration(text: str, lesson_title: str):
"""Generate TTS narration for course content."""
response = client.audio.speech(
model='tts-1',
input=text,
voice='alloy'
)
print(f'Audio narration for "{lesson_title}" generated')
return response
# Example usage
lesson = 'photosynthesis in plants'
title = 'Biology 101: Photosynthesis'
visual = generate_course_visual(lesson, title)
audio = generate_audio_narration(
'Photosynthesis converts sunlight into energy using CO2 and water.',
title
)
print(f'Cost: ~$0.003 per image — cheapest AI image API available')JavaScript: Same in Node.js
// npm install nexaapi
import NexaAPI from 'nexaapi';
const client = new NexaAPI({ apiKey: 'YOUR_API_KEY' });
async function generateCourseVisual(topic, lessonTitle) {
const response = await client.images.generate({
model: 'flux-schnell',
prompt: `Educational diagram explaining ${topic}, clean infographic, white background`,
width: 1024,
height: 768
});
const imageUrl = response.data[0].url;
console.log(`Course visual for "${lessonTitle}": ${imageUrl}`);
return imageUrl;
}
async function generateAudioNarration(text, lessonTitle) {
const response = await client.audio.speech({
model: 'tts-1',
input: text,
voice: 'alloy'
});
console.log(`Audio for "${lessonTitle}" generated`);
return response;
}
(async () => {
const visual = await generateCourseVisual('photosynthesis', 'Biology 101');
const audio = await generateAudioNarration(
'Photosynthesis converts sunlight into energy.',
'Biology 101'
);
console.log('Full multimedia course material generated!');
console.log('Cost: ~$0.003/image');
})();instructional-agents + NexaAPI: What You Get
| Feature | instructional-agents | NexaAPI Add-on |
|---|---|---|
| Text course generation | ✅ | — |
| Course diagrams | ❌ | ✅ $0.003/image |
| Audio narration | ❌ | ✅ TTS API |
| Video generation | ❌ | ✅ Yes |
| Free tier | Needs OpenAI key | ✅ Yes |
| 50+ models | — | ✅ |
| Python SDK | ✅ | ✅ |
| JavaScript SDK | — | ✅ |