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
voyageai/voyage-4Try VoyageAI by MongoDB: voyage-4 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 at a glance
- Input price is 200% 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
voyage-4 is a general-purpose embedding model from Voyage AI, the company behind the Voyage embedding family that is now part of MongoDB. It is listed on api14 under the model id voyageai/voyage-4 and sits in the embeddings category, so it is built to turn text into vectors rather than to generate chat responses. If you are choosing an embedding model for a retrieval or search system, this is the kind of model you would evaluate alongside other general-purpose embedding options.
The model accepts text as input and returns embeddings as output. It is described as general-purpose and multilingual, and it is optimized for retrieval and search as well as other AI applications. It supports embeddings at 2048, 1024, 512, and 256 dimensions, along with multiple quantization options, which lets you trade vector size against storage and search characteristics depending on your index. The context length is 32000 tokens, and the maximum output is 28800, so long documents can be embedded without splitting them into many small pieces.
Those capabilities point to a fairly specific set of uses. Retrieval and search are the primary ones: indexing a document collection, embedding queries, and comparing them by vector similarity. Because the model is multilingual, it also fits collections and queries that mix languages, and because it supports several output dimensions and quantization options, it can serve both a high-fidelity index and a smaller, more compact one. Common applications include retrieval augmented generation pipelines, semantic search over internal documentation, deduplication or clustering of text, and recommendation or classification systems that operate on embeddings rather than generated text.
You call it through api14's OpenAI-compatible API using the model id voyageai/voyage-4, sending text and receiving embeddings in the response. The model's supported parameters list is empty, so you should not expect to pass sampling controls such as temperature or top_p; the request is essentially the input text plus the model id. Dimension and quantization choices are part of the model's embedding behavior rather than request parameters exposed here, so check the current API reference for how those are selected before you build around a specific vector size.
One thing to keep in mind is that this is an embedding model, not a chat or completion model. If your task is generating text, summarizing, or holding a conversation, a text generation model is the right fit, and voyage-4 would only be useful as a supporting component in a retrieval pipeline. It also takes text only, so inputs in other modalities are out of scope. Within those bounds, it is a reasonable candidate for search and retrieval work where you want control over embedding dimensions.
How to call the VoyageAI by MongoDB: voyage-4 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".
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",
"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: frequently asked questions
- How much does the VoyageAI by MongoDB: voyage-4 API cost?
- VoyageAI by MongoDB: voyage-4 costs Input $0.21 / 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?
- VoyageAI by MongoDB: voyage-4 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 do?
- VoyageAI by MongoDB: voyage-4 accepts text and returns embeddings.
- How do I call VoyageAI by MongoDB: voyage-4 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "voyageai/voyage-4". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to VoyageAI by MongoDB: voyage-4?
- Comparable Embeddings models at a similar price: OpenAI: Text Embedding 3 Large (batch), OpenAI: Text Embedding Ada 002 (batch), Perplexity: Embed V1 4B. Each runs through the same API key, so switching is one string.
VoyageAI by MongoDB: voyage-4 community
New topicThis community has no topics yet. Open the first one about VoyageAI by MongoDB: voyage-4.