openai logo
openai

OpenAI: GPT-4

Source description (English)

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...

Overview

Model specifications

Context
8,191 tokens
Maximum output
4,096 tokens
Architecture
text->text
Tokenizer
GPT
Knowledge cutoff
2021-09-30
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$30
per 1M tokens
Output
$60
per 1M tokens
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
text
Output
text
API

Supported API parameters

frequency_penaltylogit_biaslogprobsmax_completion_tokensmax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_p
Available providers

2 providers

Checked: September 20, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Azure

Not provided
Context
8K
Maximum output
4K
Input
$30
Output
$60
Cache read
Not provided
Cache write
Not provided

OpenAI

Not provided
Context
8K
Maximum output
4K
Input
$30
Output
$60
Cache read
Not provided
Cache write
Not provided
openai

4 models

All models
openai logoopenai

OpenAI: GPT-6 Luna Pro

GPT-6 Luna Pro is the same underlying model as GPT-6 Luna, served with reasoning.mode set to pro for higher-quality responses on complex tasks. Learn more in OpenAI's docs: https://developers.openai.com/api/docs/guides/reasoning#reasoning-mode

Context
1.1M
Input
file · image · text
Output
text
Input: $0.1Output: $0.5per 1M tokens
View model details
openai logoopenai

OpenAI: GPT-6 Luna Pro (batch)

GPT-6 Luna Pro is the same underlying model as GPT-6 Luna, served with reasoning.mode set to pro for higher-quality responses on complex tasks. Learn more in OpenAI's docs: https://developers.openai.com/api/docs/guides/reasoning#reasoning-mode

Context
1.1M
Input
file · image · text
Output
text
Input: $0.05Output: $0.25per 1M tokens
View model details
openai logoopenai

OpenAI: GPT-6 Luna

GPT-6 Luna is the fast, cost-efficient model in OpenAI's GPT-6 series, positioned below GPT-6 Sol. It is suited for high-volume and latency-sensitive workloads such as chat, classification, and lightweight agentic...

Context
1.1M
Input
file · image · text
Output
text
Input: $0.1Output: $0.5per 1M tokens
View model details
openai logoopenai

OpenAI: GPT-6 Luna (batch)

GPT-6 Luna is the fast, cost-efficient model in OpenAI's GPT-6 series, positioned below GPT-6 Sol. It is suited for high-volume and latency-sensitive workloads such as chat, classification, and lightweight agentic...

Context
1.1M
Input
file · image · text
Output
text
Input: $0.05Output: $0.25per 1M tokens
View model details