Speed
Output tokens / second
Custom pricing for production workloads
GPT-5 nano is the most lightweight GPT-5 variant, built for ultra-low latency use cases.
It supports extensive context processing and key NLP tasks such as summarization and classification, making it ideal for developers and enterprises needing fast, affordable, and versatile AI across text-to-text and image-to-text workflows.
openai/gpt-5-nano-2025-08-07https://api.aimlapi.com/v1GPT-5 nano is a streamlined variant of OpenAI's GPT-5 model, designed to deliver advanced multimodal reasoning and contextual understanding with significantly reduced computational overhead. It serves as an efficient alternative for developers and enterprises prioritizing fast inference and cost-effectiveness while retaining key features of the full GPT-5 system.
GPT-5 nano supports a large input context size of up to 400K tokens, matching GPT-5 full scale, enabling it to handle extensive documents and multimodal inputs such as text-to-text and image-to-text tasks efficiently.
GPT-5 nano inherits the advanced transformer framework of GPT-5 with optimized attention and efficient utilization of sparsity and mixture-of-experts layers tuned for lightweight operation. It balances architectural scale to sustain high throughput and lower compute costs while focusing on core reasoning and multimodal processing capabilities.
VS GPT-5 mini: GPT-5 nano focuses more on the fastest execution and lowest cost with basic multimodal support while GPT-5 mini balances speed and reasoning depth, supporting some expanded workflows with slightly higher pricing.
VS GPT-4o: GPT-5 nano significantly outperforms GPT-4o in reasoning accuracy, multimodal capabilities, and hallucination reduction, while maintaining much lower latency and cost compared to GPT-4o’s heavier but simpler model design.
VS OpenAI o3: GPT-5 nano provides more reliable fact-based answers and advanced reasoning than o3, with specialized alignment and safety mechanisms, delivering highly cost-efficient multimodal AI suitable for real-time applications.
See how GPT-5 Nano compares in generation speed. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 17 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.
Reasoning across long documents of about 100k tokens.
Following precise instructions about the shape of the answer.
Customer support agent tasks with tool calls.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.05 | 1M tokens |
| Output | $0.4 | 1M tokens |
| Cached input | $0.005 | 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.05 | $0.4 | |
| $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-nano-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-nano-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-nano-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 Nano has a 400,000 tokens context window and can return up to 128,000 tokens.
GPT-5 Nano takes image, text as input and returns text.
Use openai/gpt-5-nano-2025-08-07 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GPT-5 Nano became available on September 30, 2025.
GPT-5 Nano costs $0.05 input and $0.4 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GPT-5 Nano can stream responses as they are generated.
Yes, GPT-5 Nano accepts image input alongside text.
GPT-5 Nano was built by OpenAI.
It is the most lightweight variant of GPT-5, built for ultra-low latency use cases.
Yes, it supports function calling and parallel tool calls.