import requests r = requests.post( "https://api.aimlapi.com/v1/embeddings", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "openai/text-embedding-3-small", "input": "The quick brown fox" }, ) print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/embeddings", { method: "POST", headers: { Authorization: `Bearer ${process.env.AIMLAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "model": "openai/text-embedding-3-small", "input": "The quick brown fox" }), }); console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/embeddings \ -H "Authorization: Bearer $AIMLAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"openai/text-embedding-3-small","input":"The quick brown fox"}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| MTEB | 62.3% | Massive Text Embedding Benchmark across 8 task types | Source | July 12, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Text Embedding 3 Small This page | Semantic search + RAG | |||
| Semantic search + RAG | ||||
| Semantic search + RAG | ||||
| Semantic search + RAG |
Text Embedding 3 Small takes text as input and returns embedding.
Text Embedding 3 Small became available on December 12, 2025.
Text Embedding 3 Small is priced at input $0.026 / 1M tokens.
Text Embedding 3 Small was built by OpenAI.
Send a request to https://api.aimlapi.com/v1/embeddings with openai/text-embedding-3-small as the model id.
Yes. Text Embedding 3 Small is served through AI/ML API, so the same key and endpoint format used for other models applies.
It is OpenAI's embedding model built for semantic search and similarity tasks, offered at a lower cost.