GPT-4o-mini
Approved Data Classifications
Description
GPT-4o Mini is a cost-efficient and advanced AI model developed by OpenAI, designed to deliver powerful capabilities in a smaller, more accessible package. Launched in July 2024, this model excels in multimodal reasoning, supporting both text and image inputs while offering high-quality text outputs. With a context window of 128,000 tokens, GPT-4o Mini can handle extensive conversations and complex tasks efficiently. It outperforms previous models like GPT-3.5 Turbo in various academic benchmarks while maintaining a lower cost structure—charging just 15 cents per million input tokens and 60 cents per million output tokens. This makes it an ideal choice for developers and businesses looking for an intelligent, fast, and budget-friendly AI tool for applications such as chatbots, content creation, and real-time customer interactions.
Capabilities
Model | Training Data | Input | Output | Context Length | Cost (per 1 million tokens) |
---|---|---|---|---|---|
gpt-4o-mini | July 2024 | Image , Text | Text | 128,000 | $0.15/1M input $0.45/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-mini",
"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-mini", # 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-mini",
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 Mini when you need a powerful yet economical AI solution for applications that require multimodal capabilities without the resource demands of larger models. This model is particularly well-suited for scenarios where rapid responses and efficient processing are essential, such as customer support chatbots, interactive educational tools, or content generation platforms. Its ability to handle both text and image inputs makes it ideal for projects that involve visual data, like generating captions for images or providing context for infographics. Additionally, GPT-4o Mini’s competitive pricing allows businesses and developers to leverage advanced AI technology without incurring significant costs, making it a practical choice for startups and smaller enterprises looking to enhance user engagement and streamline operations. Whether you're creating dynamic user experiences or automating content workflows, GPT-4o Mini offers the flexibility and performance needed to meet diverse needs effectively.