OpenAI: GPT-4✓ Catalog verified
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.
Overview
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.
Access: available through the official OpenAI API. Context window: 8K.
Specifications
| API identifier | openai/gpt-4 |
| Provider | OpenAI |
| Model type | Text LLM |
| Context window | 8K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | May 28, 2023 |
| Tokenizer | GPT |
| Moderated | Yes |
| Architecture modality | text->text |
Pricing
Live pricing components for openai/gpt-4 as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $0.00003 | $30.00 / 1M | Per input token |
| Completion tokens | $0.00006 | $60.00 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$27Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | ✓ Supported | Supports tools / function calling |
| Self-Hosting | Not advertised | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call OpenAI: GPT-4 through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="openai/gpt-4",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| Google: Gemma 2 27B | 8K | $0.65 | View → | |
| Google: Gemma 2 9B | 8K | $0.03 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does OpenAI: GPT-4 cost?
$30.00 per 1M input tokens and $60.00 per 1M output tokens on the official OpenAI API.
What is the context window of OpenAI: GPT-4?
OpenAI: GPT-4 supports up to 8K tokens of context.
Does OpenAI: GPT-4 support tool / function calling?
Yes, OpenAI: GPT-4 supports tool / function calling — you can register tools and the model will emit structured tool calls.
How do I access OpenAI: GPT-4?
Use the official OpenAI API with the model id `openai/gpt-4`. See the Quick start section above for code examples.