model comparison

vs

voyage-code-4 vs voyage-4-large

compared on price, indexing cost, vector size and input limits.

the short answer

  • Voyage Code 4 and Voyage 4 Large cost the same, $0.12/M tokens.
  • both take up to 32k tokens per text.

side-by-side specs

specvoyage-code-4voyage-4-large
providerVoyage AIVoyage AI
price$0.12/M$0.12/M
max input32k tokens32k tokens
default dimensions1,0241,024
storage per 1M vectors4.1 GB4.1 GB
acceptstext, codetext
multilingual—yes
weightsclosedclosed

same work, both models

workloadvoyage-code-4voyage-4-large
index 10,000 help articles~800 tokens each, 8M tokenssame$0.96$0.96
index a 1M-line codebase~10 tokens a line, 10M tokens$1.20$1.20
embed 1M search queries~20 tokens each, 20M tokens$2.40$2.40

at listed rates. re-embedding an index costs the same again.

when to pick which

voyage-code-4

Voyage Code 4 is Voyage AI's code-retrieval embedding model, trained so natural-language queries such as bug reports find the right code for coding agents. it succeeds voyage-code-3 at a third lower price.

pick it if

  • you index source code for coding agents or natural-language code search
  • you want Voyage's reported 27.54% gain over voyage-code-3 on agentic retrieval
  • you need 256-2048 Matryoshka dimensions to trade index size for accuracy

skip it if

  • your corpus is general prose; voyage-4-lite costs a sixth as much
  • you need open weights to embed code on your own hardware

voyage-4-large

Voyage 4 Large is the top tier of Voyage AI's Voyage 4 embedding series, a mixture-of-experts model for general-purpose and multilingual retrieval. it sits above voyage-4 and voyage-4-lite, and all three share one embedding space.

pick it if

  • retrieval quality matters more than cost per token
  • you want to embed documents with it and run queries on voyage-4-lite
  • you need multilingual retrieval or 256-2048 dimension embeddings

skip it if

  • voyage-4 or voyage-4-lite is accurate enough at a lower price
  • you are indexing source code; voyage-code-4 targets code retrieval

faq

which is cheaper, Voyage Code 4 or Voyage 4 Large?

Voyage Code 4 and Voyage 4 Large cost the same, $0.12/M tokens.

which handles longer documents?

both take up to 32k tokens per text.

can i switch from Voyage Code 4 to Voyage 4 Large without re-indexing?

no. vectors from different embedding models are not comparable, so a switch means re-embedding the whole corpus.

try either model

switch between models inside the same octomind session.

prices from the catalog of 2026-11-18