WEBVTT

1
00:00:00.000 --> 00:00:02.600
Welcome to this course!

2
00:00:02.600 --> 00:00:11.360
I'm James, and I'll be your host as we explore the artificial intelligence functionality available via the OpenAI API!

3
00:00:11.360 --> 00:00:11.360


4
00:00:11.360 --> 00:00:11.400


5
00:00:11.400 --> 00:00:14.640
In this course, you'll learn how to use the AI models

6
00:00:14.640 --> 00:00:21.000
available through the OpenAI API to solve a wide range of real-world tasks.

7
00:00:21.000 --> 00:00:21.000


8
00:00:21.000 --> 00:00:21.000


9
00:00:21.000 --> 00:00:26.320
To do this, we'll be using Python code throughout the course, and expect familiarity with a

10
00:00:26.320 --> 00:00:34.320
few Python programming topics like subsetting lists and dictionaries, control flow, and looping.

11
00:00:34.320 --> 00:00:38.960
However, no experience with AI or machine learning is required.

12
00:00:38.960 --> 00:00:38.960


13
00:00:38.960 --> 00:00:38.960


14
00:00:38.960 --> 00:00:41.880
With that, let's dive right in!

15
00:00:41.880 --> 00:00:41.880


16
00:00:41.880 --> 00:00:41.880


17
00:00:41.880 --> 00:00:47.680
OpenAI is a company that researches and develops artificial intelligence systems.

18
00:00:47.680 --> 00:00:53.920
One of their most famous developments is ChatGPT, which is an application that allows users

19
00:00:53.920 --> 00:01:01.320
to communicate with an AI-powered chatbot to ask questions, perform tasks, or generate content.

20
00:01:01.320 --> 00:01:07.000
The OpenAI API allows individuals or organizations to access

21
00:01:07.000 --> 00:01:12.120
and customize any of the models developed and released by OpenAI.

22
00:01:12.120 --> 00:01:12.120


23
00:01:12.120 --> 00:01:12.120


24
00:01:12.120 --> 00:01:16.760
If OpenAI was a car manufacturer, ChatGPT would be their shiny

25
00:01:16.760 --> 00:01:21.520
new sports car that people can walk into a dealership and test drive.

26
00:01:21.520 --> 00:01:21.520


27
00:01:21.520 --> 00:01:21.520


28
00:01:21.520 --> 00:01:25.520
The OpenAI API would be like the system customers could use

29
00:01:25.520 --> 00:01:29.400
to customize and order any car from the manufacturer's catalog.

30
00:01:29.400 --> 00:01:29.400


31
00:01:29.400 --> 00:01:30.320


32
00:01:30.320 --> 00:01:33.120
So what actually is an API?

33
00:01:33.120 --> 00:01:39.040
API stands for Application Programming Interface, and they act as a messenger between software

34
00:01:39.040 --> 00:01:45.800
applications, taking a request to a system and receiving a response containing data or services.

35
00:01:45.800 --> 00:01:45.800


36
00:01:45.800 --> 00:01:46.760


37
00:01:46.760 --> 00:01:53.920
An API is like a waiter in a restaurant; they take our order, or request, communicate it to the kitchen -

38
00:01:53.920 --> 00:02:00.920
the system providing the service - and finally, deliver the food, or response from the system, back to our table.

39
00:02:00.920 --> 00:02:00.920


40
00:02:00.920 --> 00:02:02.040


41
00:02:02.040 --> 00:02:08.480
Many applications interact using APIs; for example, a mobile weather app may send our

42
00:02:08.480 --> 00:02:14.280
location to an API and request the local forecast, which gets returned back to our phones.

43
00:02:14.280 --> 00:02:14.280


44
00:02:14.280 --> 00:02:15.200


45
00:02:15.200 --> 00:02:23.040
We can similarly write code to interact with the OpenAI API and request the use of one of their models.

46
00:02:23.040 --> 00:02:23.040


47
00:02:23.040 --> 00:02:23.040


48
00:02:23.040 --> 00:02:27.920
Our request, in this case, will specify which model we want, the data that we

49
00:02:27.920 --> 00:02:33.920
want the model to use, and any other parameters to customize the model's behavior.

50
00:02:33.920 --> 00:02:33.920


51
00:02:33.920 --> 00:02:33.920


52
00:02:33.920 --> 00:02:37.720
The response, containing the model result, is then returned back to us.

53
00:02:37.720 --> 00:02:37.720


54
00:02:37.720 --> 00:02:37.720


55
00:02:37.720 --> 00:02:43.240
Some of OpenAI's models, such as ChatGPT, can be used from the

56
00:02:43.240 --> 00:02:47.720
web browser, so what's the benefits of accessing them via the API?

57
00:02:47.720 --> 00:02:47.720


58
00:02:47.720 --> 00:02:48.840


59
00:02:48.840 --> 00:02:53.240
If we're looking to streamline our individual workflows using AI, then

60
00:02:53.240 --> 00:02:57.920
a low-setup web browser experience is likely sufficient for our purposes.

61
00:02:57.920 --> 00:03:04.520
However, if we're looking to begin integrating AI into our products, customer experiences, or

62
00:03:04.520 --> 00:03:10.640
business processes, we'll need the flexibility of working with the API using a programming language.

63
00:03:10.640 --> 00:03:10.640


64
00:03:10.640 --> 00:03:10.640


65
00:03:10.640 --> 00:03:16.760
The beauty of making these models available via an API is that software engineers,

66
00:03:16.760 --> 00:03:22.560
developers, or anyone else wanting to integrate AI into products and services, can now

67
00:03:22.560 --> 00:03:27.800
access and implement these models without needing a background in data science or machine learning.

68
00:03:27.800 --> 00:03:27.800


69
00:03:27.800 --> 00:03:27.800


70
00:03:27.800 --> 00:03:33.400
The OpenAI API has enabled the development of powerful new features,

71
00:03:33.400 --> 00:03:38.000
that before, would have required enormous computational resources and data.

72
00:03:38.000 --> 00:03:43.320
In the example shown from DataCamp workspace, we developed a feature where

73
00:03:43.320 --> 00:03:50.080
users can write or fix code by providing an instruction - all built on the OpenAI API.

74
00:03:50.080 --> 00:03:51.120


75
00:03:51.120 --> 00:03:51.120


76
00:03:51.120 --> 00:03:55.640
AI-powered products and services can provide much greater personalization to

77
00:03:55.640 --> 00:04:00.760
customers, so experiences can be tailored to an individual's needs and preferences.

78
00:04:00.760 --> 00:04:00.760


79
00:04:00.760 --> 00:04:00.760


80
00:04:00.760 --> 00:04:04.680
Time to test your understanding!

