The Embeddings API turns text into vectors you can use for semantic search, retrieval, clustering, and ranking.
You can embed multiple strings in one API call:
The returned data array matches the order of your input array.
Use GET /v1/models to inspect available embedding models and their pricing. For embeddings, the most useful fields are:
model_typecontext_lengthpricingis_freeThe official SDKs all expose first-class embeddings resources:
client.embeddings.create(...)client.embeddings.create(...)client.Embeddings.Create(...)client.embeddings().create(...)