OpenAI: GPT-5
by openai
Input price
$1.25 /1M tok
Output price
$10.00 /1M tok
Context length
400K tokens
JSON mode
Yes
Our tests and reviews
-
Gemini 2.5 Flash vs Haiku 4.5 vs GPT-5 mini: GPT-6 Luna beats all 3
Nov 9, 2026 · We ran Gemini 2.5 Flash, Claude Haiku 4.5 and GPT-5 mini against two newer budget models on 8 real tasks. GPT-6 Luna won at $0.19 per 1,000 answers.
-
GPT-5 in production 2026: $2.13–$40 per 1,000 requests
Jun 12, 2026 · GPT-5 costs $2.13/1k for chat, $4.50 for extraction, $11.25 for summarization. Here's the exact per-token math and where batch saves you 50%.
-
Claude Sonnet 4.5 vs GPT-5 in 2026: 8/15 wins, 1.7x faster
May 6, 2026 · We ran 20 real prompts through Claude Sonnet 4.5 and GPT-5. Claude won 8 of 15 comparisons, ran 1.7x faster, and GPT-5 timed out on 5 of 20.
Model details
Model ID
openai/gpt-5
Provider
openai
Modality
text+image+file->text
Supports response_format
Yes
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| model | string | Model identifier, e.g. openai/gpt-5 |
| messages | array | Array of message objects with role and content |
| temperature | number | Sampling temperature (0-2). Default varies by model. |
| max_tokens | integer | Max tokens to generate |
| top_p | number | Nucleus sampling (0-1) |
| stream | boolean | Stream response via SSE |
| stop | string | array | Stop sequences |
| response_format | object | Set to {"type": "json_object"} for guaranteed JSON output |