Skip to main content
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"
}

Documentation Index

Fetch the complete documentation index at: https://domoinc-jkreitzman-patch-1.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-DOMO-Developer-Token
string
header
required

Body

application/json

Text Embedding AI Service request.

Text Embedding AI Service Request.

input
string[]

The input text to embed.

model
string

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.

dimensions
integer<int32>
modelConfiguration
object

Additional model-specific configuration parameter key-value pairs.

requestId
string<uuid>

Response

EmbeddingAIResponse The generated embeddings and model token usage information.

embeddings
number<double>[][]
modelId
string
modelProviderUsage
object