ospalabs
Free tool

Embedding cost calculator

Building search or RAG? Work out what it costs to embed your document set once, and what it costs each month to keep it fresh and answer queries, on every embedding model side by side.

New or changed documents

About 19,950,000 tokens to embed (1,500 words per document × 1.33 tokens per word).

Cost by embedding model
ModelProviderPrice / 1M tokensEmbed everything onceEach month
text-embedding-3-smallOpenAI$0.02$0.3990$0.0718
text-embedding-ada-002OpenAI$0.10$2.00$0.3591
text-embedding-3-largeOpenAI$0.13$2.59$0.4668
codestral-embedMistral$0.15$2.99$0.5387
gemini-embedding-2Google$0.20$3.99$0.7182

Each month = re-embedding 10% of the documents plus 2,000 queries a day for 30 days. Token counts are estimates for English text; code, tables and other languages often use more tokens per word.

How it works

Indexing cost

Embedding bills input tokens only. The one-time cost is the number of tokens in all your documents times the model's price per million tokens.

Monthly cost

Each month you embed new and changed documents again, and every search query is embedded too. Queries are short, but at high volume they add up.

The estimate

Pages are counted as about 500 words and words as about 1.33 tokens, typical for English prose. Paste a sample into the token counter for a closer number on your own content.

Want these numbers enforced instead of estimated? Put a hard dollar ceiling on your API keys · or see all free tools.

Questions

How much does it cost to embed 1 million words?
About 1.33 million tokens. Multiply by the model's price per million tokens in the table; on the cheapest models that's well under a dollar.
Do I pay again every time I search?
Only for embedding the query text, which is short. Searching your stored vectors is the vector database's cost, not the embedding API's.
Which embedding model should I choose?
Price is one factor; retrieval quality, dimensions and language support matter more for most apps. Test two candidates on your own queries before embedding everything.