OpenAI: text-embedding-ada-002 · fastrouter
text-embedding-ada-002 (often called ada v2) is an earlier-generation OpenAI embedding model for general semantic tasks like text and code search, clustering, and classification. It produces 1536-dimensional embeddings and was initially state-of-the-art for tasks such as text search, code search, and sentence similarity. Its performance on benchmarks is moderate (around 61% on MTEB), and it costs about $0.10 per 1K tokens. Ada-002 is suited to general retrieval and similarity tasks but is generally considered a legacy model; newer v3 models (3-small and 3-large) have mostly superseded it for better efficiency or accuracy. In fact, documentation notes that ada-002 is primarily kept for legacy use cases, while most new applications use the 3-small or 3-large models for improved performance.
Entrada, $/1M $0.10
Salida, $/1M —
Alertas de precio
API
API compatible con OpenAI: los SDK oficiales de OpenAI funcionan con esta URL base. Sustituye YOUR_API_KEY por tu clave del proveedor.
| URL base de la API | |
|---|---|
| Endpoint | |
| ID del modelo | |
curl
curl https://go.fastrouter.ai/api/v1/embeddings \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "openai/text-embedding-ada-002", "input": ["first text", "second text"]}'Python
import requests
r = requests.post(
"https://go.fastrouter.ai/api/v1/embeddings",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "openai/text-embedding-ada-002",
"input": [
"first text",
"second text"
]
},
)
print(r.json())JavaScript
const r = await fetch("https://go.fastrouter.ai/api/v1/embeddings", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "openai/text-embedding-ada-002",
"input": [
"first text",
"second text"
]
}),
});
console.log(await r.json());Solicitud (JSON)
{
"model": "openai/text-embedding-ada-002",
"input": [
"first text",
"second text"
]
}Respuesta (JSON)
{
"object": "list",
"model": "openai/text-embedding-ada-002",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [
0.0123,
-0.0456,
"..."
]
}
],
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}La dirección se toma de la lista de modelos del proveedor; compruébala con su documentación.
Source: AI Rate Card, https://airatecard.com/es/c/offer%3Afastrouter%7Copenai/text-embedding-ada-002, prices checked 2026-11-04; seller's page: https://fastrouter.ai/models/openai/text-embedding-ada-002
Datos técnicos
ID: offer:fastrouter|openai/text-embedding-ada-002