GPT-4
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.
openai/gpt-4
- Context
- 8k tokens
- Completion cap
- 4,096
- Tools
- Yes
- JSON
- Yes
- Released
- 2023-05-28
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-4",
"messages": [{"role": "user", "content": "Hola"}]
}'Get an API keyFrequently asked questions
- What is GPT-4?
- 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. GPT-4 runs on the Geek Hub API (OpenAI-compatible). Model id: openai/gpt-4.
- Is GPT-4 free?
- No. Input is $32.7018 per 1M tokens and output is $65.4036 per 1M tokens on Geek Hub (markup included).
- What is the context length of GPT-4?
- GPT-4 has a 8k tokens context window. It supports up to 4,096 completion tokens.
- Does GPT-4 support tool calling and structured outputs?
- GPT-4 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
- When was GPT-4 released?
- GPT-4 was released on 2023-05-28.
More models from OpenAI
GPT Image 1 (legacy)GPT Image 1 moved to tokenized pricing ($10/$40 per 1M tokens). We show approximate price per 1024×1024 high-quality image. A new 'image-tokens' kind is coming in a future sprint.
GPT-4.1 mini (legacy)1M context at low price. Replaceable by GPT-5.6 Luna or Gemini 2.5 Flash-Lite.
GPT-4o mini TTSLatest generation: prompt-controlled voice (instructions for tone, emotion, pace). 7 voices.
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.1Refinement of GPT-5 at the same price. Better instruction following and tool handling.
GPT-5.4 miniEconomic variant of 5.4. Sub-dollar per 1M input tokens, good balance for chatbots.