OpenAI: text-embedding-ada-002 API
text-embedding-ada-002 is an embedding and retrieval model from OpenAI, available through one freeaiapi.ai API key and billed from your prepaid balance.
Pricing
Price per 1M tokens compared with OpenAI's official list price. Last updated .
| Token type | Official | freeaiapi.ai | You save |
|---|---|---|---|
| Input | $0.10 | $0.07 | 30% |
| Output | $0.10 | $0.07 | 30% |
Call text-embedding-ada-002 with the OpenAI SDK
Use model ID text-embedding-ada-002 with base URL https://api.freeaiapi.ai/v1. Quickstart
curl https://api.freeaiapi.ai/v1/embeddings \
-H "Authorization: Bearer $FREEAIAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "text-embedding-ada-002", "input": "The quick brown fox"}'from openai import OpenAI
client = OpenAI(base_url="https://api.freeaiapi.ai/v1", api_key="YOUR_FREEAIAPI_KEY")
result = client.embeddings.create(model="text-embedding-ada-002", input="The quick brown fox")
print(len(result.data[0].embedding))Frequently asked questions
Is this the official OpenAI API?
No. freeaiapi.ai is an independent API gateway. You get one OpenAI-compatible key that routes to OpenAI and other models, billed from a prepaid balance.
Do I need a credit card to start?
No. Sign up, connect Telegram and join our channel to unlock $1 trial credit. Create an API key and make your first request. Add funds when you want to keep going.
Does it work with the OpenAI SDK?
Yes. Point any OpenAI SDK or OpenAI-compatible tool at https://api.freeaiapi.ai/v1 and use your freeaiapi.ai key. No code changes beyond the base URL and key.
Not affiliated with OpenAI. OpenAI is a trademark of OpenAI.