> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Section Intro

> Overview of OpenAI, its models, hands-on demos, account setup, API pricing, and a lab exercise for creating an account.

Begin with an overview of OpenAI, explore its foundation models and variants, then move into hands-on demos covering account setup, the Playground, libraries & SDKs, and the CLI. We’ll also review the API pricing structure before you complete your first lab exercise by creating an account.

## What Is OpenAI?

* Definition: A Generative AI Platform as a Service (PaaS)
* Core offerings: Language, vision, and embeddings APIs
* Key applications: Chatbots, content generation, code completion

<Frame>
  ![The image is a slide titled "Objectives" with a list of topics: "What Is OpenAI?", "Foundation Models", and "Model Variants", each accompanied by an icon.](https://kodekloud.com/kk-media/image/upload/v1752881528/notes-assets/images/Mastering-Generative-AI-with-OpenAI-Section-Intro/objectives-openai-foundation-models-variants.jpg)
</Frame>

## Foundation Models and Key Variants

* Foundation models: Pre-trained large-scale neural networks
* Popular variants: GPT-4, GPT-3.5, DALL·E, Embedding models
* Use cases: Text generation, summarization, image creation

## Hands-On Demos

Get practical experience with:

1. Setting up an OpenAI account
2. Exploring the OpenAI Playground
3. Installing and using OpenAI Libraries & SDKs
4. Running commands with the OpenAI CLI

<Frame>
  ![The image is a slide titled "Objectives" with a list of topics: OpenAI Libraries and SDKs, OpenAI CLI, and Pricing Structure of the APIs.](https://kodekloud.com/kk-media/image/upload/v1752881529/notes-assets/images/Mastering-Generative-AI-with-OpenAI-Section-Intro/objectives-openai-libraries-cli-pricing.jpg)
</Frame>

<Callout icon="lightbulb" color="#1CB2FE">
  Understanding the OpenAI API pricing structure is essential before making large-scale requests. Review cost per token for each model on the [OpenAI Pricing Page](https://openai.com/pricing) and monitor usage to avoid unexpected charges.
</Callout>

## Lab Exercise: Account Creation

In your first lab, you’ll:

* Register a new OpenAI account
* Navigate the dashboard and API keys section
* Generate your first API key and test a basic request

Let’s jump in and start leveraging OpenAI’s capabilities!

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/mastering-generative-ai-with-openai/module/7cf291c5-4705-4a69-965a-b0ba7d2169c6/lesson/e1d881b2-ed57-40f2-85cc-53685d61e209" />
</CardGroup>
