Introduction to OpenAI

Pre Requisites

OpenAI Account Setup

Welcome! In this tutorial, you’ll learn how to navigate the OpenAI website, sign up for an account, and locate your API keys. Let’s get started.


1. Homepage Overview

Open your browser and go to https://openai.com. The homepage highlights key resources:

SectionDescriptionExamples
ResearchBrowse model releases, papers, and demosDALL·E, GPT-4
SafetyStandards for ethical AI, copyright, deepfakes“Safety at every step” guidelines
CompanyOpenAI’s mission, team, and corporate valuesAbout Us, Careers
DeveloperAPI reference, tutorials, SDKsAPI docs, code samples
StoriesUse cases, news, and blog articlesCustomer spotlights, announcements

The image shows a webpage with a selection of colorful cards related to ChatGPT, featuring options for different models and articles about using AI for writing and research.


2. Exploring the Menu

Research

Under Research, you’ll find model releases and research insights:

  • DALL·E: Generate high-quality images from textual prompts.
  • GPT-4: State-of-the-art LLM for advanced text generation.

Note

OpenAI is developing experimental video-generation models—imagine a woolly mammoth running in the snow!

Safety

The Safety section covers:

  • Ethics and responsible AI
  • Copyright guidance
  • Misinformation and deepfake prevention

The image shows a webpage from OpenAI with the text "Safety at every step" and a statement about AI's potential to improve life while ensuring safety.

Company

Visit Company → About Us to learn OpenAI’s mission, values, and organizational structure.


3. Accessing the API

  1. Go to Products → API in the top menu.
  2. Click Login (or Sign Up if you don’t have an account yet).
  3. Explore the left sidebar for:
    • API reference
    • Quickstart guides
    • Sample code

Example JavaScript snippet to create a chat completion with GPT-4:

import OpenAI from "openai";
const openai = new OpenAI();

const completion = await openai.chat.completions.create({
  model: "gpt-4",
  messages: [
    { role: "user", content: "Write a haiku about AI." }
  ]
});

console.log(completion.choices[0].message.content);

4. Creating Your Account

Follow these steps to set up your OpenAI account:

  1. Click Sign Up on the API page.
  2. Enter your email address and create a password.
  3. Verify your email via the confirmation link.
  4. Complete your profile:
    • Full name
    • Organization (optional)
    • Birth date

The image shows a web page for creating an account on OpenAI, with options to sign up using an email address, Google, Microsoft, or Apple accounts.


5. Your Profile and API Keys

Once logged in, click your initials in the top-right corner to open Profile & Keys. Here you can:

  • Update organization name and billing details
  • Adjust interface settings and preferences
  • Create, view, or revoke API keys

The image shows a webpage displaying a list of API keys for an organization on the OpenAI platform, including details like name, secret key, creation date, last used date, project access, creator, and permissions.

To generate a new key, select Create new secret key. You’ll also see options for:

  • Admin vs. user permissions
  • Project-based access controls
  • Billing and usage dashboards
  • Rate limits and quotas
  • Data control settings

The image shows a screenshot of the "Data controls" settings page on the OpenAI platform, with options for visibility settings for threads, usage dashboard, and chat completions. The interface is displayed in a dark theme.


Next Steps

In the following section, we’ll dive into OpenAI’s detailed documentation, explore advanced model features, and walk through sample integrations.


Watch Video

Watch video content

Previous
Benefits of OpenAI for Industries