Embeddings
BYOK embeddings with 30-day Redis cache. OpenAI, Cohere, Voyage AI.
POST /v2/embed accepts a single string or an array of strings and returns a list of embedding vectors. Results are cached in Redis for 30 days.
Providers
- OpenAI -
text-embedding-3-smallT1 ($0.02/1M) ·text-embedding-ada-002T2 ($0.10/1M) ·text-embedding-3-largeT3 ($0.13/1M) - Cohere -
embed-multilingual-v3.0T2 ($0.10/1M) - Voyage AI -
voyage-3-liteT1 ($0.02/1M) ·voyage-3T2 ($0.06/1M) ·voyage-large-2T3 ($0.12/1M)
Cache
Cache key: SHA-256 of {sorted(inputs), provider, model, encoding_format}. Cached for 30 days. The cached: true field in the response tells you if the result came from cache (no provider call made, zero cost).
{
"input": "text or array of texts",
"provider": "openai | cohere | voyage",
"model": "text-embedding-3-small",
"encoding_format": "float | base64",
"dimensions": 1536
}