curl --request POST \
--url https://{subdomain}.domo.com/api/ai/v1/embedding/text \
--header 'Content-Type: application/json' \
--header 'X-DOMO-Developer-Token: <api-key>' \
--data '
{
"input": [
"This is a sample text for generating embeddings."
]
}
'{
"embeddings": [
[
0.1,
0.2,
0.3,
0.4,
0.5
]
],
"modelId": "domo.domo_ai.domo-embed-text-multilingual-v1:cohere"
}"<string>"Text Embeddings
Generate text embeddings based on the given text input.
POST
/
api
/
ai
/
v1
/
embedding
/
text
curl --request POST \
--url https://{subdomain}.domo.com/api/ai/v1/embedding/text \
--header 'Content-Type: application/json' \
--header 'X-DOMO-Developer-Token: <api-key>' \
--data '
{
"input": [
"This is a sample text for generating embeddings."
]
}
'{
"embeddings": [
[
0.1,
0.2,
0.3,
0.4,
0.5
]
],
"modelId": "domo.domo_ai.domo-embed-text-multilingual-v1:cohere"
}"<string>"Authorizations
Body
application/json
Text Embedding AI Service request.
Text Embedding AI Service Request.
The input text to embed.
The ID of the model to use for Text Embedding. The specified model must be configured for the Text Embedding AI Service by an Admin.
Additional model-specific configuration parameter key-value pairs.
Show child attributes
Show child attributes