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-foundry/model-inference/includes/use-image-embeddings/rest.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,15 @@ To use embedding models in your application, you need:
33
33
To use the text embeddings, use the route `/images/embeddings` appended to your base URL along with your credential indicated in `api-key`. `Authorization` header is also supported with the format `Bearer <key>`.
34
34
35
35
```http
36
-
POST https://<resource>.services.ai.azure.com/models/images/embeddings
36
+
POST https://<resource>.services.ai.azure.com/models/images/embeddings?api-version=2024-05-01-preview
37
37
Content-Type: application/json
38
38
api-key: <key>
39
39
```
40
40
41
41
If you configured the resource with **Microsoft Entra ID** support, pass you token in the `Authorization` header:
42
42
43
43
```http
44
-
POST https://<resource>.services.ai.azure.com/models/images/embeddings
44
+
POST https://<resource>.services.ai.azure.com/models/images/embeddings?api-version=2024-05-01-preview
45
45
Content-Type: application/json
46
46
Authorization: Bearer <token>
47
47
```
@@ -52,7 +52,7 @@ To create image embeddings, you need to pass the image data as part of your requ
0 commit comments