Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Building AI Applications with OpenAI APIs
  • Table Of Contents Toc
Building AI Applications with OpenAI APIs

Building AI Applications with OpenAI APIs - Second Edition

By : Martin Yanev
close
close
Building AI Applications with OpenAI APIs

Building AI Applications with OpenAI APIs

By: Martin Yanev

Overview of this book

Unlock the power of AI in your applications with ChatGPT with this practical guide that shows you how to seamlessly integrate OpenAI APIs into your projects, enabling you to navigate complex APIs and ensure seamless functionality with ease. This new edition is updated with key topics such as OpenAI Embeddings, which’ll help you understand the semantic relationships between words and phrases. You’ll find out how to use ChatGPT, Whisper, and DALL-E APIs through 10 AI projects using the latest OpenAI models, GPT-3.5, and GPT-4, with Visual Studio Code as the IDE. Within these projects, you’ll integrate ChatGPT with frameworks and tools such as Flask, Django, Microsoft Office APIs, and PyQt. You’ll get to grips with NLP tasks, build a ChatGPT clone, and create an AI code bug-fixing SaaS app. The chapters will also take you through speech recognition, text-to-speech capabilities, language translation, generating email replies, creating PowerPoint presentations, and fine-tuning ChatGPT, along with adding payment methods by integrating the ChatGPT API with Stripe. By the end of this book, you’ll be able to develop, deploy, and monetize your own groundbreaking applications by harnessing the full potential of ChatGPT APIs.
Table of Contents (19 chapters)
close
close
Lock Free Chapter
1
Part 1:Getting Started with OpenAI APIs
4
Part 2: Build Web Applications with ChatGPT API
8
Part 3: ChatGPT, DALL-E, and Whisper APIs for Desktop Apps Development
14
Part 4: Advanced Concepts for Powering ChatGPT Apps

Download the example code files

You can download the example code files for this book from GitHub at https://github.com/PacktPublishing/Building-AI-Applications-with-ChatGPT-APIs. If there’s an update to the code, it will be updated in the GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used

There are a number of text conventions used throughout this book.

Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, and user input. Here is an example: “To get started, you’ll need to import the openai library into your app.py file.”

A block of code is set as follows:

from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY")

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

question = input("What would you like to ask ChatGPT? ")

Any command-line input or output is written as follows:

$ python app.py

Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “To do that, perform a right-click on the templates folder and select New | HTML file.”

Tips or important notes

Appear like this.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Building AI Applications with OpenAI APIs
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon