AI Models/OpenAI/OpenAI: GPT-4o-mini (2024-07-18)
OpenAIChat

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

openai/gpt-4o-mini-2024-07-18
128KContext Window
16KMax Output
Supported Protocols:seedmax_tokensresponse_formatstructured_outputstemperaturetop_pstopfrequency_penaltypresence_penaltyweb_search_optionslogit_biaslogprobstop_logprobstoolstool_choice
Normal

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

Capabilities

👁 Vision🔧 Function CallingText GenerationCode GenerationAnalysis & ReasoningReasoning

Technical Specs

Input Modality
Text、Image、Text
Output Modality
Text
Arch
Default Temperature
0.7
Default Top_P
1

Pricing

Pay per use, no monthly fees
Billing TypeUnitPrice
Text Input$0.1500/M tokens
Text Output$0.6000/M tokens
Cache Read$0.0750/M tokens
Image Input< $0.001/张

Quick Start

from openai import OpenAI

client = OpenAI(
    base_url="https://api.uniontoken.ai/v1",
    api_key="YOUR_UNIONTOKEN_API_KEY",
)

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

print(response.choices[0].message.content)

FAQ

Ready to get started?

Get 1M free tokens on registration, no monthly fees or minimum spend

Register Now →