sentence-transformers-all-mpnet-base-v2
Version: 1
HuggingFaceLast updated August 2025
sentence-transformers/all-mpnet-base-v2 powered by Hugging Face

Send Request

You can use cURL or any REST Client to send a request to the Azure ML endpoint with your Azure ML token.
curl <AZUREML_ENDPOINT_URL> \
    -X POST \
    -d '{"model":"sentence-transformers/all-mpnet-base-v2","input":"What is Deep Learning?"}' \
    -H "Authorization: Bearer <AZUREML_TOKEN>" \
    -H "Content-Type: application/json"

Supported Parameters

  • model (string): ID of the model to use, in this case it should default to sentence-transformers/all-mpnet-base-v2.
  • input (string or array): Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. The input must not exceed the max input tokens for the model (8192 tokens for all embedding models), cannot be an empty string, and any array must be 2048 dimensions or less.
  • dimensions (integer, optional): The number of dimensions the resulting output embeddings should have.
  • encoding_format (string, optional): The format to return the embeddings in. Can be either "float" or "base64". Defaults to "float".
  • user (string, optional): A unique identifier representing your end-user.
You can find the whole specification in the Text Embeddings Inference OpenAPI Specification or in the OpenAI Embeddings API Specification , or alternatively in the endpoint /openapi.json for the current Azure ML Endpoint.

Example payload

{
  "model": "sentence-transformers/all-mpnet-base-v2",
  "input": "What is Deep Learning?",
  "encoding_format": "float"
}
Model Specifications
LicenseApache-2.0
Last UpdatedAugust 2025
ProviderHuggingFace