GPT-4

OpenAI chattool_use

API ID: openai/gpt-4

Input Price
$30.00
/1M tokens
Output Price
$60.00
/1M tokens

About GPT-4

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning capabilities. Training data: up to Sep 2021.

๐Ÿ’ฐ
Price Ranking
#1223 lowest price among 1240 Chat models

Model Specifications

Context Length
8k
Max Output
4k
Release Date
2023-05-28
Capabilities
chat tool_use
Input Modalities
text
Output Modalities
text

Best For

  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$31.50
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$990.00
/month
1000 tickets/day, ~800 tokens each

OpenAI Model Lineup

Compare all models from OpenAI to find the best fit

Model Input Output Context Capabilities
GPT-4 Current Free Free 8k chat tool_use
GPT-3.5 Turbo 16k (older v1106) Free Free 16k chat
GPT-3.5 Turbo 16k (older v1106) Free Free 16k chat
GPT-4 32k Free Free 33k chat
GPT-4 32k Free Free 33k chat
GPT-4 32k (older v0314) Free Free 33k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Anthropic Claude Opus 4.1
Input: $15.00
Output: $75.00
Context: 200k
Anthropic Claude Opus 4.1
Input: $15.00
Output: $75.00
Context: 200k
Anthropic Claude Opus 4
Input: $15.00
Output: $75.00
Context: 200k
Anthropic Claude Opus 4
Input: $15.00
Output: $75.00
Context: 200k

๐Ÿš€ Quick Start

Get started with GPT-4 API

OpenAI Python SDK
from openai import OpenAI
client = OpenAI()

response = client.chat.completions.create(
    model="openai/gpt-4",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)