Skip to main content
POST
/
openai
/
deployments
/
{deployment-id}
/
embeddings
Azure OpenAI Compatible Embeddings
curl --request POST \
  --url http://localhost:8080/openai/deployments/{deployment-id}/embeddings \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "input": "<string>",
  "encoding_format": "float",
  "dimensions": 123
}'
{
  "index": 123,
  "object": "<string>",
  "embedding": [
    123
  ]
}

Path Parameters

deployment-id
string
required

Azure deployment ID

Body

application/json
model
string
required

Model identifier in 'provider/model' format

input
required

Input text or tokens to embed

encoding_format
enum<string>

The format to return the embeddings in.

Available options:
float,
base64
dimensions
integer

The number of dimensions the resulting output embeddings should have.

Response

200 - application/json

Azure OpenAI-compatible embeddings response

index
integer
object
string
embedding