API to create PowerPoint presentations

I am trying to use an existing PowerPoint template to have GPT 4.0 turbo create new documents based on the a few pieces of information I feed it. However, the best I can come up with is a VB script. Does anyone know of an API that does this automatically? Takes content and an existing PowerPoint template and create a new document that is fully formatted in PowerPoint?