We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Sentence Transformers: all-mpnet-base-v2

sentence-transformers/all-mpnet-base-v2
EmbeddingsInput: text1KAdded Nov 17, 2025

Try Sentence Transformers: all-mpnet-base-v2 now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account

Results will appear here.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Sentence Transformers: all-mpnet-base-v2 at a glance

  • Input price is 75% lower than the median of 34 Embeddings models.

About Sentence Transformers: all-mpnet-base-v2

Sentence Transformers: all-mpnet-base-v2 is an embedding model from Sentence Transformers, a family of models built for turning text into vectors. It sits in the embeddings category, meaning it is designed to produce representations of text rather than to generate text itself. The model encodes sentences and short paragraphs into a 768-dimensional dense vector space, and it is positioned by its provider as a high-fidelity option for semantic work.

On the input side, the model accepts text only. On the output side, it returns embeddings rather than words or chat messages, so you should not expect it to answer questions or hold a conversation. The context length is 512 tokens, and the maximum output is 460. Both numbers matter in practice: the 512 token window covers a sentence or a short paragraph, and anything longer has to be split before you send it. The embedding it returns is a 768-dimensional vector.

Those capabilities point to a fairly specific set of uses. Information retrieval is a natural fit, where you embed a query and a corpus and compare them. Clustering is another, since sentences that sit close together in the 768-dimensional space often belong to the same topic. Similarity scoring follows directly from that, for example ranking candidate passages against a reference, or detecting near-duplicate text. Because the model handles sentences and short paragraphs, these tasks work best when each input you embed is short and self-contained.

You call it through api14's OpenAI-compatible API, using the model id "sentence-transformers/all-mpnet-base-v2". Because the interface follows the OpenAI embeddings shape, existing clients and libraries that target that endpoint can be pointed at api14 without special handling. Note that this model lists no supported parameters, so the request body should carry the model id and the input text, and you should not rely on optional knobs such as dimensions or encoding format being applied.

The 512 token context and the 460 output cap are the main practical limits here. If your text is longer than a sentence or a short paragraph, split it into chunks and embed each one, then combine the results. And if what you actually need is generated text rather than vectors, a generative chat model will fit better; this model only produces embeddings.

How to call the Sentence Transformers: all-mpnet-base-v2 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "sentence-transformers/all-mpnet-base-v2".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.embeddings.create({
  "model": "sentence-transformers/all-mpnet-base-v2",
  "input": [
    "The quick brown fox",
    "Lorem ipsum"
  ]
});
console.log(result.data.map((d) => d.embedding.length));

Specifications

Context length
512
Max output
460
Input
text
Output
embeddings

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Sentence Transformers: all-mpnet-base-v2: frequently asked questions

How much does the Sentence Transformers: all-mpnet-base-v2 API cost?
Sentence Transformers: all-mpnet-base-v2 costs Input $0.02 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Sentence Transformers: all-mpnet-base-v2?
Sentence Transformers: all-mpnet-base-v2 reads up to 512 tokens per request: prompt, history and documents together. It writes up to 460 output tokens per response.
What can Sentence Transformers: all-mpnet-base-v2 do?
Sentence Transformers: all-mpnet-base-v2 accepts text and returns embeddings.
How do I call Sentence Transformers: all-mpnet-base-v2 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "sentence-transformers/all-mpnet-base-v2". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Sentence Transformers: all-mpnet-base-v2?
Comparable Embeddings models at a similar price: Thenlper: GTE-Base, Intfloat: E5-Base-v2, Sentence Transformers: paraphrase-MiniLM-L6-v2. Each runs through the same API key, so switching is one string.

Sentence Transformers: all-mpnet-base-v2 community

New topic

This community has no topics yet. Open the first one about Sentence Transformers: all-mpnet-base-v2.