API of chatgpt transcript & summary

I need to build a basic website for an experiment related to education. The goal is to create a dedicated area for students to submit video assignments, integrating an additional program powered by ChatGPT. The primary focus will be on video summarization technology (transcript & summary). I hope to conduct real-time summarization analysis directly on students’ video assignments, providing timely summaries for teachers to assess. I believe I’ll need a YouTube plugin script and an API for summarization, along with integration with the ChatGPT API. Is this idea feasible, and could you provide relevant API information? Thank you.