Count tokens for gpt-4-0314 and estimate API cost before you send a request. Counts run the exact cl100k_base (OpenAI) in your browser.Your text never leaves the browser.
Context window. 8,192 tokens (about 6,000 English words).
API pricing. $30.00 input / $60.00 output per 1M tokens.
Tokenizer. cl100k_base (OpenAI) - exact, runs in your browser.
Pricing source. The community-maintained LiteLLM pricing dataset, refreshed 2026-08-11. Community-tracked rates can lag provider changes; confirm with the provider before budgeting.
Paste your prompt into the counter on this page. gpt-4-0314 uses the cl100k_base (OpenAI), and the count runs in your browser with the same published tokenizer, so the number matches what the API reports for plain text.
How much does gpt-4-0314 cost per token?
gpt-4-0314 costs $30.00 per 1 million input tokens and $60.00 per 1 million output tokens, based on the community-maintained LiteLLM pricing dataset checked 2026-08-11.
What is the context window of gpt-4-0314?
gpt-4-0314 has a context window of 8,192 tokens, which is roughly 6,000 English words of combined prompt and response. The counter above shows how much of that window your text consumes.
Is this gpt-4-0314 token count exact?
Yes. The page runs the cl100k_base (OpenAI) in your browser, the same tokenization the OpenAI API applies, so counts are exact for plain text input.