GPT-4

OpenAIText

GPT-4 is a text model from OpenAI with a context window of 8K tokens and max output of 4K tokens. Pricing starts at $30.00 per million input tokens and $60.00 per million output tokens (cheapest at OpenAI).

Specifications

Model Keygpt-4
ProviderOpenAI
LiteLLM Provideropenai
ModeText
Canonical Namegpt-4
Context Window8K tokens
Max Output4K tokens

Capabilities

Vision Function Calling Reasoning JSON Schema System Messages Web Search Prompt Caching Audio Input Audio Output

Pricing

TypePer 1K TokensPer 1M Tokens
Input Tokens$0.030$30.00
Output Tokens$0.060$60.00

Price Comparison by Provider

Compare prices for GPT-4 across different providers. The same model may be available through multiple providers at different price points.

Provider
Model Key
Input Price
Output Price
Azure OpenAIazure/gpt-4$30.00$60.00
OpenRouteropenrouter/openai/gpt-4$30.00$60.00
OpenAIgpt-4-0125-preview$10.00$30.00
Github Copilotgithub_copilot/gpt-4-0613N/AN/A

Similar Models

Models with similar capabilities and context window size.

Model
Provider
Mode
Input Price
Output Price
Context
Max Output
Vision
Functions
Apertus 70B InstructPublicaiTextN/AN/A8K4Knoyes
Apertus 8B InstructPublicaiTextN/AN/A8K4Knoyes
Llama 3 8B Instruct:freeOpenRouterTextN/AN/A8KN/Anono
Llama3OllamaTextN/AN/A8K8Knono
Llama3:70BOllamaTextN/AN/A8K8Knono
Llama3:8BOllamaTextN/AN/A8K8Knono
Llama3.1OllamaTextN/AN/A8K8Knoyes
Mistral 7B Instruct V0.1OllamaTextN/AN/A8K8Knoyes
Mistral 7B Instruct:freeOpenRouterTextN/AN/A8KN/Anono
Sarvam MSarvamTextN/AN/A8K32Knono