theserverless.dev InferenceList

Models / OpenAI

OpenAI: GPT-4

openai/gpt-4

textContext 8K

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

Price

Input$30

per 1M tokens

Output$60

per 1M tokens

Compare this model

Providers

Each row is one seller. Prices are the published rate from that source. A dash means that source did not publish the amount. Sorted by a 3:1 blend of input and output.

ProviderTagQuant InputOutput ContextUptimeStatusSource
Azure azure — $30/1M $60/1M 8K — Live openrouter-endpoints

Monthly bill

Token models use the token counts. Image, video, and audio models use units times the flat rate.

$90.00 at list price for this workload

Every rate
UnitInputOutputFlatConfidence
token $30/1M $60/1M Not published— official

Price history

OpenAI: GPT-4
65 0 2026-09-15: $302026-09-16: $302026-09-17: $302026-09-18: $302026-09-19: $302026-09-20: $302026-09-21: $302026-09-22: $302026-09-23: $302026-09-24: $302026-09-25: $302026-09-26: $302026-09-27: $302026-09-28: $302026-09-29: $302026-09-30: $302026-10-01: $302026-10-02: $302026-10-03: $302026-10-04: $302026-10-05: $302026-10-06: $302026-10-07: $302026-10-08: $302026-10-09: $302026-10-10: $302026-10-11: $302026-10-12: $302026-10-13: $302026-10-14: $302026-10-15: $302026-10-16: $302026-10-17: $302026-10-18: $302026-10-19: $302026-10-20: $302026-10-21: $302026-10-22: $302026-10-23: $302026-10-24: $302026-10-25: $302026-10-26: $302026-10-27: $302026-10-28: $302026-10-29: $302026-10-30: $30 2026-09-15 2026-10-30

input or flat output

Daily snapshots
UTC dateUnitInputOutputFlat
2026-09-15 token $30 $60 Not published—
2026-09-16 token $30 $60 Not published—
2026-09-17 token $30 $60 Not published—
2026-09-18 token $30 $60 Not published—
2026-09-19 token $30 $60 Not published—
2026-09-20 token $30 $60 Not published—
2026-09-21 token $30 $60 Not published—
2026-09-22 token $30 $60 Not published—
2026-09-23 token $30 $60 Not published—
2026-09-24 token $30 $60 Not published—
2026-09-25 token $30 $60 Not published—
2026-09-26 token $30 $60 Not published—
2026-09-27 token $30 $60 Not published—
2026-09-28 token $30 $60 Not published—
2026-09-29 token $30 $60 Not published—
2026-09-30 token $30 $60 Not published—
2026-10-01 token $30 $60 Not published—
2026-10-02 token $30 $60 Not published—
2026-10-03 token $30 $60 Not published—
2026-10-04 token $30 $60 Not published—
2026-10-05 token $30 $60 Not published—
2026-10-06 token $30 $60 Not published—
2026-10-07 token $30 $60 Not published—
2026-10-08 token $30 $60 Not published—
2026-10-09 token $30 $60 Not published—
2026-10-10 token $30 $60 Not published—
2026-10-11 token $30 $60 Not published—
2026-10-12 token $30 $60 Not published—
2026-10-13 token $30 $60 Not published—
2026-10-14 token $30 $60 Not published—
2026-10-15 token $30 $60 Not published—
2026-10-16 token $30 $60 Not published—
2026-10-17 token $30 $60 Not published—
2026-10-18 token $30 $60 Not published—
2026-10-19 token $30 $60 Not published—
2026-10-20 token $30 $60 Not published—
2026-10-21 token $30 $60 Not published—
2026-10-22 token $30 $60 Not published—
2026-10-23 token $30 $60 Not published—
2026-10-24 token $30 $60 Not published—
2026-10-25 token $30 $60 Not published—
2026-10-26 token $30 $60 Not published—
2026-10-27 token $30 $60 Not published—
2026-10-28 token $30 $60 Not published—
2026-10-29 token $30 $60 Not published—
2026-10-30 token $30 $60 Not published—

Alternatives

Parameters (13)
frequency_penaltylogit_biaslogprobsmax_completion_tokenspresence_penaltyresponse_formatseedstoptemperaturetool_choicetoolstop_logprobstop_p
Call this model

OpenRouter id openai/gpt-4. InferenceList does not send the request.

curl
curl 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"}]}'

JavaScript
await fetch("https://openrouter.ai/api/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.OPENROUTER_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "openai/gpt-4",
    messages: [{ role: "user", content: "Hello" }],
  }),
});

Python
import os, json, urllib.request
req = urllib.request.Request(
    "https://openrouter.ai/api/v1/chat/completions",
    data=json.dumps({"model": "openai/gpt-4", "messages": [{"role": "user", "content": "Hello"}]}).encode(),
    headers={"Authorization": "Bearer " + os.environ["OPENROUTER_API_KEY"], "Content-Type": "application/json"},
)
print(urllib.request.urlopen(req).read().decode())

JSON · History JSON