This is a FastAPI web application that provides an API to summarize video content. The service utilizes the OpenAI API to generate text summaries of the video transcriptions.
- Clone the repository: git clone https://github.com/yourusername/fastapi-video-summary.git
- Navigate to the project directory: cd fastapi-video-summary
- Create a virtual environment and activate it:
python3 -m venv devenv
source devenv/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Run the application
python3 app/main.py
Generates a text summary of the video content.
Request body:
openai_api_key(string, required): Your OpenAI API key.video_url(string, required): The URL of the video to summarize.
Response:
video_url(string): The URL of the video.transcription(string): The transcription of the video's content.summary(string): The generated summary of the video's content.approximate_cost(string): The approximate cost of the API call in USD.
Returns a successful response when the application is running.
openai_api_key(string, required): Your OpenAI API key.video_url(string, required): The URL of the video to summarize.
video_url(string): The URL of the video.transcription(string): The transcription of the video's content.summary(string): The generated summary of the video's content.approximate_cost(string): The approximate cost of the API call in USD.