GPT-4o-mini (2024-07-18)

OpenAI chattool_usevision

API ID: openai/gpt-4o-mini-2024-07-18

Input Price
$0.15
/1M tokens
Output Price
$0.60
/1M tokens
Cached Input
$0.07
Save 50%

About GPT-4o-mini (2024-07-18)

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable than other recent frontier models, and more than 60% cheaper than [GPT-3.5 Turbo](/models/openai/gpt-3.5-turbo). It maintains SOTA intelligence, while being significantly more cost-effective. GPT-4o mini achieves an 82% score on MMLU and presently ranks higher than GPT-4 on chat preferences [common leaderboards](https://arena.lmsys.org/). Check out the [launch announcement](https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/) to learn more. #multimodal

๐Ÿ’ฐ
Price Ranking
#780 lowest price among 1240 Chat models

Model Specifications

Context Length
128k
Max Output
16k
Release Date
2024-07-18
Capabilities
chat tool_use vision
Input Modalities
textimagefile
Output Modalities
text

Best For

  • Image analysis, document understanding, visual Q&A
  • Conversations, content writing, general assistance

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.25
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$7.65
/month
1000 tickets/day, ~800 tokens each

OpenAI Model Lineup

Compare all models from OpenAI to find the best fit

Model Input Output Context Capabilities
GPT-4o-mini (2024-07-18) Current Free Free 128k chat tool_use vision
GPT-3.5 Turbo 16k (older v1106) Free Free 16k chat
GPT-3.5 Turbo 16k (older v1106) Free Free 16k chat
GPT-4 32k Free Free 33k chat
GPT-4 32k Free Free 33k chat
GPT-4 32k (older v0314) Free Free 33k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Thedrummer Rocinante 12B
Input: $0.25
Output: $0.50
Context: 66k
Alibaba Qwen Qwen3 VL 30B A3B Instruct
Input: $0.15
Output: $0.60
Context: 262k
Meta Llama 4 Maverick
Input: $0.15
Output: $0.60
Context: 1.0M
Alibaba Qwen Qwen2.5 VL 72B Instruct
Input: $0.15
Output: $0.60
Context: 128k

๐Ÿš€ Quick Start

Get started with GPT-4o-mini (2024-07-18) API

OpenAI Python SDK
from openai import OpenAI
client = OpenAI()

response = client.chat.completions.create(
    model="openai/gpt-4o-mini-2024-07-18",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)