GPT-4

openai/gpt-4
by OpenAI · text in · text out · 8.2K ctx · 2023-05-28

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficu…

INPUT$30.00/ 1M tokens
OUTPUT$60.00/ 1M tokens
p50 TTFT1.96 s7d
p95 TTFT4.03 s7d
TRAFFIC7.6Ktokens / 7d
Code samples
from openai import OpenAI

client = OpenAI(
    base_url="https://orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="openai/gpt-4",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Pricing
Input / 1M tokens$30.00
Output / 1M tokens$60.00
CurrencyUSD
Performance
TTFT p50
1.96 s
Output speed
5.8 tok/s
TTFT p95
4.03 s
Error rate
3.9%
Public benchmarks
AA Coding
13.1
AA Intelligence
12.8
Source: artificialanalysis.ai
FAQ
How much does OpenAI: GPT-4 cost on OrcaRouter?
OpenAI: GPT-4 is priced at $30.00 per 1M input tokens and $60.00 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is OpenAI: GPT-4's context window?
OpenAI: GPT-4 supports a context window of 8K tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call OpenAI: GPT-4 via the OpenAI SDK?
Set OpenAI base_url to https://orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="openai/gpt-4" in the chat.completions.create call.
Does OrcaRouter rate-limit OpenAI: GPT-4?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.
Embed this badge
OpenAI: GPT-4$30.00/M in1956ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-4" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-4.svg" alt="OpenAI: GPT-4 on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-4](https://www.orcarouter.ai/embed/openai/gpt-4.svg)](https://www.orcarouter.ai/models/openai/gpt-4)