Processing 25,000 lines of code (~280,000 tokens) with Text Embedding 3 (Small) costs $0.0056 for codebase ingestion and $0.0056 for an AI-powered code review and refactoring pass.
Feed 25,000 lines of code into the prompt context for repository search, Q&A, or architecture planning.
Ingest 25,000 lines of code and generate audit findings, unit test recommendations, and refactor diffs.
Text Embedding 3 (Small) writes 25,000 lines of code from scratch based on product specifications.
| Model | Provider | Code Ingestion | Cached Ingestion | Code Review Cost | Context Limit |
|---|---|---|---|---|---|
| Text Embedding 3 (Small) (Current) | openai | $0.0056 | $0.0014 | $0.0056 | 8,191 |
| Text Embedding 3 (Large) | openai | $0.0364 | $0.0091 | $0.0364 | 8,191 |
| Text Embedding 004 | $0.0056 | $0.0014 | $0.0056 | 8,192 |
On average, code yields approximately 11.2 tokens per line in Text Embedding 3 (Small) (cl100k_base tokenizer). Indentation, brackets, camelCase variable names, and comments slightly increase token density compared to plain English text. 25,000 lines of code produces approximately 280,000 tokens.
Sending 25,000 lines of code as context and generating a thorough code review with recommendations costs approximately $0.0056. Utilizing prompt caching on repeat turns or static repository definitions drops this to $0.0014.
Text Embedding 3 (Small) has a context window of 8,191 tokens. 25,000 lines of code consumes 3418.39% of its total available context.