OpenAI

GPT-4o Mini

Chat
openai/gpt-4o-mini

OpenAI's advanced small model, 60% cheaper than GPT-3.5 Turbo while scoring 82% on MMLU. Optimized for cost-effective tasks requiring strong language understanding and generation capabilities.

Context Window
128K
Max Output Tokens
16K
Released
2024-07-18
Capabilities
VisionFunction CallingPrompt Caching
Available Providers
AzureAzure
Supported Protocols
OpenAIopenai

Providers

AzureAzure
Input Tokens
$0.15/M
Output Tokens
$0.6/M
Cache Read
$0.075/M
Web Search
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions/v1/responses

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4o-mini",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Frequently Asked Questions

GPT-4o Mini on Ofox.ai costs $0.15/M per million input tokens and $0.6/M per million output tokens. Pay-as-you-go, no monthly fees.