Skip to content
masterclass Buddy

AI & ML · Concept

Classification

An embedding is a vector representation of data such as text. Similar data tends to produce vectors that are closer together, which makes embeddings useful for classification and other tasks.

Last updated

Syntax

client.embeddings.create({ model, input })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Tokens
  • Model index
  • Embeddings guide
  • Classification

Source: Key concepts | OpenAI API. Checked 2026-11-03.