# All MiniLM

> All MiniLM is the sentence-transformers MiniLM family (L6-v2 and L12-v1 cuts) for fast, compact text embedding. Returns a 384-dimension dense vector over a 256-token window. MIT-licensed. AnyRouter exposes the text path via /embeddings on the user's own paired device running Ollama.

**ID**: `sentence-transformers/all-minilm`  
**Creator**: sentence-transformers  
**Category**: embedding  
**Context**: 256 tokens  
**Input**: $0  
**Output**: $0  
**Released**: 2022-12-20  
**Web page**: https://anyrouter.dev/model/sentence-transformers/all-minilm

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

**Tokenizer**: Other

**Capabilities**: embedding

**Supported parameters**: input, model, dimensions, 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",
  "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 |
| --- | --- | --- |
| ollama-anyr-relay | $0 | $0 |

## Source

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