Embeddings
Wandeln Sie Text in Vektordarstellungen um — für semantische Suche, Clustering, Klassifizierung und weitere Anwendungen.
Endpunkt
POST https://api.ofox.ai/v1/embeddingsAnfrageparameter
Anfragebeispiele
cURL
Terminal
curl https://api.ofox.ai/v1/embeddings \
-H "Authorization: Bearer $OFOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/text-embedding-3-small",
"input": "OfoxAI ist ein LLM Gateway"
}'Antwortformat
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [0.0023, -0.0091, 0.0156, ...]
}
],
"model": "openai/text-embedding-3-small",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}Verfügbare Modelle
Zuletzt aktualisiert am