SunsetDiff

Replacement for code-search-ada-code-001: what changes when you switch

The official replacement is text-embedding-3-small. code-search-ada-code-001 shut down on 2024-01-04 per OpenAI's deprecation page (checked 2026-11-12). Published on the official docs: input price $4 per million tokens.

code-search-ada-code-001 model page · OpenAI

Official replacement. Full diff page

code-search-ada-code-001 to text-embedding-3-small

Some values not published Checked 2026-11-12.

Price per 1M tokens

Price comparison. Example monthly cost for 10M input tokens and 2M output tokens. Labeled example, not a bill.
FieldOldNewChange
Input $4 Not published Not published
Output Not published Not published Not published
Cached input Not published Not published Not published
Example monthly cost Not published Not published Example only

Context and max output

Token limits
LimitOldNewChange
Context window Not published Not published Not published
Max output Not published Not published Not published

Capabilities that differ

No differing capability values are published for both models.

API changes

No parameter change is listed on the official pages we checked. The sample below only swaps the model id.

Code

python before
from openai import OpenAI
client = OpenAI()
response = client.embeddings.create(
    input="Your text string goes here", model="code-search-ada-code-001"
)
python after
from openai import OpenAI
client = OpenAI()
response = client.embeddings.create(
    input="Your text string goes here", model="text-embedding-3-small"
)
typescript before
import OpenAI from "openai";
const openai = new OpenAI();
const embedding = await openai.embeddings.create({
  model: "code-search-ada-code-001",
  input: "Your text string goes here",
  encoding_format: "float",
});
typescript after
import OpenAI from "openai";
const openai = new OpenAI();
const embedding = await openai.embeddings.create({
  model: "text-embedding-3-small",
  input: "Your text string goes here",
  encoding_format: "float",
});
curl before
curl https://api.openai.com/v1/embeddings \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{"input":"Your text string goes here","model":"code-search-ada-code-001"}'
curl after
curl https://api.openai.com/v1/embeddings \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{"input":"Your text string goes here","model":"text-embedding-3-small"}'

Checklist

  1. Read the shutdown date for code-search-ada-code-001 on the linked official page.
  2. Point your requests at text-embedding-3-small.
  3. Re-check price, context, and parameters on the provider pages linked here.
  4. Ship the change before the published shutdown date.

Related models

Questions

What is the replacement for code-search-ada-code-001?

The official replacement is text-embedding-3-small. code-search-ada-code-001 shut down on 2024-01-04 per OpenAI's deprecation page (checked 2026-11-12). Published on the official docs: input price $4 per million tokens.

Is text-embedding-3-small cheaper than code-search-ada-code-001?

A full price comparison is not published. One or both prices are missing from the official pages we checked.

Does text-embedding-3-small have a bigger context window than code-search-ada-code-001?

Context window sizes are not both published on the official pages we checked.

Sources

Deprecation alerts

We email you before models shut down. Unsubscribe anytime.

Deprecation alert signup
Providers (optional)