Embedding API
The Embedding API generates vector representations of text for search, clustering, and semantic analysis.
Overview
Use the Embedding API to convert text into high-dimensional vectors for similarity search and machine learning tasks.
Endpoint
POST https://api.ketivee.com/v1/embedding
Request
{
"input": "Find me similar documents.",
"model": "embedding-v1"
}
Response
{
"data": {
"embedding": [0.12, 0.98, ...]
}
}
Example
fetch('https://api.ketivee.com/v1/embedding', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
input: 'Find me similar documents.',
model: 'embedding-v1'
})
})
.then(res => res.json())
.then(console.log);