Skip to contentx402 is live on Robinhood Chain: agents can now pay for any model, per call, in USDG →
OmniRail
← All models

VoyageAI by MongoDB · Embedding model

voyage-code-4

voyageai/voyage-code-4
  • Embedding
Released Aug 13, 2026

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"]}'