- input
- $0.005
- output
- $0.00
- Context
- 512tokens
- Released
- 5y ago
- Size
- 22.71Mparameters
Cost/1M tokens
Sentence Transformers' all-MiniLM-L6-v2 is a sentence embedding model fine-tuned from the pretrained nreimers/MiniLM-L6-H384-uncased base model on more than one billion sentence pairs using a contrastive learning objective. The maker describes it as a general-purpose model that runs five times faster than all-mpnet-base-v2 while retaining good quality. It is built to encode sentences and short paragraphs as dense vectors for semantic search, clustering, and sentence-similarity tasks.
How it compares
Frequently asked questions
Running locally
By our estimate, all-MiniLM-L6-v2 needs about 0.5 GB at Q4, 0.5 GB at Q8 and 0.6 GB at FP16 of VRAM. That covers the weights plus headroom for a short context, and longer contexts need more.
Yes, by our estimates all-MiniLM-L6-v2 fits on an 8 GB GPU at FP16 (about 0.6 GB) and at higher precision on larger cards.
Yes, a Mac with at least 8 GB of unified memory should run all-MiniLM-L6-v2 at Q4, which needs an estimated 0.5 GB. This assumes macOS gives the GPU about 75% of unified memory.
API and pricing
all-MiniLM-L6-v2 is listed at $0.005 per 1M input tokens and $0.00 per 1M output tokens.
A request with 10,000 input tokens and 1,000 output tokens costs about $0.00005 with all-MiniLM-L6-v2 at the cheapest provider, DeepInfra.
1 of 1 tracked all-MiniLM-L6-v2 endpoints had 99% uptime or better over the last day. The best was DeepInfra at 100.0%.
Privacy and data
DeepInfra offers zero data retention for all-MiniLM-L6-v2, so prompts are not stored after the request.
Yes, all-MiniLM-L6-v2 has open weights, so you can run it on your own hardware and keep prompts on your own machines.
Capabilities and specs
all-MiniLM-L6-v2 has a 512 token context window. It can write up to 460 output tokens per response.
No, all-MiniLM-L6-v2 takes text input only.
Quality and benchmarks
Similar models from other labs include E5-Base-v2 (Intfloat), GTE-Base (Thenlper) and bge-base-en-v1.5 (BAAI). They are the closest matches by kind, price and release date.
E5-Base-v2all-MiniLM-L6-v2 vs E5-Base-v2GTE-Baseall-MiniLM-L6-v2 vs GTE-Basebge-base-en-v1.5all-MiniLM-L6-v2 vs bge-base-en-v1.5
Licensing and access
all-MiniLM-L6-v2 has open weights, so you can download and run it yourself.
The all-MiniLM-L6-v2 weights are on Hugging Face at sentence-transformers/all-MiniLM-L6-v2.
Basics
all-MiniLM-L6-v2 was made by Sentence Transformers. It was released on August 30, 2021.
Yes, all-MiniLM-L6-v2 has open weights, so you can run it on your own hardware without API fees. Paid API access is listed at $0.005 per 1M input tokens and $0.00 per 1M output tokens.
Generated from Vertical Tabs data, updated November 22, 2026.

Discussion
No comments yet
Be the first to share your thoughts.