text-embedding-ada-002 — price, context and performance

text-embedding-ada-002 is a OpenAI model available on AirAI. Input $0.10, output - per 1M tokens.

Overview

VendorOpenAI
Context8.2K
API formatsopenai, openai-response, openai-response-compact, anthropic, gemini, openai-alpha-search
Billing formulap * 0.1 + c * 0
Embedding model for semantic search, retrieval, clustering, and ranking pipelines

Pricing

PlanMultiplierInputOutputNote
Base price1×$0.10-
Eco0.3×$0.03-Standard — standard reasoning, moderate stability.
default0.6×$0.06-Standard — standard reasoning, moderate stability.
Plus1×$0.10-High — strong reasoning, stable.
Pro2×$0.20-Enterprise — full reasoning, high stability.
Max4×$0.40-Premium — max reasoning & stability.

Only groups enabled for this model are listed.

Performance

API endpointhttps://api.airai.cc/v1
OpenAI-compatibleOpenAI-compatible

FAQ

How much does text-embedding-ada-002 cost?
Input $0.10, output - per 1M tokens.
What is the context window of text-embedding-ada-002?
text-embedding-ada-002 has a 8.2K context window: the combined token limit for input and output in a single request.
How do I call text-embedding-ada-002 from code?
Point base_url to https://api.airai.cc/v1 and set model to text-embedding-ada-002. The API is fully OpenAI compatible.
Why does text-embedding-ada-002 return error 429?
429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Model comparison

ModelVendorInputOutputContext
text-embedding-ada-002OpenAI$0.10—8.2K
gpt-image-2.5-sunburstOpenAI$5.00$30.00not specified
o1-previewOpenAI$15.00$60.00not specified
gpt-5.6-sol-openai-compactOpenAIPrice not published—not specified
gpt-4o-realtime-previewOpenAI$5.00$20.00not specified
gpt-4-vision-previewOpenAI$10.00$20.00not specified
gpt-5.4-mini-2026-03-17OpenAI$0.75$4.50not specified
whisper-1OpenAI$30.00$30.00not specified
o1-mini-2024-09-12OpenAI$1.10$4.40not specified
gpt-5.1-codex-mini-2025-11-13OpenAI$0.25$2.00not specified
gpt-6-astraOpenAI$10.00$50.001.1M
gpt-4o-realtime-preview-2024-12-17OpenAI$5.00$20.00not specified
gpt-image-2.5-sunburst-cOpenAIPer request $0.16—not specified

Troubleshooting

429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Common causes

  • Too many concurrent requests
  • Quota of the current plan exhausted
  • Retrying immediately without backoff

How to fix

  • Limit concurrency and retry with exponential backoff
  • Switch to a plan with a larger quota
  • Cache repeated requests

How to connect

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-ada-002",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_API_KEY>",
    base_url="https://api.airai.cc/v1"
)

response = client.chat.completions.create(
    model="text-embedding-ada-002",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

const response = await client.chat.completions.create({
  model: "text-embedding-ada-002",
  messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);
const OpenAI = require("openai");

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

client.chat.completions.create({
  model: "text-embedding-ada-002",
  messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));

Replace <YOUR_API_KEY> with the API Key from your token settings.

Compatible endpoints

openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search

Gemini SDK · TypeScript

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "text-embedding-ada-002" });

const result = await model.generateContent(
  "Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());

Authentication

All requests must include the Authorization: Bearer <TOKEN> header. Anthropic-format endpoints also accept the x-api-key header. Generate your API Key on the Tokens page, where you can scope access by model, group, IP, and rate limits.

Supported parameters

ParameterTypeDefaultRangeDescription
temperaturefloat10–2Sampling temperature; lower is more stable
top_pfloat10–1Nucleus sampling cumulative probability
max_tokensinteger——Maximum tokens in the response
frequency_penaltyfloat0−2–2Penalizes repeated high-frequency tokens
presence_penaltyfloat0−2–2Encourages introducing new topics
stopstring[]null≤ 4Up to 4 strings that stop generation
seedintegernull—Seed for more reproducible sampling
ninteger1—Number of candidate completions
streambooleanfalse—Stream tokens via SSE
response_formatobject——Force JSON output or schema-conformant results
toolsarray——Function/tool declarations the model can call
tool_choicestring | objectauto—Tool selection strategy or specific tool name
logprobsbooleanfalse—Return log probabilities for each token
top_logprobsintegernull0–20Number of top probabilities returned per token
logit_biasmap——Logit bias mapping per token
userstring——End-user identifier for risk auditing

Rate limits

TierRPMTPMRPD
Eco990398K20K
Test980393K20K

Data updated: 2026-10-10 18:30

Technical SupportLive Support
Back to Top