
VoyageAI by MongoDB: voyage-code-4
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/modelsOpens in new tab
Providers
This model is hosted by one provider. OpenRouter forwards every request without routing.
| $0.12 | 0.29s |
- Input $0.120.29s latency100.00% uptime
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
voyage-code-4 — Price history
| $0.120 | $0.00 | 0.0% | 100.0% |
- Effective in $0.120 / Effective out $0.00Token share100.0%
Performance
Latency is how long it takes to return the full response (lower is better).
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Not currently available through EU in-region routing. In-region routing docs
Frequently asked questions
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
voyage-code-4 costs $0.12/M tokens.
voyage-code-4 accepts up to 32,000 tokens per input. Longer text has to be split into multiple inputs.
voyage-code-4 accepts text as input and returns embedding vectors.
voyage-code-4 is served by 1 provider on OpenRouter: Voyage AI by MongoDB.
voyage-multimodal-3.5, voyage-4-lite, voyage-4 and 1 more are other embedding models from MongoDB.
voyage-code-4 was released on August 13, 2026.