GPT-4o

GPT-4o ("o" for "omni") is OpenAI's latest AI model, supporting both text and image inputs with text outputs. It maintains the intelligence level of [GPT-4 Turbo](/models/openai/gpt-4-turbo) while being twice as fast and 50% more cost-effective. GPT-4o also offers improved performance in processing non-English languages and enhanced visual capabilities. For benchmarking against other models, it was briefly called ["im-also-a-good-gpt2-chatbot"](https://twitter.com/LiamFedus/status/1790064963966370209) #multimodal

ChatOpenAI128k tokens$2.7251 / $10.9006 · 1M

openai/gpt-4o

Context
128k tokens
Completion cap
16,384
Tools
Yes
JSON
Yes
Released
2024-05-13

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-4o",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is GPT-4o?
GPT-4o ("o" for "omni") is OpenAI's latest AI model, supporting both text and image inputs with text outputs. It maintains the intelligence level of [GPT-4 Turbo](/models/openai/gpt-4-turbo) while being twice as fast and 50% more cost-effective. GPT-4o also offers improved performance in processing non-English languages and enhanced visual capabilities. For benchmarking against other models, it was briefly called ["im-also-a-good-gpt2-chatbot"](https://twitter.com/LiamFedus/status/1790064963966370209) #multimodal GPT-4o runs on the Geek Hub API (OpenAI-compatible). Model id: openai/gpt-4o.
Is GPT-4o free?
No. Input is $2.7251 per 1M tokens and output is $10.9006 per 1M tokens on Geek Hub (markup included).
What is the context length of GPT-4o?
GPT-4o has a 128k tokens context window. It supports up to 16,384 completion tokens.
Does GPT-4o support tool calling and structured outputs?
GPT-4o accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was GPT-4o released?
GPT-4o was released on 2024-05-13.

More models from OpenAI