Davinci Codex

p50k_base

Structural tokenization analysis engine. Optimized for Davinci Codex inputs. Calibrate context windows and compute precise API economics in real-time.

Context
4097
Type
LLM
Encoding
p 50k base
CH44
WORD9
ENCODINGp50k_base
// HAPPYTOKENIZER: WAITING FOR INPUT STREAM

Quick Answers

What is the Davinci Codex token limit?

Davinci Codex supports a 4,097 token context window. Paste your text above to see how much of that window your prompt fills.

What tokenizer does Davinci Codex use?

Davinci Codex uses the p50k_base encoding (GPT-3.5 completion models). This page counts tokens with the vendor's real vocabulary, so the numbers match what the API sees.

How much does Davinci Codex cost per million tokens?

Davinci Codex costs $2.00 per million input tokens and $2.00 per million output tokens, with cached input at $1.00 per million.

Model Insights

Modalities
InText
OutText
Supported Features
Streaming
Supported Endpoints
Completions

Cost Manifest

Input / 1M$2.00
Output / 1M$2.00
Cached Write$1.00

* Rates are estimated based on OpenAI standard tier. Actual billing may vary based on batch processing and enterprise agreements.

// Technical Specifications

ARCHITECTURE ID
davinci-codex
TOKEN ENCODING
p50k_base
MAX CONTEXT
4,097TOKENS