We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
VoyageAI by MongoDB: voyage-4-lite
voyageai/voyage-4-liteTry VoyageAI by MongoDB: voyage-4-lite now
Runs on your balance at the prices above. New accounts start with free usage.
Results will appear here.
Settings
VoyageAI by MongoDB: voyage-4-lite at a glance
- Input price is close to the median of 34 Embeddings models.
- Context window of 32,000 tokens, enough for long documents and multi-turn conversations.
About VoyageAI by MongoDB: voyage-4-lite
voyage-4-lite is an embedding model from Voyage AI, the company behind the Voyage family of retrieval models, now part of MongoDB. It sits in the embeddings category rather than the chat category, which means it does not generate text. Instead, it turns text into vectors that you store and compare. It is positioned as a lightweight, general-purpose model, built for low latency and cost rather than maximum accuracy on the hardest retrieval problems.
The model accepts text as input and returns embeddings as output. Its context length is 32,000 tokens, and the maximum output is 28,800, so long documents can be embedded without splitting them into many small chunks. Voyage AI trained it with Matryoshka learning and quantization-aware training, which is what allows a single model to produce embeddings at 2048, 1024, 512, and 256 dimensions. You choose the dimension that fits your storage and latency budget, and shorter vectors remain usable rather than collapsing.
Those properties point to a fairly specific set of uses. Semantic search over a document collection, where you embed chunks once and query them with an embedded question, is the core case. The same vectors support retrieval augmented generation, deduplication and near-duplicate detection, clustering and topic grouping, and classification or routing when you compare an input against labelled examples. Because the model handles 32,000 tokens of context, you can embed whole pages or long passages directly, which suits code search, support ticket triage, and internal knowledge bases. The lower dimension options matter when you are storing millions of vectors and want to keep the index small.
You call it through api14's OpenAI-compatible API using the model id "voyageai/voyage-4-lite". Because the endpoint follows the OpenAI embeddings shape, existing clients and libraries work with only the base URL and model id changed. The model exposes no additional supported parameters, so requests rely on the standard fields the embeddings endpoint accepts, such as the input text and the model id. There is no sampling, temperature, or tool configuration to set, since none of that applies to an embedding model.
If your task is text generation, summarisation, or reasoning, this is the wrong model and a chat model will fit better. voyage-4-lite is also described as lightweight and general purpose, so if you need the strongest retrieval quality on specialised or highly technical corpora, a larger Voyage embedding model is the more likely choice.
How to call the VoyageAI by MongoDB: voyage-4-lite API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "voyageai/voyage-4-lite".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.embeddings.create({
"model": "voyageai/voyage-4-lite",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
Specifications
- Context length
- 32,000
- Max output
- 28,800
- Input
- text
- Output
- embeddings
Requests on api14 · last 7 days
VoyageAI by MongoDB: voyage-4-lite: frequently asked questions
- How much does the VoyageAI by MongoDB: voyage-4-lite API cost?
- VoyageAI by MongoDB: voyage-4-lite costs Input $0.07 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of VoyageAI by MongoDB: voyage-4-lite?
- VoyageAI by MongoDB: voyage-4-lite reads up to 32,000 tokens per request: prompt, history and documents together. It writes up to 28,800 output tokens per response.
- What can VoyageAI by MongoDB: voyage-4-lite do?
- VoyageAI by MongoDB: voyage-4-lite accepts text and returns embeddings.
- How do I call VoyageAI by MongoDB: voyage-4-lite from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "voyageai/voyage-4-lite". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to VoyageAI by MongoDB: voyage-4-lite?
- Comparable Embeddings models at a similar price: OpenAI: Text Embedding 3 Small, Qwen: Qwen3 Embedding 4B, Perplexity: Embed V1 4B. Each runs through the same API key, so switching is one string.
VoyageAI by MongoDB: voyage-4-lite community
New topicThis community has no topics yet. Open the first one about VoyageAI by MongoDB: voyage-4-lite.