gpt-4
Aggregated modalities
Channel
Each channel is compared at its lowest input-price tier; output breaks ties. A dash means /api/pricing does not provide that rate. Selecting a channel updates the endpoints and call example below.
ChannelUSD per 1M tokensInputOutputCache readCache write
openai/gpt-4Input
$30.00 USD per 1M tokens
Output
$60.00 USD per 1M tokens
Cache read
- USD per 1M tokens
Cache write
- USD per 1M tokens
Endpoints
POST
/v1/chat/completionsChat CompletionsCall it
Using openai/gpt-4
1from openai import OpenAI23client = OpenAI(4 base_url="https://www.realrelay.ai/v1",5 api_key="sk-***",6)78response = client.chat.completions.create(9 model="openai/gpt-4",10 messages=[{"role": "user", "content": "Hello"}],11)1213print(response.choices[0].message.content)1import OpenAI from "openai";23const client = new OpenAI({4 baseURL: "https://www.realrelay.ai/v1",5 apiKey: process.env.REALRELAY_API_KEY,6});78const response = await client.chat.completions.create({9 model: "openai/gpt-4",10 messages: [{ role: "user", content: "Hello" }],11});1213console.log(response.choices[0].message.content);1curl https://www.realrelay.ai/v1/chat/completions \2 -H "Authorization: Bearer $REALRELAY_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "openai/gpt-4",6 "messages": [{ "role": "user", "content": "Hello" }]7 }'Prices and availability as published on Oct 19, 2026.
Capabilities
Fine-tuning
Input
Text
Output
Text
Frequently asked questions
- What is gpt-4?
- gpt-4 is a model from OpenAI. RealRelay.ai serves it through one OpenAI-compatible API.
- How much does gpt-4 cost?
- gpt-4 costs from $30.00 per 1M input tokens and $60.00 per 1M output tokens.
- What inputs and outputs does gpt-4 support?
- Input: Text. Output: Text.
- What is the context window of gpt-4?
- gpt-4 has a context window of 8K tokens. It returns up to 8K output tokens.
- What can gpt-4 do?
- Listed capabilities: Fine-tuning.
- How do I call gpt-4 through the API?
- Use the model ID openai/gpt-4 with a RealRelay.ai API key on the OpenAI-compatible API.
More from OpenAI
All 44 OpenAI modelsGPT-6.1 Sol
- Context
- 1.05M
- In / 1M
- $2.00
- Out / 1M
- $10.00
GPT-6 Luna
- Context
- 1.05M
- In / 1M
- $0.10
- Out / 1M
- $0.50
GPT-6 Sol
- Context
- 1.05M
- In / 1M
- $2.00
- Out / 1M
- $10.00
GPT-6 Astra
- Context
- 1.05M
- In / 1M
- $10.00
- Out / 1M
- $50.00
GPT-5.6 Luna
Save 7%- Context
- 1.05M
- In / 1M
- $0.1842
- Official price
$0.20 - Out / 1M
- $1.1053
- Official price
$1.20
GPT-5.6 Sol
Save 7%- Context
- 1.05M
- In / 1M
- $4.6056
- Official price
$5.00 - Out / 1M
- $27.6332
- Official price
$30.00
