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