# Python for AI: Create AI Apps with Flask & OpenAI

Canonical URL: <https://www.creativelive.com/classes/ai-python>

## Overview

Learn how to build dynamic web applications using the Flask framework, with a focus on integrating AI into your Python development workflow. Whether you're looking to strengthen your existing Python skills or break into AI-powered app development, this hands-on course gives you the knowledge and tools to succeed.

You'll start with the basics of Flask, including how to set up your project, create routes, and render HTML templates. From there, you'll explore web development essentials such as designing and styling your app with HTML and CSS, building forms for user input, and handling requests to make your app interactive and user-friendly. The course then takes your skills further by walking you through integrating the OpenAI API into your Flask app, making API calls for tasks such as sentiment analysis, and displaying results dynamically. You'll also cover error handling, debugging, and deploying your application.

## What you'll learn

- Set up Flask projects and create routes for web applications
- Handle GET and POST requests, and render HTML templates in Flask
- Configure and make OpenAI API requests for sentiment analysis tasks
- Design and style HTML forms, and apply CSS to your web apps
- Implement error handling and debug common issues in Flask applications
- Integrate AI models like GPT-4 into web applications using APIs

## Prerequisites

This course requires a basic to intermediate understanding of Python programming. Students without prior experience should first take our [Python for Data Science Bootcamp](/classes/python-data-science-bootcamp-nyc) or [Python Programming Bootcamp](/classes/python-programming-immersive).

## Curriculum

#### Introduction to Flask

- Overview of Flask and its use cases
- Setting up a Flask project
- Creating and running your first Flask app

#### Building the Web Application

- Designing the HTML structure and creating templates
- Styling the app with CSS
- Creating Flask routes for handling requests and rendering templates

#### Integrating the OpenAI API

- Setting up the OpenAI API and acquiring an API key
- Making API calls to perform sentiment analysis
- Parsing and displaying the API's results in your web app

#### Handling User Input

- Building forms in HTML to capture user input
- Processing form submissions in Flask
- Displaying dynamic content based on user input

#### Error Handling & Debugging

- Implementing error handling to catch and manage potential issues
- Debugging common errors and understanding Flask's error messages

#### Deploying & Testing

- Running the Flask app locally and testing its functionality
- Reviewing the complete workflow of submitting a comment and receiving sentiment analysis results

## Schedule
- Aug 24, 2026 – Aug 28, 2026 — Live Online
- Oct 7, 2026 – Oct 14, 2026 — Live Online
- Nov 30, 2026 – Dec 4, 2026 — Live Online

## Pricing

**Tuition:** $1895
