API Documentation
Chat Completions
Embeddings
Completions
Other APIs
Embeddings
Embeddings
POST
/
embeddings
Copy
curl https://gateway.obiguard.ai/v1/embeddings \
-H "x-obiguard-api-key: $OBIGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "The food was delicious and the waiter...",
"model": "text-embedding-ada-002",
"encoding_format": "float"
}'
Copy
{
"data": [
{
"index": 123,
"embedding": [
123
],
"object": "embedding"
}
],
"model": "<string>",
"object": "list",
"usage": {
"prompt_tokens": 123,
"total_tokens": 123
}
}
Authorizations
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Copy
curl https://gateway.obiguard.ai/v1/embeddings \
-H "x-obiguard-api-key: $OBIGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "The food was delicious and the waiter...",
"model": "text-embedding-ada-002",
"encoding_format": "float"
}'
Copy
{
"data": [
{
"index": 123,
"embedding": [
123
],
"object": "embedding"
}
],
"model": "<string>",
"object": "list",
"usage": {
"prompt_tokens": 123,
"total_tokens": 123
}
}
Assistant
Responses are generated using AI and may contain mistakes.