• For Individuals
  • For Businesses
  • For Universities
  • For Governments
Coursera
Online Degrees
Careers
Log In
Join for Free
Coursera
Packt
Master ChatGPT & OpenAI APIs – Build AI Tools in Python
  • About
  • Modules
  • Recommendations
  • Testimonials
  1. Browse
  2. Data Science
  3. Machine Learning

This Labor Day, enjoy $120 off Coursera Plus. Unlock access to 10,000+ programs. Save today.

Packt

Master ChatGPT & OpenAI APIs – Build AI Tools in Python

Packt - Course Instructors

Instructor: Packt - Course Instructors

Included with Coursera Plus

•

Learn more

16 modules
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

Recommended experience

Intermediate level

Basic Python knowledge is helpful. Ideal for developers, AI enthusiasts, and data scientists aiming to build AI-powered applications.

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

16 modules
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

Recommended experience

Intermediate level

Basic Python knowledge is helpful. Ideal for developers, AI enthusiasts, and data scientists aiming to build AI-powered applications.

2 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
  • About
  • Modules
  • Recommendations
  • Testimonials

What you'll learn

  • Build AI-powered tools using ChatGPT and OpenAI APIs for automation and content generation

  • Master prompt engineering techniques to optimize AI interactions in text and image creation

  • Develop real-world applications, including chatbots, recommendation engines, and AI-powered web apps

  • Utilize LangChain and OpenAI APIs to enhance AI-based applications with document querying and automation

Skills you'll gain

  • Generative AI
  • ChatGPT
  • Natural Language Processing
  • Image Analysis
  • Large Language Modeling
  • Application Development
  • Application Programming Interface (API)
  • Artificial Intelligence
  • Artificial Neural Networks
  • OpenAI
  • Prompt Engineering
  • Python Programming

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

April 2025

Assessments

17 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

Learn more about Coursera for Business
 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 16 modules in this course

Updated in May 2025.

This course now features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Unlock the full potential of ChatGPT and OpenAI APIs with this hands-on course! You'll learn to integrate AI into real-world applications, automate tasks, generate creative content, and build AI-powered tools using Python. From fundamental concepts to advanced techniques, this course takes you through AI communication, prompt engineering, and OpenAI API interactions. Your journey begins with an introduction to ChatGPT, covering its history, capabilities, and practical use cases. You'll dive deep into how ChatGPT works, exploring its neural networks, tokenization, and language models. As you progress, you'll apply your knowledge by creating engaging content, generating images with Midjourney, and coding applications with OpenAI’s API. The course also covers mastering prompt engineering for both text and image generation, ensuring you craft high-quality AI interactions. You’ll build real-world AI projects like recommendation engines, cover letter generators, and virtual realtor apps using OpenAI’s API. Finally, you'll explore the LangChain framework to enhance AI-powered applications. Ideal for developers, data scientists, and AI enthusiasts, this course requires basic programming knowledge (Python preferred) but welcomes those eager to learn. Whether you want to boost productivity, automate workflows, or create AI-driven apps, this course will equip you with essential AI skills.

In this module, we will introduce you to the course and its structure, ensuring you know what to expect as you progress. You’ll see ChatGPT and OpenAI APIs in action through a live demo and gain insights into how to maximize your learning experience. Whether you're a developer or a non-developer, this section will set the stage for mastering AI tools efficiently.

What's included

3 videos1 reading

3 videos•Total 16 minutes
  • Introduction & Course Structure•8 minutes
  • Demo - Let's See ChatGPT and OpenAI APIs in Action!•4 minutes
  • How To Get The Most Out of This Course•4 minutes
1 reading•Total 10 minutes
  • Full Course Resources•10 minutes

In this module, we will dive into the fundamentals of ChatGPT, from understanding what it is to exploring its real-world applications. You’ll get hands-on experience with setting up a ChatGPT account and comparing different subscription options. Additionally, we’ll take a brief journey through AI history to understand how ChatGPT evolved into the powerful tool it is today.

What's included

6 videos1 assignment1 plugin

6 videos•Total 22 minutes
  • What Is ChatGPT - An Introduction•8 minutes
  • ChatGPT Use-Cases•1 minute
  • Create a ChatGPT Account & ChatGPT Demo•5 minutes
  • Free VS Paid ChatGPT Subscriptions•2 minutes
  • ChatGPT and AI Brief History•4 minutes
  • Section Summary•0 minutes
1 assignment•Total 15 minutes
  • ChatGPT - An Introduction - Use Cases, AI History, ChatGPT Account Creation - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Understanding Language Models and ChatGPT•15 minutes

In this module, we will take a deep dive into the inner workings of ChatGPT, exploring its neural network, tokenization process, and transformer model. We’ll also discuss its strengths and limitations to help you set realistic expectations. Finally, you’ll put your knowledge into practice by using ChatGPT to create engaging content.

What's included

7 videos1 assignment1 plugin

7 videos•Total 27 minutes
  • ChatGPT Anatomy•1 minute
  • ChatGPT Anatomy, Data Collection and Tokenizer•4 minutes
  • The Neural Network and The Transformer - Deep Dive•8 minutes
  • Tokens and ChatGPT Language Model•2 minutes
  • Limitations and Capabilities of ChatGPT - An Overview•2 minutes
  • Hands-On - Content Creation - Use ChatGPT to Create a Blog Post•7 minutes
  • [TASK] - Your Turn - Content Creation with ChatGPT•0 minutes
1 assignment•Total 15 minutes
  • ChatGPT - A Deep Dive & How It Really Works - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Decoding Transformer Models with Chatbot Scenarios•15 minutes

In this module, we will explore how ChatGPT can be used as a creative writing assistant to generate engaging children’s books. You’ll learn how to structure a story, develop memorable characters, and refine your manuscript. By the end of this section, you’ll have a fully written children’s book created with ChatGPT’s help.

What's included

5 videos1 assignment1 plugin

5 videos•Total 30 minutes
  • Creating the Outline for Children's Book with ChatGPT•8 minutes
  • Adding a Memorable Character to the Story•6 minutes
  • Writing the Opening Chapter•3 minutes
  • Writing the Full Story & Making Improvements•6 minutes
  • Finalizing the Final Book•5 minutes
1 assignment•Total 15 minutes
  • ChatGPT and Creative Work - Creating Children's Books with ChatGPT - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Creating a Children's Book Using AI•15 minutes

In this module, we will explore how ChatGPT can be leveraged to rapidly learn new skills. You’ll discover techniques to address learning pain points and create a structured approach to mastering various subjects efficiently with AI.

What's included

2 videos1 assignment1 plugin

2 videos•Total 15 minutes
  • ChatGPT for Rapid Skills Acquisition - Introduction•10 minutes
  • Using Pain-Points for Rapid Skills Acquisition•4 minutes
1 assignment•Total 15 minutes
  • ChatGPT and Rapid Skills Acquisition - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Effective Prompt Engineering for Skill Acquisition•15 minutes

In this module, we will explore how ChatGPT can assist with code generation, debugging, and project development. Through hands-on exercises, you’ll create various applications, from a Java password generator to a weather web app, while leveraging ChatGPT’s capabilities to simplify complex coding tasks.

What's included

6 videos1 assignment1 plugin

6 videos•Total 42 minutes
  • Code Generation with ChatGPT - Introduction and Explanations•5 minutes
  • Create a Java Password Generator with the Help of ChatGPT•3 minutes
  • Create an HTML Portfolio Page with the Help of ChatGPT•5 minutes
  • Create a Weather Web App with the Help of ChatGPT•5 minutes
  • ChatGPT Code Generation for a Chrome Extension - Overview•7 minutes
  • How to Develop a SaaS Product from Scratch with ChatGPT•14 minutes
1 assignment•Total 15 minutes
  • ChatGPT & Code Generation - Use ChatGPT to Generate and Debug Code - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Exploring Code with ChatGPT: Generating, Explaining, and Improving Code•15 minutes

In this module, we will focus on the art of crafting effective prompts to maximize ChatGPT’s potential. You’ll explore different frameworks and techniques to refine your interactions with AI, ensuring more precise and high-quality responses. By mastering prompt engineering, you’ll enhance your ability to generate accurate and creative AI-driven content.

What's included

19 videos1 assignment1 plugin

19 videos•Total 58 minutes
  • What is a Prompt and Prompt Engineering•1 minute
  • Prompt Components and Prompt Engineering•2 minutes
  • A Prompt Breakdown•3 minutes
  • Elements of a Prompt•3 minutes
  • Frameworks for Prompt Engineering - Introduction•1 minute
  • The Clarifying Objective Framework•2 minutes
  • The Iterative Refinement Framework•4 minutes
  • The Reverse Engineer Framework•2 minutes
  • The Question-Answer Framework•2 minutes
  • The Instruction-Based Framework•2 minutes
  • The Conversational Context Framework•2 minutes
  • The Narrowing Down Framework•2 minutes
  • The Role-play Framework•5 minutes
  • The Feedback Loop Framework•5 minutes
  • The Emotion-Driven Framework•3 minutes
  • The Hypothesis Framework•1 minute
  • The Comparative Framework•2 minutes
  • The Assumptive Framework•2 minutes
  • The Perspective-Switching Framework•4 minutes
1 assignment•Total 15 minutes
  • Mastering Prompt Engineering and How To Craft the Best Prompts - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Mastering AI Prompting Techniques•15 minutes

In this module, we will explore how Midjourney uses AI to generate stunning visuals. You’ll learn how to manipulate various parameters such as aspect ratio, stylization, and quality to produce the best possible images. By the end of this section, you’ll have the skills to create unique and compelling AI-generated artwork.

What's included

14 videos1 assignment1 plugin

14 videos•Total 58 minutes
  • Image Generation with AI - Introduction•2 minutes
  • What is Midjourney•7 minutes
  • Generate a First AI Image with Midjourney•8 minutes
  • Midjourney Parameters - Aspect Ratio•5 minutes
  • Saving Images in Midjourney•2 minutes
  • Midjourney Parameter - Chaos•3 minutes
  • Side-by-side Comparison of Chaos Images•0 minutes
  • Midjourney Parameter - Quality•4 minutes
  • Midjourney Parameter - Stop•4 minutes
  • Midjourney Parameter - Stylize•3 minutes
  • Midjourney Parameter - Tile•4 minutes
  • Midjourney Parameter - Version and Settings•5 minutes
  • Midjourney Parameter - No•1 minute
  • Section Summary•1 minute
1 assignment•Total 15 minutes
  • Generative AI - Creating Visual Content with Midjourney - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Prompting with Midjourney for AI Image Generation•15 minutes

In this module, we will focus on prompt engineering specifically for Midjourney. You’ll explore different ways to structure prompts for optimal image generation, experiment with themes and artistic styles, and learn how to refine your AI-generated images for maximum impact.

What's included

11 videos1 assignment1 plugin

11 videos•Total 48 minutes
  • Midjourney Prompting - Introduction•1 minute
  • Passing Image URL in Prompts•5 minutes
  • Separate Two Concepts in a Prompt•6 minutes
  • Hands-On: Midjourney Themes•6 minutes
  • [TASK] - Your Turn - Apply Themes in Your Domain•1 minute
  • Midjourney Design Styles•3 minutes
  • Midjourney Engines•5 minutes
  • Drawing and Art Medium•6 minutes
  • Lighting•2 minutes
  • Realistic Photos with Midjourney•5 minutes
  • Section Summary•2 minutes
1 assignment•Total 15 minutes
  • Midjourney Prompt Engineering - Crafting the Best Prompts For Optimal Images - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Creating Midjourney Image Prompts•15 minutes

In this module, we will dive into the OpenAI API, covering everything from API keys and documentation to developing AI applications. You’ll build and test a recommendation engine, applying your knowledge to create real-world AI solutions.

What's included

15 videos1 assignment1 plugin

15 videos•Total 102 minutes
  • The OpenAI API & Course Structure Checkpoint•3 minutes
  • Introduction to OpenAI API - API Keys and Documentation Overview•11 minutes
  • OpenAI Models - Overview•4 minutes
  • Writing our First API Request with cURL•7 minutes
  • Dev Environment Setup Instructions - Win/Mac/Linux•4 minutes
  • Set up VS Code and Python Extensions•4 minutes
  • Setup Python Environment in VS Code•5 minutes
  • Hitting the ChatCompletion OpenAI API Endpoint with Python - Full Setup•9 minutes
  • Hitting the ChatCompletion OpenAI API Endpoint in Javascript•11 minutes
  • [PROJECT] - Recommendation Engine with OpenAI - Setup•11 minutes
  • Recommendation Engine App - Render Function•8 minutes
  • Recommendation Engine App Testing•7 minutes
  • Recommendation Engine App - Improvements - Adding Numbers and CSS Changes•8 minutes
  • Recommendation Engine App - Styling and Final Touches•2 minutes
  • Section Summary•1 minute
1 assignment•Total 15 minutes
  • The OpenAI API - Leveraging the ChatGPT Engine to Build AI Powered Applications - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Exploring ChatGPT and API Integrations•15 minutes

In this module, we will apply OpenAI’s API to build a cover letter generator. You’ll learn how to integrate user inputs, customize outputs, and display the final letter on a web interface, making it an invaluable tool for job seekers.

What's included

4 videos1 assignment1 plugin

4 videos•Total 32 minutes
  • Cover Letter Python Project Setup•7 minutes
  • Personalize the Cover Letter - Adding parameters•7 minutes
  • Creating Input and Customizing the Cover Letter•10 minutes
  • Showing the Cover Letter on the Page•6 minutes
1 assignment•Total 15 minutes
  • Hands-On: OpenAI API - Build a Cover Letter Web App- Assessment•15 minutes
1 plugin•Total 15 minutes
  • Creating a Cover Letter Generator with Python and Streamlit•15 minutes

In this module, we will build a virtual realtor application that provides property recommendations and real estate insights. You’ll learn how to process user queries in real time and display AI-generated responses efficiently.

What's included

2 videos1 assignment1 plugin

2 videos•Total 33 minutes
  • The Virtual Realtor App - Setting Up the User Interface•12 minutes
  • Pulling In the Answers as a Stream•21 minutes
1 assignment•Total 15 minutes
  • Hands-On: OpenAI API - Build a Virtual Realtor Web App in Python - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Interactive Streamlit Web App•15 minutes

In this module, we will dive into DALL-E and its capabilities for generating images from text descriptions. You’ll work on a project to create and display AI-generated visuals in real time, showcasing the potential of generative AI in creative applications.

What's included

8 videos1 assignment1 plugin

8 videos•Total 41 minutes
  • OpenAI and DALL-E - OpenAI API Endpoint for Image Generation•0 minutes
  • Generating Images with OpenAI Image Generator Endpoint - DALL-E Powered•4 minutes
  • Demo of the Yogi Droid Project•3 minutes
  • [PROJECT] - Generating and Retrieving Yogi Data•10 minutes
  • Showing Yogi Data on the Page•6 minutes
  • Generating an Image From Text•7 minutes
  • Showing More Data on the Page & Final Touches•5 minutes
  • Section Summary•2 minutes
1 assignment•Total 15 minutes
  • Hands-On: OpenAI API and DALL-E - Generating Images on the Fly with DALL-E - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Using OpenAI's Image Generation API•15 minutes

In this module, we will explore the LangChain framework and its integration with OpenAI’s API. You’ll learn how to query documents, structure AI-powered applications, and test chatbot interactions for real-world applications.

What's included

14 videos1 assignment1 plugin

14 videos•Total 92 minutes
  • What Is LangChain?•3 minutes
  • LangChain Website - Documentation•1 minute
  • How LangChain Works•4 minutes
  • How Vector Search Works and LangChain Use-Cases•5 minutes
  • Generating a Twitter Handle with LangChain•6 minutes
  • LangChain Building Blocks and Quickstart•5 minutes
  • The LangChain ChatModel•3 minutes
  • LangChain Modules•6 minutes
  • Prompt Templates and Chains•9 minutes
  • LangChain Agents - Full Demo•11 minutes
  • LangChain TextLoaders•2 minutes
  • LangChain CSV Loaders•2 minutes
  • LangChain, ChatGPT, and OpenAI API And Our Own Documents - Query Your Own Docs•15 minutes
  • Testing our Command Line ChatBot•13 minutes
1 assignment•Total 15 minutes
  • OpenAI API & the LangChain Framework - Deep Dive - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Building with Langchain and LLM Integrations•15 minutes

In this module, we will apply LangChain and OpenAI’s API to build a YouTube assistant web app that can summarize and analyze video content. You’ll start by setting up the project, testing its functionality through console-based interactions, and finally refining the front-end using Streamlit to ensure a seamless user experience.

What's included

3 videos1 assignment1 plugin

3 videos•Total 38 minutes
  • Youtube Assistant Project - Setup•19 minutes
  • Testing the Youtube Assistant Project - Console Testing•7 minutes
  • Youtube Assistant Web App - Front-end Final Touches with Streamlit•11 minutes
1 assignment•Total 15 minutes
  • [PROJECT] LangChain & OpenAI API & ChatGPT - Youtube Assistant Web App - Assessment•15 minutes
1 plugin•Total 15 minutes
  • Creating a Simple YouTube Assistant with Langchain•15 minutes

This module will guide you on where to go next, providing resources and strategies to continue building AI-powered applications.

What's included

2 videos3 assignments

2 videos•Total 7 minutes
  • Where to Go From Here•2 minutes
  • Next Steps•5 minutes
3 assignments•Total 90 minutes
  • Next Steps - Assessment•15 minutes
  • Full Course Assessment•60 minutes
  • Full Course Practice Assessment•15 minutes

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

Packt - Course Instructors
Packt - Course Instructors
Packt
883 Courses•188,780 learners

Offered by

Packt

Offered by

Packt

Packt helps tech professionals put software to work by distilling and sharing the working knowledge of their peers. Packt is an established global technical learning content provider, founded in Birmingham, UK, with over twenty years of experience delivering premium, rich content from groundbreaking authors on a wide range of emerging and popular technologies.

Explore more from Machine Learning

  • Status: Free Trial
    Free Trial
    C

    Coursera Instructor Network

    ChatGPT API for Developers: Integrate AI Effortlessly

    Course

  • Status: Free
    Free
    C

    Coursera Project Network

    OpenAI API for Beginners: Create AI Assistants with ChatGPT

    Guided Project

  • P

    Packt

    Prompt Engineering in Python, with GPT, and the OpenAI API

    Course

  • Status: Free
    Free
    C

    Coursera Project Network

    Software Development with ChatGPT: Generating Code with AI

    Guided Project

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Learn more

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Explore degrees

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Learn more

Frequently asked questions

Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.

If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.

Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.

If you complete the course successfully, your electronic Course Certificate will be added to your Accomplishments page - from there, you can print your Course Certificate or add it to your LinkedIn profile.

This course is currently available only to learners who have paid or received financial aid, when available.

You will be eligible for a full refund until two weeks after your payment date, or (for courses that have just launched) until two weeks after the first session of the course begins, whichever is later. You cannot receive a refund once you’ve earned a Course Certificate, even if you complete the course within the two-week refund period. See our full refund policy.

Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.

More questions

Visit the learner help center

Financial aid available,

Coursera Footer

Technical Skills

  • ChatGPT
  • Coding
  • Computer Science
  • Cybersecurity
  • DevOps
  • Ethical Hacking
  • Generative AI
  • Java Programming
  • Python
  • Web Development

Analytical Skills

  • Artificial Intelligence
  • Big Data
  • Business Analysis
  • Data Analytics
  • Data Science
  • Financial Modeling
  • Machine Learning
  • Microsoft Excel
  • Microsoft Power BI
  • SQL

Business Skills

  • Accounting
  • Digital Marketing
  • E-commerce
  • Finance
  • Google
  • Graphic Design
  • IBM
  • Marketing
  • Project Management
  • Social Media Marketing

Career Resources

  • Essential IT Certifications
  • High-Income Skills to Learn
  • How to Get a PMP Certification
  • How to Learn Artificial Intelligence
  • Popular Cybersecurity Certifications
  • Popular Data Analytics Certifications
  • What Does a Data Analyst Do?
  • Career Development Resources
  • Career Aptitude Test
  • Share your Coursera Learning Story

Coursera

  • About
  • What We Offer
  • Leadership
  • Careers
  • Catalog
  • Coursera Plus
  • Professional Certificates
  • MasterTrack® Certificates
  • Degrees
  • For Enterprise
  • For Government
  • For Campus
  • Become a Partner
  • Social Impact
  • Free Courses
  • ECTS Credit Recommendations

Community

  • Learners
  • Partners
  • Beta Testers
  • Blog
  • The Coursera Podcast
  • Tech Blog

More

  • Press
  • Investors
  • Terms
  • Privacy
  • Help
  • Accessibility
  • Contact
  • Articles
  • Directory
  • Affiliates
  • Modern Slavery Statement
  • Do Not Sell/Share
Learn Anywhere
Download on the App Store
Get it on Google Play
Logo of Certified B Corporation
© 2025 Coursera Inc. All rights reserved.
  • Coursera Facebook
  • Coursera Linkedin
  • Coursera Twitter
  • Coursera YouTube
  • Coursera Instagram
  • Coursera TikTok
Coursera

Welcome back

​
Your password is hidden
​

or

New to Coursera?


Having trouble logging in? Learner help center

This site is protected by reCAPTCHA Enterprise and the Google Privacy Policy and Terms of Service apply.