OpenAI: Text Embedding Ada 002

openai/text-embedding-ada-002

OpenAI Text Embedding Ada 002 API pricing

Text Embedding Ada 002 costs $0.040 per million tokens on Oxyy, one rate for input and output. That is the pay-as-you-go price after the current 60% discount (Launch Promo; standard price $0.100). It turns text into embedding vectors, with an 8K-token context window. A cheaper OpenAI option is Text Embedding 3 Small at $0.008 per 1M tokens; for every model and rate, see OpenAI API pricing.

Previous-generation embedding model. Superseded but explicitly NOT deprecated.
ModalitiesTextEmbeddings
Price$0.040 per 1M tokens, input and outputAll OpenAI API pricing
Context8K

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderTokens /M
OpenAI$0.040

Capabilities (1)

Batch

Supported parameters (3)

inputencoding_formatuser

Any other parameter you send is ignored rather than rejected.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Price
$0.040
per 1M tokens, input and output · standard price $0.100
Current discount
60%
off every rate
RateStandard priceChargedUnit
Tokens (input + output)$0.100$0.040per 1M tokens, input and output

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

Specifications

Model ID
text-embedding-ada-002
Developer
OpenAI
Type
Embeddings
Input
Text
Output
Embeddings
Context window
8,191 tokens
Tokenizer
GPT
Endpoint
/v1/embeddings

Best for

EmbeddingRAGSemantic search

Quickstart

Call text-embedding-ada-002 with a POST to /v1/embeddings on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.embeddings.create(
    model="text-embedding-ada-002",
    input="The quick brown fox jumps over the lazy dog",
)
print(len(response.data[0].embedding))

Frequently asked questions

What is Text Embedding Ada 002?
Previous-generation embedding model. Superseded but explicitly NOT deprecated.
How much does Text Embedding Ada 002 cost?
Text Embedding Ada 002 costs $0.040 per million tokens on Oxyy, one rate for input and output. That is the pay-as-you-go price after the current 60% discount (Launch Promo; standard price $0.100). You pay per request, with no subscription.
What can Text Embedding Ada 002 embed?
Text Embedding Ada 002 turns text into embedding vectors, with up to 8,191 tokens per input.
Which API endpoint does Text Embedding Ada 002 use?
Send a POST request to https://api.oxyy.ai/v1/embeddings with "model": "text-embedding-ada-002", authenticated with your Oxyy API key.
What other models does OpenAI have?
OpenAI also offers Text Embedding 3 Large, Text Embedding 3 Small, chat-latest and GPT-4o through Oxyy.

Alternatives to Text Embedding Ada 002

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models

More models from OpenAI