Get sentence embedding vector using API?

The API return a number that shows the similarity of two sentences between 0 and 1, but I want to send the text to the API and get its embedding vector. Is there a way to do it?