> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# all-MiniLM-L12-v2

> 384-dimension embeddings — the smallest vector on the shelf, and the default of the sentence-transformers library, so an enormous amount of existing code expects exactly this shape. Twelve layers where the L6 has six: better recall, still tiny.

## Overview

384-dimension embeddings — the smallest vector on the shelf, and the default of the sentence-transformers library, so an enormous amount of existing code expects exactly this shape. Twelve layers where the L6 has six: better recall, still tiny.

## Specs

| Field | Value |
| - | - |
| Model ID | `all-minilm-l12` |
| Best for | Semantic search at minimum index size |
| Context window | 512 |
| Input modalities | Text |
| Output modalities | Text |
| Speed | Fast |
| Cost band | Cheap |
| Release stage | Stable |

## Pricing

| | Per 1M tokens |
| - | :-: |
| Input | \$0.00675 |
| Output | \$0.00 |

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="kyma-...")

response = client.embeddings.create(
    model="all-minilm-l12",
    input=["first document", "second document"],
)
```

## Agent query example

Ask the API which models fit, instead of hardcoding an id:

```bash theme={null}
curl "https://kymaapi.com/v1/models?recommended_for=search-documents&quality_tier=capable"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.