LiteLLMLiteLLM/ MODELS

Voyage Code 4 API Pricing

By Voyage AI · 1 providervoyage/voyage-code-4
Input
$0.12 per 1M tokens
Context
32K tokens

As of November 24, 2026, Voyage Code 4 costs $0.12 per 1M input tokens on Voyage AI. It has a 32,000-token context window.

Prices updated Checked

Voyage Code 4 pricing by provider

1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Voyage Code 4 prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputContext
Voyage AIvoyage/voyage-code-4$0.12$032K

What Voyage Code 4 costs in practice

Embedding 10,000 documents of 500 tokens each

Voyage AI$0.60

Use Voyage Code 4 with LiteLLM

Call Voyage Code 4 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/embeddings. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import embedding

response = embedding(
    model="voyage/voyage-code-4",
    input=["hello world"],
)
Proxy config.yaml
model_list:
  - model_name: voyage-code-4
    litellm_params:
      model: voyage/voyage-code-4
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/embeddings \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "voyage-code-4",
    "input": "hello world"
  }'

Voyage Code 4 FAQ

How much does Voyage Code 4 cost?

Voyage Code 4 costs $0.12 per 1M input tokens on Voyage AI.

What is the context window of Voyage Code 4?

Voyage Code 4 has a 32,000-token context window.

Which providers offer Voyage Code 4?

Voyage Code 4 is available from Voyage AI through LiteLLM, using the model name voyage/voyage-code-4.

How do I call Voyage Code 4 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="voyage/voyage-code-4", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/embeddings from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

When did LiteLLM add Voyage Code 4?

Voyage Code 4 was added to LiteLLM's model price file on August 20, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Voyage AI.

Provider pages: Voyage AI.