Speed
Output tokens / second
Custom pricing for production workloads
GPT-5 mini delivers GPT-5 capabilities in a smaller, faster package optimized for cost-sensitive applications.
GPT-5 Mini offers a lightweight yet powerful solution within the GPT-5 lineup, delivering efficient multimodal AI with text and vision inputs.
openai/gpt-5-mini-2025-08-07https://api.aimlapi.com/v1GPT-5 Mini is a streamlined variant of the GPT-5 family designed to offer fast, efficient multimodal AI capabilities with a significantly lower cost while retaining the core advanced features of GPT-5. It supports text-to-text and image-to-text tasks, making it suitable for a wide range of applications where high throughput and cost efficiency are essential.
vs GPT-4.1 Mini: GPT-5 Mini supports a larger 400,000 token context window and enhanced multimodal image-to-text abilities, priced more cost-effectively, whereas GPT-4.1 Mini balances intelligence, speed, and cost but with smaller context and more limited modality support.
See how GPT-5 Mini compares in generation speed. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 9 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.25 | 1M tokens |
| Output | $2 | 1M tokens |
| Cached input | $0.025 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.25 | $2 | |
| $0.1 | $0.5 | |
| $1 | $5 | |
| $2 | $10 | |
| $2.12 | $10.58 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-5-mini-2025-08-07",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "openai/gpt-5-mini-2025-08-07",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "openai/gpt-5-mini-2025-08-07",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());GPT-5 Mini has a 400,000 tokens context window and can return up to 128,000 tokens.
GPT-5 Mini takes image, text as input and returns text.
Use openai/gpt-5-mini-2025-08-07 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GPT-5 Mini costs $0.25 input and $2 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GPT-5 Mini can stream responses as they are generated.
Yes, GPT-5 Mini accepts image input alongside text.
GPT-5 Mini was built by OpenAI.