
API / SDK Voyage AI (MongoDB)
Voyage AI
MongoDB-owned API for text, code, domain-specific and multimodal embeddings and rerankers, with large free token allowances.
What it is
Voyage AI offers embedding models (voyage-4-large, voyage-4, voyage-4-lite, voyage-code-4, voyage-context-4, finance and law models, multimodal models) and rerankers (rerank-3, rerank-3-lite) through a REST API and official Python and TypeScript libraries. MongoDB acquired Voyage AI in February 2025; the models remain available through Voyage's API and the AWS and Azure marketplaces. The open-weight voyage-4-nano can also run locally without an API key.
What it's useful for
Embedding a code base or legal documents for semantic search and reranking the top results before sending them to an LLM.
Key features
- voyage-4 family with 32,000-token context and 256 to 2048 dimensions
- Domain models: voyage-code-4, voyage-finance-2, voyage-law-2; voyage-context-4
- Multimodal embeddings for text, images and video frames (voyage-multimodal-3.5)
- Rerankers rerank-3 and rerank-3-lite
- Python (voyageai) and TypeScript libraries; voyage-4-nano runs locally
- Batch API with a 12-hour completion window, priced 33% below the standard endpoints
How to use it
Before you start
- Voyage AI API key
pip install "voyageai[local]"Commands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- Free allowance is per account and per model (200M tokens for current models such as voyage-4 and voyage-code-4, 50M for some older ones such as voyage-law-2; none for the oldest models such as voyage-code-3)
- Free tokens do not apply to Batch API usage
- Hosted API only, apart from the open-weight voyage-4-nano
Alternatives
Elastic-owned APIs for multilingual multimodal embeddings, reranking, URL-to-Markdown reading and web search, with an MCP server.
MCP servers for this
CreateWithAI Hub's own MCP server: tell your AI what you're building and it finds the tools, MCP servers and skills for the job.
Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.
Upstash's service that feeds current, version-specific library docs and code examples into coding agents.
Skills for this
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Related resources
Anthropic's family of proprietary large language models (Opus, Sonnet, Haiku tiers) for reasoning, coding and agents.
DeepSeek's MIT-licensed open-weight reasoning and chat models, also served through an OpenAI- and Anthropic-compatible API.
Open-source vector database from Lite in-process to distributed Kubernetes, with managed Zilliz Cloud.
Open-source vector search engine written in Rust, with hybrid search and payload filtering, self-hosted or on Qdrant Cloud.