GPT-4 Turbo Preview

cl100k_base

Structural tokenization analysis engine. Optimized for GPT-4 Turbo Preview inputs. Calibrate context windows and compute precise API economics in real-time.

Context
128k
Type
LLM
Encoding
cl 100k base
CH44
WORD9
ENCODINGcl100k_base
// HAPPYTOKENIZER: WAITING FOR INPUT STREAM

Quick Answers

What is the GPT-4 Turbo Preview token limit?

GPT-4 Turbo Preview supports a 128,000 token context window. Paste your text above to see how much of that window your prompt fills.

What tokenizer does GPT-4 Turbo Preview use?

GPT-4 Turbo Preview uses the cl100k_base encoding (GPT-4 / GPT-3.5). This page counts tokens with the vendor's real vocabulary, so the numbers match what the API sees.

How much does GPT-4 Turbo Preview cost per million tokens?

GPT-4 Turbo Preview costs $10.00 per million input tokens and $30.00 per million output tokens, with cached input at $5.00 per million.

Model Insights

Modalities
InText
OutText
Supported Features
StreamingFunction Calling
Supported Endpoints
Chat Completions

Cost Manifest

Input / 1M$10.00
Output / 1M$30.00
Cached Write$5.00

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

// Technical Specifications

ARCHITECTURE ID
gpt-4-turbo-preview
TOKEN ENCODING
cl100k_base
MAX CONTEXT
128,000TOKENS