Skip to content
  • Sign In
  • Try Now
View all events
OpenAI

Hands-on Generative AI Using OpenAI APIs

Published by O'Reilly Media, Inc.

Beginner to intermediate content levelBeginner to intermediate

Embed generative AI into your products

Course outcomes

  • Use the OpenAI Playground to work with OpenAI APIs
  • Integrate with API endpoints for chat, vision, and audio APIs using Python
  • Structure API calls and parse responses for a range of use cases
  • Use OpenAI embeddings to train natural language models

Course description

Join expert Janani Ravi to explore the intricacies of integrating advanced AI technologies into your own products using the OpenAI APIs. You’ll learn how to tweak model parameters like temperature and top-P, understand model determinism, and explore the capabilities of the Chat Completions API. You’ll explore audio transcription and translation with Whisper, images with DALL-E, and vision APIs with GPT-4 for image interpretation and editing. Through a series of exercises, you'll learn how to harness these powerful tools, fine-tune AI outputs to meet your specific needs, and seamlessly integrate AI features into your products. By the end of the course, you'll be equipped with the skills to transform your creative ideas into reality using some of the most advanced AI tools available today.

What you’ll learn and how you can apply it

  • Recognize the fundamentals of generative AI and large language models
  • Install and set up the OpenAI SDK to integrate with APIs
  • Explore and tweak model responses using the OpenAI Playground
  • Integrate with the chat completions API for natural language conversations
  • Integrate with the Whisper APIs for audio transcription and translation
  • Use vision APIs for generating and editing images
  • Use embeddings to train machine learning models

This live event is for you because...

  • You’re curious about the capabilities of generative AI models and would like to explore the capabilities of the OpenAI models.
  • You’re an engineer who’s interested in integrating generative AI solutions into your products.
  • You’re a product manager with technical skills who wants to use generative AI to improve your products.

Prerequisites

  • A computer with OpenAI platform and OpenAI Playground accounts (necessary to participate in exercises)
  • A level of comfort with programming in Python
  • Familiarity with REST endpoints

Recommended follow-up:

Schedule

The time frames are only estimates and may vary according to how the class is progressing.

Introducing the OpenAI Playground (30 minutes)

  • Hands-on exercises: Explore chat and legacy completions; control responses using parameters; configure models
  • Group discussion: The effects of different model parameters

Integrating with OpenAI APIs (35 minutes)

  • Presentation: Exploring available APIs; understanding tokens and API pricing; choosing the right OpenAI model for your use case
  • Hands-on exercises: Install the OpenAI SDK; generate keys and make API requests
  • Break

Exploring the chat and audio APIs (60 minutes)

  • Hands-on exercises: Structure requests and parse responses to the Chat Completions API; simulate conversations and provide context; generate almost deterministic responses; stream chat responses; perform transcription and translation using Whisper; convert text to speech; evaluate transcription results
  • Group discussion: Use cases of chat and audio APIs
  • Break

Exploring image APIs and embeddings (55 minutes)

  • Hands-on exercises: Generate images with DALL-E; edit images; explore vision APIs with GPT-4; explore image interpretation and reasoning
  • Presentation: Understanding word embeddings; importance of embeddings in NLP
  • Hands-on exercises: Generate embeddings using OpenAI; explore embeddings in lower dimensional space; train ML model using generated embeddings
  • Q&A

Your Instructor

  • Janani Ravi

    Janani Ravi is cofounder of Loonycorn, a team dedicated to upskilling IT professionals. She’s been involved in more than 100 online courses in data analytics, feature engineering, and machine learning. Previously, Janani worked at Google, Flipkart, and Microsoft. She completed her studies at Stanford.