POST
/
api
/
v1
/
client
/
txt2embedding
Text to Embedding
curl --request POST \
  --url http://localhost:8000/api/v1/client/txt2embedding \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<string>",
  "model": "Bge_M3_FP16",
  "return_result_in_response": true,
  "webhook_url": "<string>"
}
'
{
  "data": {
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Authorizations

Authorization
string
header
required

API key obtained from the ModelBeam dashboard

Body

application/json
input
required

Text(s) to embed. Max 2048 items, 8192 tokens per input, 300K total tokens

model
string
required
Example:

"Bge_M3_FP16"

return_result_in_response
boolean

Return embeddings directly instead of via polling

webhook_url
string
Maximum string length: 2048

Response

Embedding job created

data
object