Generating a single embedding
Useclient.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:
JSON
Generating multiple embeddings
You can also pass an array of input strings to theinput option:
response.data key will contain an array of objects for each input string you provide:
JSON