Embeddings
POST /v1/embeddings turns a string, or a list of strings, into vectors. Texts that mean similar things get vectors that are close together.
The samples use the OpenAI SDK set up as in the Quickstart.
Options
Use the same model to embed your documents and your queries. Vectors from different models can’t be compared.
Billing
Embeddings are charged for input tokens only. usage.prompt_tokens shows how many.