voyage-code-4
Code-retrieval embedding built for coding agents.
voyage-code-4 is a code embedding model from Voyage AI (a MongoDB company), designed for coding agents and code retrieval, with Matryoshka embeddings at 2048, 1024, 512 and 256 dimensions.
- Provider
- Voyage AI (MongoDB)
- Type
- Embedding model
- Released
- Aug 13, 2026
- Context window
- 32K tokens
- Price
- $0.12 per 1M input tokens
- Input
- text
- Output
- embedding
- Open weights
- No
Best for
- Coding
- Agents
Strengths
- Tuned for code search
- Matryoshka dimensions
More from Voyage AI (MongoDB)
- voyage-4-large — Voyage AI (MongoDB). Voyage’s highest-quality general and multilingual retrieval embedding.
- voyage-multimodal-3.5 — Voyage AI (MongoDB). Embeds text, images and interleaved content into one space.