Generate Embeddings
Generate Embeddings From Text.
Last updated
curl -X GET '{API_URL}/api/v1/images/generation' \
-H 'Authorization: Bearer {TOKEN/KEY}' \
-H 'Content-Type: application/json' \
-d '{
"model": "WhereIsAI/UAE-Large-V1",
"input": [
"Bananas are berries, but strawberries are not, according to botanical classifications.",
"The Eiffel Tower in Paris was originally intended to be a temporary structure."
]
}' "model": "WhereIsAI/UAE-Large-V1",
"data": [
{
"embedding": [
-0.373046875,
...,
-0.10302734375
],
"index": 0,
"object": "embedding"
},
{
"embedding": [
-0.50390625,
...,
-0.03564453125,
0.01409912109375
],
"index": 1,
"object": "embedding"
}
],
"object": "list",
"usage": {
"completion_tokens": 0,
"prompt_tokens": 33,
"total_tokens": 33,
"completion_tokens_details": null,
"prompt_tokens_details": null
}
}