Sentence Transformers

Sentence Transformers

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.

Modalities

Text → Text

Input

$0.00675 /1M

Output

$0.00 /1M

Cached input

$0.00068 /1M90% off

Context

1K

Speed

fast

Pricing

Pay per token. Cached input is billed at 10% of the input rate.

$0.00675 /1M input$0.00 /1M output
Hobby10 req/day · 2K in / 500 out
~$0.00/mo
Production1,000 req/day · 2K in / 500 out
~$0.40/mo
Scale20,000 req/day · 2K in / 500 out
~$8.10/mo
+ Estimate your workload
1,000
2,000
500
30%

Estimated monthly cost

$0.2956

$0.0099 / day on all-MiniLM-L12-v2

Same workload on:

all-MiniLM-L6-v2$0.4050+37%
EmbeddingGemma 300M$0.1620-45%

Estimates use list pricing with cached input billed at the 90%-discount rate. Actual bills depend on real token counts — every response includes its exact cost.

How it compares

Against the peers people actually weigh it against.

Specall-MiniLM-L12-v2all-MiniLM-L6-v2EmbeddingGemma 300M
Input /1M$0.00675$0.00675$0.0027
Output /1M$0.00$0.00$0.00
Context1K1K2K
ToolsYesYesYes
ReasoningNoNoNo
Speedfastfastfast

Quick start

Up and running in under two minutes.

  1. 1

    Create an API key

    Sign up and grab a key from the dashboard — $0.50 free credit, no card required.

    Get API key →
  2. 2

    Make your first request

    Drop in your key and send a chat completion — fully OpenAI-compatible.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "all-minilm-l12",
        "messages": [
          {"role": "user", "content": "Explain prompt caching in one paragraph."}
        ]
      }'
  3. 3

    Stream responses

    Add "stream": true to receive tokens as they arrive.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "all-minilm-l12",
        "stream": true,
        "messages": [{"role": "user", "content": "Hello!"}]
      }'

FAQ

Common questions about this model.

What is the context window of all-MiniLM-L12-v2?

all-MiniLM-L12-v2 has a 1K-token context window — roughly 1 pages of text in a single request.

How much does the all-MiniLM-L12-v2 API cost?

$0.00675 per 1M input tokens and $0.00 per 1M output tokens, with cached input at $0.00068/1M — a 90% discount on repeated prompt prefixes. No subscription; you pay only for what you use.

Does all-MiniLM-L12-v2 support function calling?

Yes — all-MiniLM-L12-v2 supports tool/function calling and structured outputs (JSON mode), so it works with agent frameworks out of the box.

How do I use all-MiniLM-L12-v2?

Kyma is OpenAI-compatible: point your SDK's base URL at https://kymaapi.com/v1, use your Kyma API key, and set the model to all-minilm-l12. Signing up is free and includes $0.50 of credit — no card required.

Start with $0.50 free credit — no card required.Create account →

More models by Sentence Transformers

ModelContextInputOutput
Sentence Transformersall-MiniLM-L6-v21K$0.00675$0.00