OpenAI

OpenAI Text Embedding 3 Small API

US OpenAI | released 2024-01 | knowledge cutoff 2023-09
View embedding docs → Get API key

OpenAI Text Embedding 3 Small is the lightweight embedding model from OpenAI, outputting 1536-dimensional vectors at roughly a fifth of the price of the Large variant. It is the default choice for high-volume semantic search, deduplication, and classification where cost per token matters more than peak recall.

EmbeddingFast

Pricing (official list, per 1M tokens)

Input
$0.02/M
Output
$0.00/M

Specifications

Context window8.191K tokens Input modalitiesText StreamingYes APIOpenAI-compatible

How to use OpenAI Text Embedding 3 Small

Drop-in OpenAI replacement. Change only the base_url and model.

# Python -pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://meshtok.com/v1",
    api_key="sk-your-MeshTok-key",
)

resp = client.chat.completions.create(
    model="openai/text-embedding-3-small",
    messages=[{"role":"user","content":"Hello!"}],
)
print(resp.choices[0].message.content)
# cURL
curl https://meshtok.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-MeshTok-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/text-embedding-3-small","messages":[{"role":"user","content":"Hello!"}]}'

Related models

Other models you might consider.