Paraphrase Multilingual MiniLM L12 v2

PARAPHRASE_MULTILINGUAL_MINILM_L12_V2

Multilingual sentence embeddings for paraphrase detection, clustering and similarity in about 50 languages.

Embeddingsembeddingsmultilingualparaphrasesimilarityapache-2.0Fine-tunable
Paraphrase Multilingual MiniLM L12 v2: Embeddings model on Kainguru

About Paraphrase Multilingual MiniLM L12 v2

Capabilities

  • About 50 languages — a sentence and its translation land close together
  • Paraphrase detection — finds sentences that say the same thing in other words
  • 384-dimensional vectors — small indexes, unit length by default

Good to know

  • Texts longer than 128 tokens are truncated; it is built for sentences rather than long passages.
  • About 50 languages, Turkish among them; Azerbaijani is not one of them.

Paraphrase Multilingual MiniLM L12 v2 inputs and output

NameTypeRequiredDefaultDetails
textstextYes—One text, or a JSON array of up to 64 texts (fewer for models with large vectors: at most 65,536 numbers per response).
1–200130 characters
normalizebooleanNotrueReturn unit-length vectors, ready for cosine similarity.
modetextNopassagequery for search queries, passage for the documents being searched (adds the model's prefixes where it has them).
Allowed: query, passage

Output. JSON: {"embeddings": [[...], ...], "dimensions": n}.

Run Paraphrase Multilingual MiniLM L12 v2 with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=PARAPHRASE_MULTILINGUAL_MINILM_L12_V2" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "texts": "example",
    "mode": "passage",
    "normalize": true
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "PARAPHRASE_MULTILINGUAL_MINILM_L12_V2",
        {
          "texts": "example",
          "mode": "passage",
          "normalize": True
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune Paraphrase Multilingual MiniLM L12 v2

You can fine-tune Paraphrase Multilingual MiniLM L12 v2 on your own data and run the tuned model through the same API. Dataset: Up to 10 JSONL files, 256 MiB in total, one {"anchor": "...", "positive": "..."} object per line: a text and one that belongs with it, such as a question and its answer. 8 to 200,000 pairs.

The steps are in the docs.

Paraphrase Multilingual MiniLM L12 v2 pricing

Price per request: 0.02185 credits ($0.0002185). The price is shown again before every run; all prices are on the pricing page.

Licence and source

Qwen3 Embedding 0.6B: Embeddings model on Kainguru
Embeddings

Qwen3 Embedding 0.6B

Multilingual text and code embeddings for search, retrieval and clustering in over 100 languages, Azerbaijani included.

Fine-tunable
Qwen3 Embedding 8B: Embeddings model on Kainguru
Embeddings

Qwen3 Embedding 8B

High-accuracy multilingual text and code embeddings for search and retrieval in over 100 languages, Azerbaijani…

Fine-tunable
Qwen3-VL Embedding 2B: Embeddings model on Kainguru
Embeddings

Qwen3-VL Embedding 2B

Qwen3-VL Embedding 2B turns text, pictures and a text with its picture into vectors in one space, to search pages and…

Fine-tunable
SigLIP 2 Large Patch16 384: Embeddings model on Kainguru
Embeddings

SigLIP 2 Large Patch16 384

Image and text embeddings in one 1024-dimensional space from Google's SigLIP 2, for image search, image-text matching…

Fine-tunable
BGE-M3: Embeddings model on Kainguru
Embeddings

BGE-M3

Multilingual embeddings for search and retrieval in over 100 languages, for texts up to 8,192 tokens.

Fine-tunable