Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Embeddings

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.

Create embeddings
$ openai embeddings create
POST/embeddings
ModelsExpand Collapse
create_embedding_response: object { data, model, object, usage }
embedding: object { embedding, index, object }

Represents an embedding vector returned by embedding endpoint.

embedding_model: "text-embedding-ada-002" or "text-embedding-3-small" or "text-embedding-3-large"