Skip to content

OpenAI

Text Embedding Ada 002

Converts text into vectors for search and recommendations.

openai/text-embedding-ada-002
Input → Output
Text/Text → Embeddings (vectors)
Maximum input
8.2K tokens
Provider
1
Tool invocation
-

Price per million tokens

Input
178.2 credits

Provider

Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.

ProviderInput / 1MOutput / 1MCache readFirst tokenThroughputUptime
Microsoft Foundry178.2 credits-----

Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.

Use the API

from openai import OpenAI

client = OpenAI(
    base_url="https://alprouter.com/api/v1",
    api_key="alp-your-key",
)

result = client.embeddings.create(
    model="openai/text-embedding-ada-002",
    input="Text to search for",
)
print(result.data[0].embedding)

Details

Maximum input
8.2K tokens
Supported input
Text/Text
Provider
Microsoft Foundry
Supported parameters
encoding_format, input

Frequently asked questions

What kind of model is Text Embedding Ada 002?

A model from OpenAI. Converts text into vectors for search and recommendations. Model ID on AlpRouter: openai/text-embedding-ada-002

How much does Text Embedding Ada 002 cost?

178.2 credits per million input tokens. One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.

How much input does Text Embedding Ada 002 accept?

Each request accepts up to 8.2K tokens.

What input and output does Text Embedding Ada 002 support?

Send Text/Text to receive Embeddings (vectors).

Which providers handle Text Embedding Ada 002 requests?

Microsoft Foundry handles these requests.

How do I call Text Embedding Ada 002 from code?

Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (openai/text-embedding-ada-002). There’s an example of how to do this in the “Using the API” section above.

Other models from OpenAI