Body Required
-
The ID of the model to use for generating embeddings.
input string | array[string] | array[number] Required
The input text to generate embeddings for. Can be a string, an array of strings, or an array of token integers.
-
user string
A unique identifier representing your end-user, which can help the API to monitor and detect abuse.
POST /v1/embeddings
curl \
-X POST https://api.rimunace.xyz/v1/embeddings \
-H "Authorization: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"string","input":"string","user":"string"}'
Request examples
{
"model": "string",
"input": "string",
"user": "string"
}
Response examples (200)
{
"object": "list",
"data": [
{
"object": "embedding",
"embedding": [
42.0
],
"index": 42
}
],
"model": "string",
"usage": {
"prompt_tokens": 42,
"total_tokens": 42
}
}
Response examples (400)
{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}
Response examples (401)
{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}
Response examples (429)
{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}