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.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| MTEB | 61% | Massive Text Embedding Benchmark across 8 task types | Source | July 12, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Text Embedding Ada 002 This page | Semantic search + RAG | |||
| Semantic search + RAG | ||||
| Semantic search + RAG | ||||
| Semantic search + RAG | ||||
| Semantic search + RAG |
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.