OpenAI: GPT-4

Coming soonQuick Start

GPT-4 is OpenAI's flagship model, released 2023-05, built for difficult problems that demand broad knowledge and advanced reasoning. It succeeds earlier OpenAI models with greater accuracy and a deeper general knowledge base.

This model is not routed on MirAPI yet — prices shown are the official list prices. Create an account to get notified when it goes live.

Modalities
inTextoutText
Price / 1M
$30.00 / $60.00
Context
8K
Knowledge cutoff
2021-09-30

Capabilities

Tool useStructured output

Benchmarks

bar = score (0–100) · ▏ median

Scores from vendor reports and public leaderboards. No private evals.

Coding Index
Code
13.1
#83

Showcase

Three fixed prompts, identical for every chat model. Outputs are archived verbatim — copy the prompt to reproduce.

Task prompt · identical for all models
Build a single-file HTML page using three.js from a CDN: a low-poly planet with a tilted ring of ~200 orbiting particles, a soft key light plus rim light, slow auto-rotation, and drag-to-orbit controls. No build tools — one file only.
Archived output
Archive not published yet

Every model will run this exact prompt; the output lands here verbatim, with tokens and per-run cost.

Quick Start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="openai/gpt-4",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire GPT-4 into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free