Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions pages/generative-apis/api-cli/using-embeddings-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ Get a vector representation of a given input that can be easily consumed by mach
**Request sample:**

```
curl --request POST \
--url https://api.scaleway.ai/v1/embeddings \
--header 'Authorization: Bearer ${SCW_SECRET_KEY}' \
--header 'Content-Type: application/json'
--data '{
"model": "sentence-t5-xxl",
"input": "<string>"
curl https://api.scaleway.ai/v1/embeddings \
-H "Authorization: Bearer $SCW_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bge-multilingual-gemma2",
"input": "Here is a sentence to embbed as a vector"
}'
```

Expand Down Expand Up @@ -54,4 +53,4 @@ If you have a use case requiring one of these unsupported parameters, please [co

<Message type="note">
Check our [Python code examples](/generative-apis/how-to/query-embedding-models/#querying-embedding-models-via-api) to query embedding models using Scaleway's Embeddings API.
</Message>
</Message>