Visual explanations with animations and diagrams
import StudyfetchSDK from '@studyfetch/sdk'; const client = new StudyfetchSDK({ apiKey: 'your-api-key', baseURL: 'https://studyfetchapi.com', }); const explainerComponent = await client.v1.components.create({ name: 'Cell Biology Explainer', type: 'explainers', config: { materials: ['mat-123', 'mat-456'], folders: ['folder-789'], title: 'Understanding Cell Structure and Function', style: 'educational', targetLength: 300, voiceType: 'nova', language: 'en', includeSubtitles: true, visualElements: ['diagrams', 'animations', 'images'], complexity: 'intermediate' } }); console.log('Explainer component created:', explainerComponent._id);
"explainers"
Show Configuration Properties
professional
casual
educational
animated
120
300
600
900
1200
alloy
echo
fable
onyx
nova
shimmer
diagrams
animations
charts
images
text_overlays
beginner
intermediate
advanced
{ "_id": "comp_303pqr", "name": "Cell Biology Explainer", "type": "explainers", "status": "processing", "config": { "materials": ["mat-123", "mat-456"], "folders": ["folder-789"], "title": "Understanding Cell Structure and Function", "style": "educational", "targetLength": 300, "voiceType": "nova", "language": "en", "includeSubtitles": true, "visualElements": ["diagrams", "animations", "images"], "complexity": "intermediate" }, "createdAt": "2024-01-15T10:00:00Z", "updatedAt": "2024-01-15T10:00:00Z", "organizationId": "org_456def", "video": { "url": null, "thumbnailUrl": null, "duration": null } }
const embedResponse = await client.v1.components.generateEmbed(explainerComponent._id, { // User tracking userId: 'user-456', groupIds: ['class-101', 'class-102'], sessionId: 'session-789', // Explainer-specific features features: { enableWebSearchSources: true, enableImageSources: true, enableTranscript: true, enableOutline: true }, // Dimensions width: '100%', height: '600px', // Token expiry expiryHours: 24 });
<iframe src="https://embed.studyfetch.com/component/comp_303pqr?token=..." width="100%" height="600px" frameborder="0" allowfullscreen style="border: 1px solid #e5e5e5; border-radius: 8px;"> </iframe>
Was this page helpful?