# OpenAI: GPT 4o Mini 2024 07-18

GPT-4o mini is OpenAI's small GPT-4o-generation model for focused, well-scoped tasks. It reads text and images and replies in text.

- **Model id:** `opencheap/gpt-4o-mini-0718`
- **Price per 1M tokens:** $0.15 input / $0.60 output
- **Cached input:** $0.075 per 1M tokens
- **Context:** 128K tokens, 16K max output

## Providers

2 providers. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| AiHubMix · quantization unknown | $0.15 | $0.075 | $0.60 | — | — | — | — | — |
| OpenAI · quantization unknown | $0.16 | $0.079 | $0.63 | 0.57 s | 59 tok/s | 100 % | 128K | 16K |

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **AiHubMix:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **OpenAI:** `temperature`, `top_p`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/gpt-4o-mini-0718#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/gpt-4o-mini-0718`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/gpt-4o-mini-0718", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/gpt-4o-mini-0718",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/gpt-4o-mini-0718",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About GPT 4o Mini 2024 07-18

GPT 4o Mini 2024 07-18 costs from $0.15 per 1M input tokens and $0.60 per 1M output tokens on OpenCheap, with cached input at $0.075 per 1M tokens. Its list price is $0.15 per 1M input tokens and $0.60 per 1M output tokens, the same as here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0021, and 1,000 such requests about $2.10. Prices as of 2026-12-04 12:06 UTC.

2 providers serve GPT 4o Mini 2024 07-18 on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.

GPT 4o Mini 2024 07-18 is one of [114 OpenAI models](https://opencheap.si/models/lab/openai) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the GPT 4o Mini 2024 07-18 API cost per 1M tokens?

GPT 4o Mini 2024 07-18 costs from $0.15 per 1M input tokens and $0.60 per 1M output tokens on OpenCheap, with cached input at $0.075 per 1M tokens. Prices as of 2026-12-04 12:06 UTC.

### What does one GPT 4o Mini 2024 07-18 request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0021, and 1,000 such requests about $2.10. Every answer reports its own cost in usage.cost.

### Is GPT 4o Mini 2024 07-18 cheaper on OpenCheap than its list price?

Its list price is $0.15 per 1M input tokens and $0.60 per 1M output tokens, the same as here.

### Which providers serve GPT 4o Mini 2024 07-18?

2 providers serve GPT 4o Mini 2024 07-18 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of GPT 4o Mini 2024 07-18?

Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.

### How do I call the GPT 4o Mini 2024 07-18 API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gpt-4o-mini-0718. One OpenCheap key works for every model; the rest of your code stays the same.

## More from OpenAI

- [gpt-oss-120b](https://opencheap.si/models/gpt-oss-120b) (`gpt-oss-120b`): $0.0049 / $0.021 per 1M · 131K context
- [gpt-oss-20b](https://opencheap.si/models/gpt-oss-20b) (`gpt-oss-20b`): $0.0003 / $0.0015 per 1M · 131K context
- [GPT 5.5](https://opencheap.si/models/gpt-5.5) (`gpt-5.5`): $2.00 / $12.00 per 1M · 1M context
- [chat-latest](https://opencheap.si/models/chat-latest) (`chat-latest`): $5.25 / $31.48 per 1M · 272K context
- [Codex Mini](https://opencheap.si/models/codex-mini-latest) (`codex-mini-latest`): $1.50 / $6.00 per 1M
- [gpt-3.5-turbo](https://opencheap.si/models/gpt-3.5-turbo) (`gpt-3.5-turbo`): $0.52 / $1.57 per 1M · 4K context
- [GPT-3.5 Turbo (older v0613)](https://opencheap.si/models/gpt-3.5-turbo-0613) (`gpt-3.5-turbo-0613`): $1.05 / $2.10 per 1M · 4K context
- [GPT-3.5 Turbo 16k](https://opencheap.si/models/gpt-3.5-turbo-16k) (`gpt-3.5-turbo-16k`): $3.15 / $4.20 per 1M · 16K context

[All 114 OpenAI models](https://opencheap.si/models/lab/openai)

## Similar models

- [LFM2.5 24B A2B](https://opencheap.si/models/lfm-2.5-24b-a2b): Liquid AI · 128K context · $0.047 / $0.66 per 1M · [Compare with GPT 4o Mini 2024 07-18](https://opencheap.si/compare/gpt-4o-mini-0718-vs-lfm-2.5-24b-a2b)
- [lfm2.5-24b-a2b](https://opencheap.si/models/lfm2.5-24b-a2b): Other labs · 128K context · $0.05 / $0.70 per 1M · [Compare with GPT 4o Mini 2024 07-18](https://opencheap.si/compare/gpt-4o-mini-0718-vs-lfm2.5-24b-a2b)
- [Cydonia 24B V4.1](https://opencheap.si/models/cydonia-24b-v4.1): TheDrummer · 131K context · $0.32 / $0.53 per 1M · [Compare with GPT 4o Mini 2024 07-18](https://opencheap.si/compare/gpt-4o-mini-0718-vs-cydonia-24b-v4.1)
- [meta-llama/Llama-3.1-70B-Instruct](https://opencheap.si/models/llama-3.1-70b): Meta · 131K context · $0.42 / $0.42 per 1M, 14 % cheaper · [Compare with GPT 4o Mini 2024 07-18](https://opencheap.si/compare/gpt-4o-mini-0718-vs-llama-3.1-70b)
- [Qwen/Qwen2.5-72B-Instruct](https://opencheap.si/models/qwen2.5-72b): Qwen · 131K context · $0.36 / $0.40 per 1M, 20 % cheaper · [Compare with GPT 4o Mini 2024 07-18](https://opencheap.si/compare/gpt-4o-mini-0718-vs-qwen2.5-72b)
- [Phi 4 Mini Instruct](https://opencheap.si/models/phi-4-mini): Microsoft · 128K context · $0.12 / $0.48 per 1M, 20 % cheaper · [Compare with GPT 4o Mini 2024 07-18](https://opencheap.si/compare/gpt-4o-mini-0718-vs-phi-4-mini)

[Compare GPT 4o Mini 2024 07-18 with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/gpt-4o-mini-0718 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
