---
id: "voyageai/voyage-code-4"
also: ["voyageai/voyage-code-4-20260812"]
card_usd_per_m: "0.12 in, 0.0 out, at voyageai"
cheapest_list_usd_per_m: "0.12 in, 0.0 out, at voyageai on openrouter"
context: 32000
max_output: 28800
input: ["text"]
output: ["embeddings"]
released: "2026-08-13"
endpoints: 1
gateways: "openrouter (1)"
no_training: 0
trains: 0
retains_prompts: 0
---
# VoyageAI by 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 2048, 1024, 512, and 256...