OpenAI
GPT-4o
openai/gpt-4o-2024-11-20
This version’s creative writing ability has leveled up–more natural, engaging, and tailored writing to improve relevance & readability.
It’s also better at working with uploaded files, providing deeper insights & more thorough responses.
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 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.
Capability
Vision Support
Tools
Function Calling
Context Window
128,000
Max Output Tokens
4,096
Using GPT-4o with Python API
Using GPT-4o with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="openai/gpt-4o-2024-11-20",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)