I want to build a product from scratch using the OpenAI API. Could you tell me what is the first step?

Hello, :globe_with_meridians:

I actively use HTML, CSS, and JavaScript. I’m currently learning React and I have learned how to make API (Axios) requests.

I want to build a very simple product using the OpenAI API. For example, a user writes a question, a response comes from OpenAI, and the answer is displayed on the screen.

What should the most basic and correct architecture be?

Thank you in advance to everyone who replies :folded_hands:t2:

I invite you to first read my own getting started - that focuses on the payment and organization account part of the API.

Then for using the API once you are set up:

https://platform.openai.com/docs/quickstart

2 Likes

You want to use something like PHP, Deno (Typescript) or Ruby on Rails for this (personally prefer latter) and running on a server in the cloud on a domain you control.

For a variety of reasons and partly because you need to keep your keys private.

To deploy a website on your own domain means learning a lot but persevere - it’s worth the journey. And you have AI now to help you!

1 Like