Voyage Code 3 · vercel
Voyage AI's embedding model optimized for code retrieval.
Input, $/1M $0.18
Output, $/1M —
Price alerts
API
OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.
| API base URL | |
|---|---|
| Endpoint | |
| Model id | |
curl
curl https://ai-gateway.vercel.sh/v1/embeddings \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "voyage/voyage-code-3", "input": ["first text", "second text"]}'Python
import requests
r = requests.post(
"https://ai-gateway.vercel.sh/v1/embeddings",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "voyage/voyage-code-3",
"input": [
"first text",
"second text"
]
},
)
print(r.json())JavaScript
const r = await fetch("https://ai-gateway.vercel.sh/v1/embeddings", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "voyage/voyage-code-3",
"input": [
"first text",
"second text"
]
}),
});
console.log(await r.json());Request (JSON)
{
"model": "voyage/voyage-code-3",
"input": [
"first text",
"second text"
]
}Response (JSON)
{
"object": "list",
"model": "voyage/voyage-code-3",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0123,
-0.0456,
"..."
]
}
],
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}The address is taken from the provider's model list; check it against the provider's documentation.
Source: AI Rate Card, https://airatecard.com/en/c/offer%3Avercel%7Cvoyage/voyage-code-3, prices checked 2026-11-04; seller's page: https://vercel.com/ai-gateway/models/voyage-code-3
Technical details
ID: offer:vercel|voyage/voyage-code-3