# all-MiniLM-L6-v2

> all-MiniLM-L6-v2 maps sentences and short paragraphs to 384-dimensional vectors for retrieval, clustering and semantic similarity. 512-token input.

**ID**: `sentence-transformers/all-minilm-l6-v2`  
**Creator**: sentence-transformers  
**Category**: embedding  
**Context**: 512 tokens  
**Pricing**: $0.0050 / $0 per 1M · billed by your provider (BYOK)  
**Released**: 2022-03-02  
**Web page**: https://anyrouter.dev/model/sentence-transformers/all-minilm-l6-v2

**Input modalities**: text  
**Output modalities**: embeddings  

**Tokenizer**: Other

**Capabilities**: embedding

**Supported parameters**: input, model, encoding_format

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/embeddings`

```bash
curl https://anyrouter.dev/api/v1/embeddings \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sentence-transformers/all-minilm-l6-v2",
  "input": "The quick brown fox jumps over the lazy dog"
}'
```

Pass `input` as a string or an array of strings to embed a batch in one call.

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| respan-byok | $0.0050/M (list) | $0 (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Source

- Upstream docs: https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2
