Voyage AI: voyage-code-2
voyage-code-2 is a Voyage AI embedding model tailored for semantic retrieval of code and related text from both natural language and code queries. It is a previous generation model succeeded by voyage-code-3.
Some providers of this model keep or train on your inputs
At least one provider of this model keeps your inputs, uses them for its own purposes such as training AI models, or has not said what it does with them. Do not enter personal data of others or sensitive data. You can object at any time in your account settings or via "Manage consents" in the chat.
If you object, this model is not available to you, because all of its providers use inputs for their own purposes.
Read the privacy policyPricing
| Group | Input | Output | TTFT | Success | Uptime | Cache hit |
|---|---|---|---|---|---|---|
| vy1-voyage-code-2-free | $0.00 | $0.00 | - | - | - | - |
Uptime
Performance
Usage & Ranking
Frequently asked questions
Use voyage-code-2 in
Similar models
Base URL
https://api.unorouter.com/v1Call voyage-code-2:free from your code
Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.
curl https://api.unorouter.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "voyage-code-2:free",
"messages": [{"role": "user", "content": "Hello!"}]
}'