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-large
voyageai/voyage-4-largeTry VoyageAI by MongoDB: voyage-4-large 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-large at a glance
- Input price is 500% higher than 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-large
VoyageAI by MongoDB: voyage-4-large is an embedding model from Voyage AI, a provider whose models are distributed under the VoyageAI by MongoDB name. It sits in the embeddings category, which means it is built to turn text into vectors rather than to generate chat responses. If you are choosing a model for a retrieval or similarity pipeline, this is the kind of model you evaluate on embedding quality rather than on conversational ability.
The model accepts text as its only input modality and returns embeddings as its only output. It has a context length of 32,000 tokens, so a single request can cover a fairly long document or a batch of shorter passages. The provider describes it as a state-of-the-art general-purpose and multilingual embedding optimized for retrieval quality. It uses Matryoshka learning and quantization-aware training, and it supports embeddings at 2048, 1024, 512, and 256 dimensions. The maximum output is listed as 28,800, which is the ceiling on the embedding output side of a request.
Those capabilities point to a specific set of use cases. Semantic search and retrieval over a document collection is the most direct fit, since the model is tuned for retrieval quality and can embed long passages within the 32,000 token context. Multilingual corpora are also a reasonable target, given the multilingual training. Because the embeddings can be truncated to 2048, 1024, 512, or 256 dimensions, you can trade vector size against storage and search speed depending on how much precision your index needs. Clustering, deduplication, and similarity scoring over text are other natural applications, as is building a vector index that feeds a separate generation model.
You call the model through api14's OpenAI-compatible API using the model id "voyageai/voyage-4-large". Because the endpoint follows the OpenAI format, you can point an existing OpenAI client at api14 and send embedding requests without rewriting your integration. The model's supported parameters list is empty, so there are no extra request parameters to configure beyond what the standard embedding call requires. Treat the model id as the only model-specific value you need to set.
One practical constraint to keep in mind is that this model only handles text input and only produces embeddings. It cannot generate text, answer questions, or follow instructions, so any application that needs a written response requires a separate generation model alongside it. The 32,000 token context is generous for embedding work but still finite, so very large documents need to be chunked before embedding. If your task is generation rather than retrieval, a chat or completion model is the better fit.
How to call the VoyageAI by MongoDB: voyage-4-large 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-large".
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-large",
"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-large: frequently asked questions
- How much does the VoyageAI by MongoDB: voyage-4-large API cost?
- VoyageAI by MongoDB: voyage-4-large costs Input $0.42 / 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-large?
- VoyageAI by MongoDB: voyage-4-large 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-large do?
- VoyageAI by MongoDB: voyage-4-large accepts text and returns embeddings.
- How do I call VoyageAI by MongoDB: voyage-4-large from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "voyageai/voyage-4-large". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to VoyageAI by MongoDB: voyage-4-large?
- Comparable Embeddings models at a similar price: VoyageAI by MongoDB: voyage-code-4, VoyageAI by MongoDB: voyage-multimodal-3.5, OpenAI: Text Embedding 3 Large. Each runs through the same API key, so switching is one string.
VoyageAI by MongoDB: voyage-4-large community
New topicThis community has no topics yet. Open the first one about VoyageAI by MongoDB: voyage-4-large.