# Voyage Code 4 API Pricing

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

- Page: https://models.litellm.ai/models/voyage-code-4
- Lab: Voyage AI
- LiteLLM model name: `voyage/voyage-code-4`
- Context window: 32,000 tokens
- Added to LiteLLM: August 20, 2026
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Voyage AI | `voyage/voyage-code-4` | $0.12 | $0 | – | – | – | 32K |

## Cost examples

Embedding 10,000 documents of 500 tokens each:

- Voyage AI: $0.60

## Use it with LiteLLM

```python
from litellm import embedding

response = embedding(
    model="voyage/voyage-code-4",
    input=["hello world"],
)
```

## 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.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
