What it is and who makes it
text-embedding-4-small is OpenAI’s budget embedding model, released January 2025 as the small sibling of text-embedding-4-large. It turns text into dense vectors for semantic search, retrieval-augmented generation, clustering and classification — the invisible plumbing under a huge share of production RAG systems.
Like the rest of OpenAI’s model lineup, the architecture and parameter count are undisclosed. What matters practically: it’s the cheapest embedding OpenAI sells that still clears the bar for real retrieval work, and it’s the default you reach for when “good enough at the lowest price” is the requirement — which, let’s be honest, is most of them.
Architecture and what’s under the hood
Architecture details are undisclosed. Public understanding, hedged accordingly: it’s a transformer encoder trained with contrastive objectives across a very large, diverse corpus, producing fixed-size dense vectors (1536 dimensions — a legacy carry-over that keeps downstream tooling simple). OpenAI hasn’t published training specifics, so treat any deeper claims as inference.
The 8K context window is modest by modern standards — you will chunk documents rather than embed whole files. The fixed 1536-dim output means zero flexibility on storage size, but also zero surprises: every vector DB, every SDK and every quantization recipe knows exactly what to expect.
Strengths
- Extremely cheap — $0.02 per million input tokens; embedding a mid-size corpus costs coffee money.
- MTEB ~65 (approx., as of Nov 2026) — solid aggregate quality across retrieval, clustering and classification.
- Drop-in simplicity — one API call, no self-hosting, no GPU, no ops burden.
- Ecosystem gravity — every vector database, framework and tutorial defaults to it; integration is a solved problem.
- 1536-dim fixed output — predictable storage and index sizing.
- Good enough for most RAG — often indistinguishable from large embeddings in end-task answer quality when paired with a reranker.
Weaknesses and failure modes
- Proprietary API only — no weights, no offline mode, no air-gapped deployment. Regulated environments need an open alternative like BGE-M3.
- 1536-dim fixed — can’t trade dimensions for cost/storage the way Matryoshka-style models can.
- 8K context — long documents must be chunked, which means chunking strategy becomes your problem.
- Lower ceiling than retrieval specialists — Voyage and Cohere Embed squeeze more out of hard retrieval benchmarks.
- Vendor lock-in — switching embedding models means re-embedding your entire corpus.
- Not multilingual-first — decent coverage, but dedicated multilingual models (BGE-M3) win on 100+ language corpora.
Best for / avoid for
Best for: semantic search and RAG at scale where cost matters, high-volume indexing jobs, prototypes that need real embeddings without infra, deduplication and clustering pipelines, and any team already inside the OpenAI ecosystem who wants one vendor for embeddings and generation.
Avoid for: air-gapped/offline deployments, hard multilingual requirements across niche languages, workloads where retrieval quality is the product’s core differentiator (use Voyage 4 Large or Cohere Embed + Rerank), and situations where you need configurable dimensions.
Variants and family
text-embedding-4-large (the higher-quality sibling — same context, bigger vectors, ~$0.13/1M, MTEB ~67-ish class, approx.) and the older ada lineages still floating around legacy code. The natural pattern: use small for bulk indexing and query embedding, consider large only when your eval harness shows a measurable retrieval gap.
Pricing, access and how to use it
$0.02 per million input tokens (as of Nov 2026). No output cost — it returns vectors, not text. OpenAI Python client:
from openai import OpenAI
client = OpenAI()
resp = client.embeddings.create(
model="text-embedding-4-small",
input=["What does the onboarding checklist require?"],
)
vec = resp.data[0].embedding
print(len(vec)) # 1536
Batch embedding a corpus:
texts = [chunk1, chunk2, chunk3, ...]
resp = client.embeddings.create(
model="text-embedding-4-small",
input=texts, # batch up to the API limit
)
vectors = [d.embedding for d in resp.data]
Via OpenRouter, use the OpenAI-compatible endpoint with the same payload shape. Embeddings pair naturally with any vector store — pgvector, Qdrant, Pinecone, Weaviate, Chroma — take your pick.
Practitioner aside. The most common mistake with this model is skipping retrieval evaluation. Embeddings are cheap; re-embedding is not. Build a 50-query golden set before you commit to an index, and re-check it after any model swap — the $0.02/1M price tag hides the real cost of a bad indexing decision.
Benchmarks snapshot
Approximate, as of Nov 2026, from public reporting and PeaBox atlas data:
- MTEB ~65 (aggregate, approx.)
- Publicly reported results place it close to last year’s large-tier models on retrieval sub-tasks (approx.)
MTEB is a bundle of averages; your corpus is one number. Evaluate on your own data — retrieval quality lives or dies by chunking, metadata and reranking, not the leaderboard.
How it stacks up
vs Voyage 4 Large. Voyage 4 Large (~$0.05/1M, MTEB ~68, approx.) is the retrieval specialist — better scores, a reranker to pair with, and a deliberate focus on query-passage asymmetry. text-embedding-4-small is OpenAI’s fungible default at well under half the price. Budget-first or OpenAI-native stacks: small. Retrieval quality as a differentiator: Voyage.
vs BGE-M3. BGE-M3 is free, MIT-licensed, runs fully offline, covers 100+ languages, and outputs dense + sparse + multi-vector in one pass (MTEB ~66, approx.). The trade is infra work and a slightly lower quality ceiling. text-embedding-4-small wins on simplicity and English-first quality; BGE-M3 wins on openness, multilingual reach and air-gapped deployments.
PeaBox fit
text-embedding-4-small is the zero-friction default for wiring Data Studio outputs into semantic search — embed your curated tables, feed the vectors to your store of choice, and let PeaBox AI Workbench answer questions over them. Because the API is OpenAI-shaped, it drops into almost any existing pipeline without new auth patterns. Keep your retrieval judge prompts and golden-set checks in Prompt Library so every re-index or model swap gets the same groundedness gate — cheap embeddings make re-indexing feasible, which makes disciplined evaluation non-optional.
Figures approximate as of Nov 2026. Pricing and benchmark scores drift monthly; check OpenAI’s pricing page before you budget.