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)
References
- OpenAI
https://openai.com/- LLM Stats
https://llm-stats.com- Artificial Analysis
https://artificialanalysis.ai