Voyage AI / voyageai/voyage-code-4

Voyage Code 4 - access through LLMTR

Voyage Code 4 succeeds Voyage Code 3 and is trained specifically for the retrieval coding agents need. Its training corpus is mined from closed pull requests, so the model learns to start from a vague symptom such as a bug report and locate the file that needs to change - exactly the step where grep's "what's broken" queries fall short. It supports 256, 512, 1024 and 2048 dimensional output (Matryoshka learning) alongside float32, int8, uint8 and binary quantization; the 32,000-token window covers most source files in a single pass. It costs a third less per million tokens than Voyage Code 3.

Technical specifications

Canonical IDvoyageai/voyage-code-4
ProviderVoyage AI
Context window32,000 tokens
OperationsEMBEDDINGS
Modalitiestext, embedding

Pricing

An 8% platform margin applies to credit top-ups; model usage prices are not separately marked up.

OperationMetricUnitPrice
EMBEDDINGSINPUT_TEXTPER_1M_TOKENS$0.120000

Example usage

With existing OpenAI SDK flows, change only the base URL and model identifier.

curl https://llmtr.com/v1/chat/completions \
  -H "Authorization: Bearer llmtr-your_key" \
  -H "Content-Type: application/json" \
  -d '{"model":"voyageai/voyage-code-4","messages":[{"role":"user","content":"Hello"}]}'

Related models