generate_video
Generate a short Italian-language video with Google Veo and embed it in a new Moodle page for students.
Instructions
Generate a short Italian-language video with Google Veo 3.1 and embed it in a new mod_page in Moodle. Requires GEMINI_API_KEY env. Returns { cmid, video_url, page_url }. Takes ~1 minute end-to-end for a lite 8s clip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Visible module name shown to students | |
| model | No | Veo model. "lite" is cheapest (~$0.15/clip), default. | veo-3.1-lite-generate-preview |
| prompt | Yes | Italian-language video prompt (what Veo will render). Include scene, characters, mood, lighting, camera style. Native audio | |
| courseid | Yes | Moodle course ID | |
| idnumber | Yes | Stable idnumber for idempotency (e.g. "ita-a1-u3-video-mercato") | |
| intro_text | No | Optional Italian intro shown above the video (1-2 sentences) | |
| resolution | No | 1080p only allowed with duration=8 | 720p |
| sectionnum | Yes | Section number (0 = General, 1..N for Units) | |
| aspect_ratio | No | 16:9 | |
| duration_seconds | No | Clip duration — Veo 3.1 lite supports 4, 6, 8s | |
| comprehension_questions | No | Optional list of 2-4 Italian questions shown below the video |