You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/reference/reference-model-inference-images-embeddings.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,14 @@ POST /images/embeddings?api-version=2024-04-01-preview
30
30
| --- | --- | --- | --- | --- |
31
31
| api-version | query | True | string | The version of the API in the format "YYYY-MM-DD" or "YYYY-MM-DD-preview". |
32
32
33
+
## Request Header
34
+
35
+
36
+
| Name | Required | Type | Description |
37
+
| --- | --- | --- | --- |
38
+
| extra-parameters || string | The behavior of the API when extra parameters are indicated in the payload. Using `allow` will make the API to pass the parameter to the underlying model. Use this value when you want to pass parameters that you know the underlying model can support. Using `drop` will make the API to drop any unsupported parameter. Use this value when you need to use the same payload across different models, but one of the extra parameters may make a model to error out if not supported. Using `error` will make the API to reject any extra parameter in the payload. Only parameters specified int this API can be indicated, or an 400 error is returned. |
39
+
| azureml-model-deployment || string | Name of the deployment you want to route the request to. Supported for endpoints that support multiple deployments. |
40
+
33
41
## Request Body
34
42
35
43
@@ -48,7 +56,7 @@ POST /images/embeddings?api-version=2024-04-01-preview
48
56
| 200 OK |[CreateEmbeddingResponse](#createembeddingresponse)| OK |
49
57
| 401 Unauthorized |[UnauthorizedError](#unauthorizederror)| Access token is missing or invalid<br><br>Headers<br><br>x-ms-error-code: string |
50
58
| 404 Not Found |[NotFoundError](#notfounderror)| Modality not supported by the model. Check the documentation of the model to see which routes are available.<br><br>Headers<br><br>x-ms-error-code: string |
| 422 Unprocessable Entity |[UnprocessableContentError](#unprocessablecontenterror)| The request contains unprocessable content. The error is returned when the payload indicated is valid according to this specification. However, some of the instructions indicated in the payload are not supported by the underlying model. Use the `details` section to understand the offending parameter.<br><br>Headers<br><br>x-ms-error-code: string |
52
60
| 429 Too Many Requests |[TooManyRequestsError](#toomanyrequestserror)| You have hit your assigned rate limit and your request need to be paced.<br><br>Headers<br><br>x-ms-error-code: string |
53
61
| Other Status Codes |[ContentFilterError](#contentfiltererror)| Bad request<br><br>Headers<br><br>x-ms-error-code: string |
54
62
@@ -287,6 +295,7 @@ The object type, which is always "list".
287
295
288
296
### UnprocessableContentError
289
297
298
+
The request contains unprocessable content. The error is returned when the payload indicated is valid according to this specification. However, some of the instructions indicated in the payload are not supported by the underlying model. Use the `details` section to understand the offending parameter.
290
299
291
300
| Name | Type | Description |
292
301
| --- | --- | --- |
@@ -307,4 +316,4 @@ The usage information for the request.
307
316
| prompt_patches | integer | The number of image patches used by the image prompt. |
308
317
| prompt_tokens | integer | The number of tokens used by the prompt. |
309
318
| total_patches | integer | The total number of patches used by the request. |
310
-
| total_tokens | integer | The total number of tokens used by the request. |
319
+
| total_tokens | integer | The total number of tokens used by the request. |
0 commit comments