OpenAI's reasoning-first flagship with configurable effort, 400K context, and strong real-world coding and agentic tool use.
Output Speed *
Intelligence Index *
Context Window *
Input price
Output price
Performance
Where GPT-5 Earns Its Place: Coding and Tool Orchestration
Benchmarks
GPT-5 Independent Benchmarks: Intelligence, Speed and Latency
Output Speed
Intelligence Index
MMLU *
GPQA *
HLE *
LiveCodeBench *
Technical Specifications
What the model supports
Quickstart
import requests
url = "https://api.anyapi.ai/v1/chat/completions"
payload = {
"model": "gpt-5",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Text prompt"
},
{
"image_url": { "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg" },
"type": "image_url"
}
]
}
]
}
headers = {
"Authorization": "Bearer AnyAPI_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())const url = 'https://api.anyapi.ai/v1/chat/completions';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer AnyAPI_API_KEY', 'Content-Type': 'application/json'},
body: '{"model":"gpt-5","messages":[{"role":"user","content":[{"type":"text","text":"Text prompt"},{"image_url":{"url":"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"},"type":"image_url"}]}]}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}curl --request POST \
--url https://api.anyapi.ai/v1/chat/completions \
--header 'Authorization: Bearer AnyAPI_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-5",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Text prompt"
},
{
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
},
"type": "image_url"
}
]
}
]
}'Limitations & Trade-offs
Best-Fit Workloads
Where this model earns its place
Autonomous coding agents
GPT-5's 74.9% on SWE-bench Verified and 88% on Aider Polyglot with reasoning enabled make it a strong engine for agents that resolve GitHub issues, refactor across files, and ship patches end-to-end. Its support for long chains of tool calls lets an agent plan, run commands, inspect results, and revise. The 400K context holds substantial repository state. Budget for higher latency and token use per task at elevated reasoning effort.
Long-horizon tool-using assistants
Because GPT-5 executes extended sequences of tool calls and follows multi-step plans, it suits back-office assistants that query systems, transform data, and produce structured results across many steps. Structured outputs and function calling keep responses machine-parseable inside pipelines. This fits asynchronous or queued work where a first-token delay of tens of seconds is acceptable, rather than real-time chat.
Large-context analysis and review
The 400,000-token window supports codebase analysis, long technical documents, and multi-file review in a single request, and image input allows reasoning over diagrams and screenshots alongside text. Higher reasoning effort improves accuracy on dense material. Note the September 2024 knowledge cutoff means any current facts must come from the supplied context, not the model's memory.
Complex reasoning and STEM problem solving
GPT-5 scored 94.6% on AIME 2025 without tools and 84.2% on MMMU for multimodal understanding, indicating strong math and structured-reasoning ability. This fits technical analysis, quantitative problem solving, and evaluation tasks where correctness outweighs speed. Enable higher reasoning effort for the hardest problems and accept the added latency and token cost that thorough reasoning requires.