All models
Voyage AI

Voyage Code 4

Voyage AI's specialist embedding model for finding relevant code from natural-language questions or other source-code context.

Plain-English overview

What Voyage Code 4 actually is

Voyage Code 4 is tuned for code retrieval rather than general document search. It can power repository search, coding agents, duplicate discovery, and RAG systems that need to find the right symbol or implementation from a natural-language request.

Its shared Voyage 4 vector space and adjustable output size give teams options for storage and query routing. Repository structure, language mix, chunk boundaries, and generated code still need to be evaluated locally.

Good fit for

  • Repository and symbol search
  • Coding-agent retrieval
  • RAG over multilingual source-code collections

Category comparison

The facts that matter for embeddings models

These are provider-published specifications, not Cody benchmark scores. Follow the linked sources for current limits and endpoint-specific exceptions.

Embedding price
$0.12 / 1M tokens after 200M freeCurrent provider price per million input tokens or the closest published billing unit.
Input capacity
32K tokensMaximum content accepted in one embedding input, using the provider's documented token basis.
Vector dimensions
1,024 default; 256, 512, or 2,048 optionalSupported output sizes; smaller vectors reduce storage while larger vectors may preserve more information.
Accepted inputs
Code and natural-language textText, code, image, audio, video, PDF, or document-aware input supported by the endpoint.
Retrieval controls
Query/document modes, truncation, and shared Voyage 4 vector spaceQuery/document modes, task types, truncation, chunking, or other controls that shape vectors for retrieval.
Where it runs
Voyage API and MongoDB-integrated routesDirect API, cloud marketplace, private deployment, or self-hosted route documented by the provider.

Pricing & comparisons

Estimate your cost

Set your usage. Your estimate updates as you type.

Assumes 600 tokens per page, processed separately. Actual token counts vary. This covers embedding only, not storage, search, or generated answers.

Voyage Code 4

Voyage AI

Estimated total (USD)

$0.0007

For the usage above · USD · API pricing, not a subscription

Input tokens
$0.12 per 1M tokens
How this estimate works

Estimates exclude taxes, tools, cache storage/writes, free allowances and custom discounts. Image estimates cover output only, not prompt or reference-image charges. Quality modes differ by model. Unlisted settings are not treated as free.

API and provider access

Where to get Voyage Code 4

Availability

Regions and access stage

Available through the Voyage API and MongoDB-integrated retrieval workflows.

The reviewed public material does not enumerate one processing-country list; deployment region depends on the selected route.

Check live availability

Data and training

The route matters.

Voyage's public terms allow customer content to improve services unless the customer opts out. Eligible paid organizations can configure an opt-out and zero-day retention; separately negotiated enterprise terms may differ.

This is a concise reading of the cited provider material, not legal advice. A third-party gateway can have different storage, routing, training, and residency terms from the model maker's direct API.

Read the provider policy

Frequently asked questions

Voyage Code 4 FAQ

What is Voyage Code 4?

Voyage AI's specialist embedding model for finding relevant code from natural-language questions or other source-code context. Voyage Code 4 is tuned for code retrieval rather than general document search. It can power repository search, coding agents, duplicate discovery, and RAG systems that need to find the right symbol or implementation from a natural-language request.

When was Voyage Code 4 released?

Voyage Code 4 was released on August 13, 2026 according to the cited provider materials.

Where can I access Voyage Code 4?

Available through the Voyage API and MongoDB-integrated retrieval workflows. The access routes listed in this guide are Voyage AI.

How much does Voyage Code 4 cost?

$0.12 / 1M tokens after 200M free. Voyage lists a 200-million-token starter allowance and discounted batch processing. Codebase size and re-index frequency drive total cost.

Where is Voyage Code 4 available?

Available through the Voyage API and MongoDB-integrated retrieval workflows. The reviewed public material does not enumerate one processing-country list; deployment region depends on the selected route.

Is my Voyage Code 4 API data used for training?

Voyage's public terms allow customer content to improve services unless the customer opts out. Eligible paid organizations can configure an opt-out and zero-day retention; separately negotiated enterprise terms may differ. The policy belongs to the provider route and account terms, so verify it again before production use.

Price comparison

USD per million tokens for the shown API routes at standard context length. Cache and long-context rates may differ. Models without matching reviewed prices are omitted; lower cost does not mean better quality.

Input token costsper 1M tokens · USD
  1. $0.10
    Mistral Embed

    Mistral AI

  2. $0.12
    Voyage 4 Large

    Voyage AI

  3. $0.12
    Voyage Context 4

    Voyage AI

  4. $0.12
    Voyage Code 4

    Voyage AI

    This model

  5. $0.13
    text-embedding-3-large

    OpenAI

  6. $0.20
    Gemini Embedding 2

    Google