GPT-4o Mini

gpt-4o-mini by OpenAI Released July 18, 2024
ReasoningFunction callingStructured outputPrompt cachingWeb searchComputer useImage inputFile inputAudio inputVideo inputEU hostingFree endpointUp to % off
Input from
$0.15 / 1M
Output from
$0.6 / 1M
Cached input from
$0.075 / 1M
Context window
128K
Endpoints
4
from 3 providers
Regions
Monde, Europe, États-Unis

About GPT-4o Mini

GPT-4o mini est le tout dernier modèle d'OpenAI après GPT-4 Omni ; il prend en charge à la fois les entrées textuelles et les entrées sous forme d'images, et génère des sorties textuelles.

GPT-4o Mini est un modèle conversationnel développé par OpenAI, disponible sur Eden AI via 4 endpoints chez 3 fournisseurs, à partir de 0,15 $ par million de tokens en entrée et 0,6 $ par million de tokens en sortie, avec une fenêtre de contexte allant jusqu'à 128K tokens.

Providers and prices

4 endpoints from 3 providers, cheapest first, in USD per million tokens. Every one is called with the same Eden AI key: pin one with its endpoint ID, or let Eden AI route for you. .

Endpoint
Region
Context
Input / 1M
Output / 1M
Cached / 1M
Supports
Microsoft AzureOfficial−%microsoft/gpt-4o-mini
Monde
128K
$0.15$0.15
$0.6
$0.075
ReasoningToolsJSONCacheVisionWeb
OpenAI (États-Unis)Official−%openai/gpt-4o-mini
États-Unis
128K
$0.15$0.15
$0.6
$0.075
ReasoningToolsJSONCacheVisionWeb
Microsoft Azure (Europe)Official−%azure/gpt-4o-mini
Europe
128K
$0.165$0.165
$0.66
$0.0825
ReasoningToolsJSONCacheVisionWeb
Microsoft Azure (États-Unis)Official−%azure/gpt-4o-mini@us
États-Unis
128K
$0.165$0.165
$0.66
$0.0825
ReasoningToolsJSONCacheVisionWeb

Performance

Measured on real Eden AI traffic over the last 30 days. Endpoints with too little traffic are not shown.

Fastest first token
0.32 s
Microsoft Azure (Europe)
Lowest latency
0.76 s
OpenAI (États-Unis)
Highest throughput
42.08 tok/s
Microsoft Azure (Europe)
Best availability
100%
Microsoft Azure (Europe)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Microsoft Azure
0.97 s
1.21 s
2.96 s
20.71 tok/s
100%
0.19%
0%
0%
OpenAI (États-Unis)
0.49 s
0.76 s
2.29 s
31.33 tok/s
100%
29.7%
1.07%
0.18%
Microsoft Azure (Europe)
0.32 s
0.94 s
3.16 s
42.08 tok/s
100%
16.8%
0.97%
5.41%
Microsoft Azure (États-Unis)
s
s
s
tok/s
%
%
%
%

Estimate your monthly cost

Enter your expected volume to compare every endpoint at once.

Call GPT-4o Mini with Eden AI

Use the model ID to let Eden AI pick an endpoint, or an endpoint ID from the table above to pin one.

import requests

response = requests.post(
    "https://api.edenai.run/v3/chat/completions",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "",
        "messages": [{"role": "user", "content": "Hello!"}],
    },
)
print(response.json())

Questions about GPT-4o Mini

On Eden AI, prices for this model start at $0.15 per million input tokens and $0.6 per million output tokens. Prices differ by endpoint; the providers table lists each one. .

Up to 128K tokens, depending on the endpoint.

4 endpoints from 3 providers, available in: Monde, Europe, États-Unis. All of them are called with the same Eden AI API key.

Yes. At least one endpoint is hosted in Europe; pin it with its endpoint ID from the providers table to keep requests in the EU.

Over the last 30 days, the fastest first token was 0.32 s (Microsoft Azure (Europe)) and the highest throughput was 42.08 tokens per second (Microsoft Azure (Europe)).