← All models
VoyageAI by MongoDB · Embedding model
voyage-code-4
voyageai/voyage-code-4- Embedding
voyage-code-4 is a code embedding model from Voyage AI, a MongoDB company. It is designed for coding agents and code retrieval, with Matryoshka embeddings at 2048, 1024, 512, and 256...
Specifications
- Input
- text
- Output
- vector per input (float array; base64 on request)
- Batch
- up to 512 inputs per call
- Billing
- per input token
Use it
POST /api/v1/embeddings · MCP embed · full reference
curl https://omnirail.org/api/v1/embeddings \
-H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
-d '{"model":"voyageai/voyage-code-4","input":["brass lever espresso machine","coffee grinder"]}'