OpenAI API: How to Make Your First API Call | Complete Tutorial (Part 2/5)

preview_player
Показать описание
🔥 OpenAI API Masterclass: Learn how to make your first OpenAI API call in this beginner-friendly tutorial.

In this video, you'll learn:
- How to get and use your API key
- Making API calls using fetch
- Using the OpenAI library
- Understanding API responses

Perfect for developers making their first OpenAI API call!

🔗 Resources:
- Full Course Code: No code yet, will update when available

Learn AI & Coding:
Try Scrimba's AI Engineer course (20% off Pro plan with my link):

Note: Affiliate links support this channel through commissions.

#openaiapi

Timestamps
00:00 Intro
01:07 OpenAI Documentation
03:53 Cursor AI: System Prompt
04:55 Writing Axios Based API Call
07:00 Creating a .env File for our API Key
07:24 Generating The OpenAI Api Key
09:35 Looking At Token Costs
11:01 Writing OpenAI Based API Call
14:30 Comparing the OpenAI Call to the Axios Call
16:27 Outro
Рекомендации по теме
Комментарии
Автор

I'll be jumping into this from a no-code background, so I'm studying up on intro-level javascript in parallel (even if only to have better prompts for Claude, lol). We'll see! I was able to replicate the Realtime API Part 1-2-3 videos, then customize the app for a more general receptionist use-case, until eventually throwing in the towel due to hallucinations from the Q&A OpenAI Assistant which I probably did not do the best job of creating. So it's back to Bart's Automotive! TY Bart and keep these great videos coming!

DanielKTM
Автор

Great videos!! When can we expect videos 3 thorugh 5?

robwilliams
Автор

Part 3 coming soon? Looking forward to it!

davidarellano
Автор

looking forward for the next videos! :D

pfever
Автор

Wow! Thank you for making it easy to understand 🙏🏽

sandhyanair
Автор

The light theme makes the contrast really low (hard to read). Anyway great tutorial.

RbyCS
Автор

i did not now axios. What is it used for ? I always used python for my api calls.

LibertyRecordsFree