One prompt in, a narrated and captioned 9:16 short out, on AWS Lambda.
Hassan built it as a contract AI and backend engineer for Aegasis Labs, 2024 – 2025.
- Client
Aegasis Labs- Sector
- Generative video
- Scope
- Python · OpenAI · AWS Lambda
- Live at
- aegasislabs.com

ProofAegasis Labs
Aegasis Labs, an AI-assisted software consultancy in London, wanted short vertical video made from a single request: a prompt in, a finished short out.
That one prompt can become a finished short, with every stage free to fail and retry without paying for the stages before it again.
Five stages, each one safe to retry, orchestrated on AWS Lambda: script, scenes, narration, captions, and assembly.
- 01
Script & scenes
script(prompt) → scenesThe prompt becomes a script, and the script becomes illustrated scenes, each a stage of its own.
- 02
Narration & captions
narrate() · caption()Narration generated for the script, with captions timed word by word and rendered with PIL.
- 03
Assembly
assemble(9:16)MoviePy cuts it together: Ken Burns motion on the stills, crossfades between scenes, all in a 9:16 frame.
- 04
Cost-aware retries
s3.cached() or call()Every stage's output cached in S3, so a retry never calls a paid endpoint twice.
Alongside it, for an energy-infrastructure cybersecurity product, Hassan ported the production streaming chat adapter from PHP to Python, on OpenAI streaming.
Figures
fig. 2, a sketch
From a single prompt to a finished short, automatically.
Next exhibit · AHeritage retail
S Abdul Khaliq


