All Tasks
Buildbeginner
25 min

Your First OpenAI API Call

You have a blank .NET 9 console app. Your job is to install the OpenAI NuGet package, wire up an API key from environment variables, send a user message to GPT-4o, and stream the response token by token to the console. The goal is to understand what a real API call looks like before wrapping it in services.

Your progress0%

Requirements

Skills you'll use

.NETOpenAI SDKAsync/Await

Read this first

This task is based on the lesson below. Complete the reading before attempting it.

Go to lesson

What to expect

Difficulty
beginner
Time
25 min
Steps
6
Type
Build