Learn how to get an embedding vector for a given text input.
client.embeddings.create
to generate an embedding for some input text, passing in a model name and input string:
data
key, as well as some metadata:
input
option:
response.data
key will contain an array of objects for each input string you provide: