Voyage Law 2 API Pricing
As of October 10, 2026, Voyage Law 2 costs $0.12 per 1M input tokens on Voyage AI. It has a 16,000-token context window.
- Input
- $0.12 / 1M tokens
- Output
- $0 / 1M tokens
- Context window
- 16,000 tokens
- Providers
- 1
- Added to LiteLLM
- April 2024
Voyage Law 2 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.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Voyage AI | voyage/voyage-law-2 | $0.12 | $0 | 16K |
What Voyage Law 2 costs in practice
Embedding 10,000 documents of 500 tokens each
| Voyage AI | $0.60 |
Use Voyage Law 2 with LiteLLM
Call Voyage Law 2 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.
from litellm import embedding
response = embedding(
model="voyage/voyage-law-2",
input=["hello world"],
)model_list:
- model_name: voyage-law-2
litellm_params:
model: voyage/voyage-law-2
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "voyage-law-2",
"input": "hello world"
}'Voyage Law 2 FAQ
How much does Voyage Law 2 cost?
Voyage Law 2 costs $0.12 per 1M input tokens on Voyage AI.
What is the context window of Voyage Law 2?
Voyage Law 2 has a 16,000-token context window.
Which providers offer Voyage Law 2?
Voyage Law 2 is available from Voyage AI through LiteLLM, using the model name voyage/voyage-law-2.
How do I call Voyage Law 2 with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="voyage/voyage-law-2", 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 Law 2?
Voyage Law 2 was added to LiteLLM's model price file in April 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request.
LiteLLM docs: Voyage AI.
Provider pages: Voyage AI.
