Skip to content

Model detail

GPT-4

Provided by OpenAI
Pay-as-you-go

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.

Model specs

Model ID
gpt-4
Context length
8.192K
Max output
8.192K
I/O modalities
Released
2023-05

02

API endpoints

One MixRoute gateway, OpenAI-compatible

  • OpenAI-compatible /v1/chat/completions POST

03

Pricing

Flat rate, unit: /1M Tokens

Input

$30.0000 /1M Tokens

Completion

$60.0000 /1M Tokens

Cache read

$15.0000 /1M Tokens

05

Selection summary

Quickly judge whether it fits your workload

What is this model good for?

Difficult problems requiring high accuracy and broad knowledge

Use GPT-4 for complex problem-solving, text-based tasks, and applications requiring greater accuracy than previous models. It is a large-scale model capable of handling difficult reasoning across domains.

What should you check before using it?

Consider newer models for better cost and performance

GPT-4 is an older flagship model. Newer models like GPT-4o and GPT-4.1 offer improved speed and cost efficiency. Test your workload to confirm GPT-4 is the right fit.

Why use it through MixRoute?

Swap the base URL, keep the GPT-4 client

MixRoute serves GPT-4 on the OpenAI-compatible endpoint /v1/chat/completions; point your existing client at https://api.mixroute.ai/v1 with the model ID gpt-4 and re-run your integration tests.

07

Capabilities & compatibility

Unconfirmed capabilities stay "Unknown," no guesses

Available:

Structured output

GPT-4 can produce JSON-formatted output on demand.

EX response_format: { type: "json_schema" } forces valid JSON output.
Available:

Streaming

GPT-4 supports streamed responses.

EX stream: true streams tokens incrementally, so chat UIs render as they arrive.
Available:

OpenAI SDK

Call GPT-4 through MixRoute's OpenAI-compatible endpoint.

EX Change base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.

08

Token cost estimator

Live estimate from this page's pricing, not an actual bill

Share of the same prefix read repeatedly, up to 100%

09

FAQ

GPT-4 is OpenAI’s flagship large-scale language model, capable of solving difficult problems with greater accuracy than previous models. It accepts text input.

One endpoint, a testable decision

Test this model and alternate routes with the same request format

Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.