VoyageAI by MongoDB: voyage-code-4
- by mongodb
- mongodb/voyage-code-4
voyage-code-4 is a code embedding model from Voyage AI, a MongoDB company. It is designed for coding agents and code retrieval, with Matryoshka embeddings at 2048t voyage-code-4 here: [mongodb.com/products/platform/ai-search-and-retrieval/models](https://www.mongodb.com/products/platform/ai-search-and-retrieval/models?utm_source=openrouter&utm_medium=referral)
What the numbers mean
- Context window32,000 tokens
- How much the model can read in one request, counting your prompt, any files and the conversation so far. That is about 24,000 words, or 48 pages.
- Max output28,800 tokens
- The longest single reply it can write: about 22,000 words.
- Input price$0.12 per million tokens
- What you pay for everything the model reads. A 1,000-word prompt costs less than a cent.
- Output priceFree
- What you pay for everything the model writes. Output usually costs more than input. A 500-word answer costs nothing.
- Modalitiestext in, embeddings out
- The kinds of content it accepts and the kinds it produces. A model that takes images in can read a screenshot; one that only puts text out cannot draw.