# Mongodb: voyage-code-4

- Model id: `mongodb/voyage-code-4`
- Served by: -
- List price per 1M tokens, input, from: -, with 0% platform fee. A request is billed at the list price of the host that served it.
- Context: 32K
- Prices read 2026-11-15 09:33 UTC
- Page: https://plaingateway.com/models/mongodb/voyage-code-4

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 2048t voyage-code-4 here: [mongodb.com/products/platform/ai-search-and-retrieval/models](https://www.mongodb.com/products/platform/ai-search-and-retrieval/models?utm_source=openrouter&utm_medium=referral)

## Hosts

| Host | Endpoint | Input /M | Cache read /M | Context | Served |
|---|---|---|---|---|---|
| Voyageai | `voyageai` | $0.12 input | - | 32K | no |

## First request

```sh
curl https://api.plaingateway.com/api/v1/embeddings \
  -H "Authorization: Bearer $PLAINGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "mongodb/voyage-code-4", "input": "The quick brown fox"}'
```

Sign up at https://plaingateway.com/signup (no card), create a key, send a test call, and add credits when you want more. New accounts may get a small starting credit. The whole bootstrap for agents: https://plaingateway.com/llms.txt
