Voyage AI API
by docs.voyageai.com
Embeddings and reranking
Added on November 1st, 2026
Visit docs.voyageai.com →
What it does
Voyage AI offers embedding and reranking models for search and retrieval-augmented generation (RAG): turn text, code or images into vectors for semantic search, and rerank search results by how well they match a question. There are general, multilingual, code, finance and law models. Requests are JSON POST calls with an API key. Free with a free API key for the first 200 million tokens per account on most current models; paid per token after that.
At a glance
- API key
- Needed, free · More APIs with a free key
- Pricing
- Free with a free API key for the first 200 million tokens per account on most current models; paid per token after that.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST
- Provider
- docs.voyageai.com
More information: https://docs.voyageai.com/docs/pricing
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl -X POST 'https://api.voyageai.com/v1/embeddings' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"input": ["hello"], "model": "voyage-4"}'
JavaScript
const response = await fetch("https://api.voyageai.com/v1/embeddings", {
method: 'POST',
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({"input":["hello"],"model":"voyage-4"}),
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.post(
"https://api.voyageai.com/v1/embeddings",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"input": [
"hello",
],
"model": "voyage-4",
},
timeout=30,
)
print(response.json())
Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.