OpenAI

GPT-4o Mini

Chat-15%
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.

128K context window
16K max output tokens
Released: 2024-07-18
Supported Protocols:OpenAIopenai
Available Providers:AzureAzure
Capabilities:VisionFunction CallingPrompt Caching

Providers

AzureAzure
-15%
Input Tokens
$0.128/M
$0.15/M
Output Tokens
$0.51/M
$0.6/M
Cache Read
$0.0638/M
$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.