Return the embedding vectors for given text prompts. The method makes a REST API call to the /embeddings route on the given endpoint.
Deprecated: This API is deprecated. Use the OpenAI API instead. See migration guide.
post/embeddings
Request
- Base URLhttps://{resource}.services.ai.azure.com/models
- URLhttps://{resource}.services.ai.azure.com/models/embeddings
- Auth
- API key in header api-key
- or OAuth 2Implicit: https://login.microsoftonline.com/common/oauth2/v2.0/authorizeScopes: https://cognitiveservices.azure.com/.default
Query parameters
api-versionstring required
The API version to use for this operation.
Headers
extra-parameters'error' | 'drop' | 'pass-through'
Controls what happens if extra parameters, undefined by the REST API, are passed in the JSON request payload. This sets the HTTP request header extra-parameters.
Request body
Response
The request has succeeded.
Changes
No recorded changes to this operation across all 8 revisions of this API.