Skip to content

Embeddings

POST https://api.bve.me/v1/embeddings

Requires Authorization: Bearer sk-bve-YOUR_KEY.

This endpoint proxies directly to Fuelix /embeddings. The request body and response shape follow the OpenAI Embeddings API.

{
"model": "text-embedding-3-small",
"input": "The quick brown fox"
}
FieldTypeRequiredDescription
modelstringYesEmbedding model ID
inputstring | arrayYesText to embed
encoding_formatstringNofloat or base64 (default: float)
dimensionsintegerNoOutput dimensions (model-dependent)
userstringNoEnd-user identifier
{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [0.0023, -0.0089, 0.0141, ...]
}
],
"model": "text-embedding-3-small",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
Terminal window
curl https://api.bve.me/v1/embeddings \
-H "Authorization: Bearer sk-bve-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-3-small",
"input": "The quick brown fox"
}'
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'sk-bve-YOUR_KEY',
baseURL: 'https://api.bve.me/v1',
});
const response = await client.embeddings.create({
model: 'text-embedding-3-small',
input: 'The quick brown fox',
});
console.log(response.data[0].embedding);
HeaderDescription
X-Request-IdUUID for this request
X-BVE-LatencyGateway latency in milliseconds