Body Required
input string | array[string] Required
-
encoding_format string
Values are
float
orbase64
. Default value isfloat
.
POST /v1/embeddings
curl \
-X POST https://api.rimunace.xyz/v1/embeddings \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"string","input":"string","encoding_format":"float"}'
Request examples
{
"model": "string",
"input": "string",
"encoding_format": "float"
}
Response examples (200)
{
"embedding": [
42.0
],
"remaining_credits": 42.0
}