GPT-4o
Approved Data Classifications
Description
GPT-4o is an advanced multimodal AI model developed by OpenAI, launched in May 2024, that integrates text, audio, and visual inputs and outputs into a single cohesive system. The "o" in GPT-4o stands for "omni," emphasizing its capability to process and understand a diverse range of data types simultaneously. This model enhances user interaction by enabling real-time conversations, complex reasoning, and content generation across multiple formats, including text summarization, image analysis, and audio responses. With an impressive context window of up to 128,000 tokens, GPT-4o can maintain coherence over extended dialogues and analyze large datasets effectively. Its design allows for more natural human-computer interactions, making it suitable for a variety of applications, from creative content creation to technical problem-solving.
Capabilities
Model | Training Data | Input | Output | Context Length | Cost (per 1 million tokens) |
---|---|---|---|---|---|
gpt-4o | May 2024 | Image , Text | Text | 128,000 | $5.00/1M input $15.00/1M output |
1M
represents 1 Million Tokens- All prices listed are based on 1 Million Tokens
Availability
Cloud Provider
Usage
- curl
- python
- javascript
curl -X POST https://api.ai.it.ufl.edu/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API_TOKEN>" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Write a haiku about an Alligator."
}
]
}'
from openai import OpenAI
client = OpenAI(
api_key="your_api_key",
base_url="https://api.ai.it.ufl.edu/v1"
)
response = client.chat.completions.create(
model="gpt-4o", # model to send to the proxy
messages = [
{ role: "system", content: "You are a helpful assistant." },
{
"role": "user",
"content": "Write a haiku about an Alligator."
}
]
)
print(response.choices[0].message)
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'your_api_key',
baseURL: 'https://api.ai.it.ufl.edu/v1'
});
const completion = await openai.chat.completions.create({
model: "gpt-4o",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{
role: "user",
content: "Write a haiku about an Alligator.",
},
],
});
print(completion.choices[0].message)
When to use
You might choose to use GPT-4o when you require a versatile AI solution capable of handling complex tasks that involve multiple data types, such as text, images, and audio. This model is particularly beneficial for applications that demand rich, interactive experiences, such as virtual assistants, educational tools, and creative content generation. If your project involves analyzing visual data alongside textual information—like generating descriptive captions for images or creating multimedia presentations—GPT-4o excels in providing coherent and contextually relevant outputs. Additionally, its extensive context window allows for in-depth discussions and analyses over longer interactions, making it ideal for research, brainstorming sessions, or any scenario where maintaining continuity is crucial. Whether you're developing innovative applications in marketing, education, or entertainment, GPT-4o offers the flexibility and capability needed to enhance user engagement and deliver high-quality results.