Hormouz AIHormouzSign in

OpenAI: Text Embedding Ada 002: AI model

Text Embedding Ada 002 is an OpenAI text-embedding model for semantic search, retrieval and RAG, with an up-to-8K-token input. Reachable from inside Iran through Hormouz.

Context window:
8,192 tokens
Input:
$0.1/1M tokens
Output:
$0/1M tokens
Type:
embedding
  • Embeddings

Text Embedding Ada 002 is OpenAI's legacy text-embedding model. Text Embedding Ada 002 is OpenAI's legacy text-embedding model. Embeddings are numeric representations of text that measure how related two pieces of text are; the newer text-embedding-3 models are more capable, but ada-002 remains widely used in existing pipelines. It accepts inputs up to 8K tokens.

Because embeddings are computed once and then compared cheaply, this model suits high-volume pipelines: index a corpus, embed each incoming query, and rank documents by vector similarity. Through Hormouz it is served behind an OpenAI-compatible embeddings API. Point your base URL at Hormouz and drop in a Hormouz key. Pricing is usage-based at $0.1/M in.

Hormouz provides stable access to the model from inside Iran, with no foreign credit card or circumvention tooling required.

text-embedding-ada-002 is OpenAI's legacy text embedding model.

Quickstart

curl https://api.hormouz.net/v1/embeddings \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/text-embedding-ada-002","input":"The quick brown fox"}'

Specs

VendorOpenAI
TypeEmbedding
Context window8,192 tokens
Pricing$0.10/M in · $0.00/M out
APIembeddings

Code example

cURL
curl https://api.hormouz.net/v1/embeddings \
  -H "Authorization: Bearer ng-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/text-embedding-ada-002","input":"The quick brown fox"}'
Python
from openai import OpenAI
client = OpenAI(api_key="ng-YOUR_API_KEY", base_url="https://api.hormouz.net/v1")
resp = client.embeddings.create(model="openai/text-embedding-ada-002", input="The quick brown fox")
print(resp.data[0].embedding)
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ apiKey: "ng-YOUR_API_KEY", baseURL: "https://api.hormouz.net/v1" });
const resp = await client.embeddings.create({
  model: "openai/text-embedding-ada-002",
  input: "The quick brown fox",
});
console.log(resp.data[0].embedding);

Buy the OpenAI: Text Embedding Ada 002 API, paid in rial

  • Buy credit with an Iranian bank card; no foreign card or account needed.
  • One Hormouz key reaches OpenAI: Text Embedding Ada 002 and 600+ other models, and you pay only for what you use.
  • No VPN and no risk of a banned account; just change the base URL to api.hormouz.net/v1.
Create an accountBuy ChatGPT (OpenAI) API access, paid in rial

Use via Hormouz

Connect to this model and 600+ others with one API key, then see usage down to each request.

Request company access

FAQ

What is Text Embedding Ada 002 and what is it good for?
Text Embedding Ada 002 turns text into dense numeric vectors so that semantically similar inputs land close together. It works well for semantic search, RAG, clustering and classification, especially where existing systems already index ada-002 vectors.
What input length does Text Embedding Ada 002 support?
Text Embedding Ada 002 accepts inputs up to 8K tokens per request. Longer documents are typically split into chunks that are embedded separately.
How much does Text Embedding Ada 002 cost?
Billing is usage-based at $0.1/M in. There is no fixed monthly fee. You pay only for what you use, and current rates are shown in the Hormouz dashboard.
How do I access Text Embedding Ada 002 from inside Iran?
Create an account on Hormouz and generate an API key. Hormouz provides a stable path to Text Embedding Ada 002 from inside Iran, with no foreign credit card or circumvention tooling required.
Is Text Embedding Ada 002 compatible with OpenAI embeddings code?
Yes. Hormouz exposes an OpenAI-compatible embeddings API. Change the base URL to Hormouz and swap in your Hormouz key. Your existing embeddings code runs without a rewrite.

Updated 2026-10-13