Using OpenAI APIs: Fine-tuning Models, the Assistants API, & Embeddings

Explore fine-tuning AI models like GPT-3 and 4 with OpenAI APIs. Learn to utilize the Assistants API and understand the creation and comparison of text embeddings.

  • Skill level

  • Time to complete

    Approx. 1 hour
  • Certificate of completion


About this course

Fine-tuning models is a critical aspect of leveraging pre-trained artificial intelligence models to suit specific tasks or domains. OpenAI allows developers to fine-tune models like GPT-3 and 4, enabling customization for particular applications. You will begin this course by creating prompt-completion pairs for fine-tuning, running a fine-tuning job, and observing the model's performance. You will send prompts based on the training data and examine the model's attempt to answer questions. Next, you will dive into connecting with the Assistants API programmatically. You will create an assistant by providing a role description and model, and you will initiate a thread to simulate user-assistant conversations. You will also upload files and query the assistant based on information contained in the files. Finally, you will explore creating and comparing text embeddings, efficient numerical representations of text that capture meaning and semantics of the text. You will learn how embeddings of similar words are numerically close to one another and how embeddings can be used as a preprocessing technique to represent text for other machine learning applications such as clustering and classification.

Learning objectives

  • Discover the key concepts covered in this course
  • Create prompt completion pairs for fine-tuning
  • Run a fine-tuning job

How it works

Expert-led videos

In this course, you'll watch videos created by industry-leading experts for some of the biggest tech companies in the world. They'll cover key concepts, go through sample applications, prepare you for industry certifications, and more. Watch on any device — whenever and wherever you want — to learn at your own pace.

Using OpenAI APIs: Fine-tuning Models, the Assistants API, & Embeddings course reviews

  • Very well put together as usual. I learn so much from each experience with Codecademy. I can't explain how satisfied I am with this institution.
    David W
    Verified Learner
  • Everything Codecademy offers is useful for all software developers.
    Fidan M
    Verified Learner
  • I thought that I would never be able to learn to code but Codecademy has made it very easy. I just love it!
    Adyan H
    Verified Learner

Our learners work at

  • Google Logo
  • Meta Logo
  • Apple Logo
  • EA Logo
  • Amazon Logo
  • IBM Logo
  • Microsoft Logo
  • Reddit Logo
  • Spotify Logo
  • Uber Logo
  • YouTube Logo
  • Instagram Logo

6 In-Demand AI Skills & How to Learn Them

Cory Stieg
May 21, 2024

Hiring tech pros with AI skills is more difficult than any other area of tech. Simply put, the growing demand for AI experts outweighs the supply — organizations are eager to incorporate AI into their businesses, but there’s a limited pool of AI talent to choose from. In fact, in Skillsoft’s IT Skills and Salary Report 2023, 30% of IT decision-makers report having the most difficulty hiring qualified AI professionals.

So, what gives? Tech teams and job seekers are certainly up for the challenge of learning new skills. But keeping pace with rapidly changing AI technology and discerning which skills are worth investing in can be difficult for individuals. The good news: Learning in-demand AI skills can boost your earning potential and help you stand out in the job market.

Learning about AI with Codecademy is one of the smartest things you can do to further your career in tech. Our courses are interactive and utilize industry-leading AI tools, so you can get hands-on experience working with AI systems as you learn about the concepts that power them. And with our career paths, you can build a portfolio of impressive projects that show employers you can apply AI skills to real-world scenarios.

If you’re not sure where to begin, here are the most in-demand AI concepts, programming languages, frameworks, and systems as well as the courses and paths to start learning these skills.

Continue reading

Join over 50 million learners and start Using OpenAI APIs: Fine-tuning Models, the Assistants API, & Embeddings today!


Unlock additional features with a paid plan

  • Portfolio projects

    Create professional projects you can share with recruiters to showcase your skills and experience.
  • Job-readiness checker

    Evaluate how well you meet the requirements for any job description based on your skills and experience.
  • Certificate of completion

    Earn a document you can share with your network to prove that you’ve completed this course.