Skip to content
OpenRouter

Openai/Gpt 4

Openai/Gpt 4 is available via OpenRouter with a 8K context window and up to 4,096 output tokens. Pricing: $30.00/1M input tokens, $60.00/1M output tokens.

Openai/Gpt 4 Pricing & Specifications

Input Price$30.00 per 1M tokens
Output Price$60.00 per 1M tokens
Context Window8,191 tokens (8K)
Max Output4,096 tokens
ProviderOpenRouter

What is Openai/Gpt 4?

Openai/Gpt 4 is a large language model by OpenRouter with a 8K context window and up to 4,096 output tokens. It costs $30.00 per 1M input tokens and $60.00 per 1M output tokens. Openai/Gpt 4 is available via OpenRouter with a 8K context window and up to 4,096 output tokens. Pricing: $30.00/1M input tokens, $60.00/1M output tokens.

Capabilities

text

Openai/Gpt 4 Cost Examples

Short prompt (500 tokens)

$0.015000

Medium prompt (2K tokens)

$0.06000

Long output (4K tokens)

$0.24000

Count tokens for Openai/Gpt 4

Paste your prompt to see exact token counts and API cost estimates.

Open Token Counter

Similar Models to Openai/Gpt 4

OpenRouter

Openai/Gpt 5.2 Pro

$21.00/1M in 272K ctx

OpenRouter

Anthropic/Claude Opus 4

$15.00/1M in 200K ctx

OpenRouter

Anthropic/Claude Opus 4.1

$15.00/1M in 200K ctx

OpenRouter

Openai/O1

$15.00/1M in 200K ctx

Frequently Asked Questions

How much does Openai/Gpt 4 cost per token? +
Openai/Gpt 4 costs $30.00 per 1M input tokens and $60.00 per 1M output tokens. For a typical 1,000-token request with a 500-token response, that works out to roughly $0.060000.
What is the context window for Openai/Gpt 4? +
Openai/Gpt 4 supports a context window of 8,191 tokens (8K). This determines the maximum combined length of your prompt and conversation history in a single API call.
What is the maximum output length for Openai/Gpt 4? +
Openai/Gpt 4 can generate up to 4,096 tokens in a single response. If you need longer outputs, you can make multiple API calls and concatenate the results.
Is Openai/Gpt 4 good for coding tasks? +
Openai/Gpt 4 can handle basic coding tasks, but there are models specifically optimized for code generation that may perform better on complex programming problems.
Token Counter | Pricing Calculator | Model Comparison | All OpenRouter Models