Voyage Code 2
voyage/voyage-code-2An embedding model with a 131K-token context window, at $0.126 per million tokens.
Details
- Maker
- voyage
- Kind
- Embeddings
- Context window
- 131,072 tokens
- Input
- $0.126 per million tokens
- Capabilities
- None listed
- Takes
- Text
- Returns
- Text
- Zero data retention
- Not on every provider
- No training on requests
- Yes, on every provider
- Released
- 2024-01-01
- Newer model
- voyage/voyage-3.5Released later by the same maker, costs no more, and lists the same capabilities. Compare the two
Description
Voyage AI's embedding model optimized for code retrieval (17% better than alternatives). This is the previous generation of code embeddings models.
Call it
curl
curl https://phantom.codes/v1/embeddings \
-H "Authorization: Bearer $PHANTOM_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "voyage/voyage-code-2",
"input": "The quick brown fox"
}'Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.