Watch: Get an OpenAI API key and plug it into my app | Vovy

Watch Vovy do it on a Mac: "Get me an OpenAI API key and put it in my app so the AI part works". Create an OpenAI project and API key, add credits, and store the key as a secret on your server so your app's AI feature works safely.

"Get me an OpenAI API key and put it in my app so the AI part works"

Create an OpenAI project and API key, add credits, and store the key as a secret on your server so your app's AI feature works safely.

What happens in the video

  1. Open the OpenAI API platform: Vovy opens platform.openai.com, which is separate from a ChatGPT subscription. You sign in yourself.
  2. Add prepaid credits: The API is billed separately from ChatGPT Plus. Vovy opens Billing and shows the minimum top-up. You approve the charge.
  3. Create a project and key: Vovy creates a project named after your app, then a secret key inside it. Keys start with sk- and are shown only once, so Vovy stores it immediately.
  4. Store it as a server secret: Vovy saves OPENAI_API_KEY as a Supabase Edge Function secret or a Vercel environment variable, never in frontend code where anyone can read it.
  5. Test a real request: Vovy sends a tiny test call from your server and shows the response and its cost on a card, so you know the key, credits and code all work.
Read the step-by-step guide