OpenAI shows how to add its API to a ChatGPT Site, from photo booth to billing
In episode 4 of its ChatGPT Sites series, OpenAI explains how to put AI features inside a website, how API billing differs from a ChatGPT subscription, and how to choose a model.
In episode 4 of its "Getting Started with ChatGPT Sites" series, OpenAI presenter Gabriel shows how developers can call OpenAI's API from inside a website they have built. The earlier episodes covered building a Site with ChatGPT. This one covers adding AI to the Site itself, with a party photo booth as the example.
Setting up an OpenAI API key and billing
An API is a way for a website or application to talk directly to an outside service. Gabriel says developers once had to write custom code for each integration. Now the OpenAI Developers plugin can be tagged in ChatGPT, which then guides the user through creating an OpenAI API Platform account, connecting it to ChatGPT and generating an API key. The key works like a secret that identifies who is calling the service and what they are allowed to use, so it must be kept secure.
Billing works differently from a ChatGPT subscription. Instead of a quota or allowance included with a plan, API usage is pay-as-you-go.
A comic book photo booth and other examples
Gabriel asked ChatGPT to build a Site where guests upload a photo, choose a style and generate a comic book version of themselves using OpenAI's image generation models. Visitors can download the results. He suggested adding Sign in with ChatGPT so returning visitors can see the images they have made before.

Other examples included a travel translation tool that turns speech into English in real time and translates a photographed menu, and an expense system that extracts the relevant details from an uploaded receipt. For a small business, he described using the Agents API to build a chat agent that helps website visitors find the services or products that suit them.

Choosing a model
Models differ in price, strength, quality and response time. Gabriel says he asks ChatGPT to recommend one by describing how fast the answer needs to be, how good it must be and what he is willing to pay. OpenAI's developer documentation describes what each model can do. He closed with a warning that not every feature needs AI, and that builders should first define the problem and decide how AI would add value to that workflow.
Questions and answers
What did OpenAI show in episode 4 of its ChatGPT Sites series?
OpenAI showed how to add its API to a ChatGPT Site. In episode 4 of its "Getting Started with ChatGPT Sites" series, presenter Gabriel explained how developers can put AI features inside a website they have built, using a party photo booth as the example. The episode also covered how API billing differs from a ChatGPT subscription and how to choose a model.
How does OpenAI API billing differ from a ChatGPT subscription?
OpenAI API usage is pay-as-you-go. A ChatGPT subscription includes a quota or allowance with the plan, while API usage is billed by how much it is used. The API key works like a secret that identifies who is calling the service and what they are allowed to use, so it must be kept secure.
What comic book photo booth did Gabriel build with ChatGPT Sites and the OpenAI API?
Gabriel asked ChatGPT to build a Site where guests upload a photo, choose a style and generate a comic book version of themselves using OpenAI's image generation models. Visitors can download the results. He suggested adding Sign in with ChatGPT so returning visitors can see the images they have made before.
What other AI examples did OpenAI give for websites built with ChatGPT Sites?
Gabriel gave three other examples. A travel translation tool turns speech into English in real time and translates a photographed menu. An expense system extracts the relevant details from an uploaded receipt. For a small business, he described using the Agents API to build a chat agent that helps website visitors find the services or products that suit them.
How should developers choose an OpenAI model for a website?
Models differ in price, strength, quality and response time. Gabriel says he asks ChatGPT to recommend one by describing how fast the answer needs to be, how good it must be and what he is willing to pay. OpenAI's developer documentation describes what each model can do.
Does every website feature need AI according to OpenAI's ChatGPT Sites episode?
No. Gabriel warned that not every feature needs AI. Builders should first define the problem and decide how AI would add value to that workflow. He closed the episode with this warning.
From the YouTube description
So far, we’ve used AI to build a Site. What if you want to use AI in the Site itself? We use a party photo booth as an example: you upload a photo and get a comic book portrait of yourself. We’ll show you how to get started with the OpenAI API, how to choose a model and how API billing differs from your ChatGPT subscription.
00:00 What the OpenAI API does
00:33 The OpenAI Developers plugin and API keys
01:05 How API billing works
01:23 A comic book photo booth
01:54 Translating menus and reading receipts
02:32 Choosing a model
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.



