GPT-5 (legacy)

Original GPT-5. Kept for backward compat; recommend migrating to 5.1 or 5.4-mini depending on use case.

ChatOpenAI400k tokens$1.3626 / $10.9006 · 1M

openai/gpt-5

Context
400k tokens
Completion cap
128,000
Tools
Yes
JSON
Yes
Released
2025-08-07
ZDR
Verified

Call it from Geek Hub

Same OpenAI SDK. Change the base URL and the model id.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is GPT-5 (legacy)?
Original GPT-5. Kept for backward compat; recommend migrating to 5.1 or 5.4-mini depending on use case. GPT-5 (legacy) runs on the Geek Hub API (OpenAI-compatible). Model id: openai/gpt-5.
Is GPT-5 (legacy) free?
No. Input is $1.3626 per 1M tokens and output is $10.9006 per 1M tokens on Geek Hub (markup included).
What is the context length of GPT-5 (legacy)?
GPT-5 (legacy) has a 400k tokens context window. It supports up to 128,000 completion tokens.
Does GPT-5 (legacy) support tool calling and structured outputs?
GPT-5 (legacy) accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was GPT-5 (legacy) released?
GPT-5 (legacy) was released on 2025-08-07.

More models from OpenAI