Text Embedding Ada 002 API

openai/text-embedding-ada-002
Reliable embedding model offering solid performance for various tasks.
Output
Released
Dec 12, 2025

How to use Text Embedding Ada 002 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to openai/text-embedding-ada-002.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/embeddings",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "openai/text-embedding-ada-002",
      "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-ada-002",
    "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-ada-002","input":"The quick brown fox"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Text Embedding Ada 002 API Pricing

TypePrice
Input
$0.13 / 1M tokens
Output

Text Embedding Ada 002 Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
MTEB
61%
Massive Text Embedding Benchmark across 8 task typesSourceJuly 12, 2026

Text Embedding Ada 002 vs other models

ModelInputOutputContextBest for
$0.13 / 1M tokens
Semantic search + RAG
$0.169 / 1M tokens
Semantic search + RAG
$0.026 / 1M tokens
Semantic search + RAG
$0.091 / 1M tokens
$0.074 / 1M tokens
Semantic search + RAG
$0.13 / 1M tokens
Semantic search + RAG

Frequently asked questions

Text Embedding Ada 002 takes text as input and returns embedding.

Text Embedding Ada 002 became available on December 12, 2025.

Text Embedding Ada 002 is priced at input $0.13 / 1M tokens.

Text Embedding Ada 002 was built by OpenAI.

Send a request to https://api.aimlapi.com/v1/embeddings with openai/text-embedding-ada-002 as the model id.

Yes. Text Embedding Ada 002 is served through AI/ML API, so the same key and endpoint format used for other models applies.

OpenAI describes it as an embedding model suitable for various tasks.

Start building with Text Embedding Ada 002

Get API Key
1000+ models, one API.