GPT-5 Nano API

openai/gpt-5-nano-2025-08-07
GPT-5 nano is a lightweight, high-efficiency variant of the GPT-5 large language model, offering ultra-fast, cost-effective multimodal AI capabilities.
Context
400K tokens
Input
$0.065 / 1M tokens
Output
$0.52 / 1M tokens
Released
Sep 30, 2025

Overview

GPT-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.

‍

Technical Specifications

Context Window and Token Capacity

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.

Performance Benchmarks

  • Speed & Latency: Optimized for low-latency inference with trade-offs favoring faster response times over the deepest reasoning layers of full GPT-5.
  • Accuracy: Retains strong few-shot learning, multimodal understanding, and factual correctness, though with slightly less complexity handling than GPT-5 and GPT-5 mini.
  • Multilingual support: Comprehensive, leveraging GPT-5’s expanded language capabilities.

Architecture Highlights

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.

API Pricing

  • Input tokens: $0.065 per million tokens
  • Output tokens: $0.52 per million tokens

Core Features & Capabilities

  • Model Scale: Smaller parameter count than GPT-5 and mini, designed for speed and resource efficiency without substantial sacrifices in contextual understanding or multimodal tasks.
  • Multimodality: Supports text-to-text and vision (image-to-text) input modalities through the API. Audio, video, and code input functionalities remain targeted for future expansions in the unified GPT-5 framework.
  • Reasoning: Capable of stepwise logical reasoning and complex problem solving, though optimized for faster execution over the most compute-intensive scenarios.
  • Fine-Tuning & Adaptability: Enables flexible customization for domain-specific tasks and enterprise needs.
  • Bias & Safety: Implements advanced alignment, bias mitigation, and safety features consistent with GPT-5’s standards.

Code Sample

Use Cases & Applications

  • Fast multimodal content understanding and generation in cost-sensitive environments.
  • Scalable deployment for lightweight software engineering support, including code suggestions and debugging.
  • Real-time large-scale document analysis with image context integration.
  • Educational tools and research assistants requiring concise and accurate multi-step instruction processing.

‍

Comparison with Other Models

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.

Uptime and performance

  • Uptime (24h): 84.0%
  • Uptime (7d): 98.0%
  • Availability (24h): 99.0%
  • Error rate (24h): 1.0%
  • End-to-end latency (24h median): 3.6s
  • Time to first token (24h median): 4.6s
  • Throughput (24h median): 187.4 tok/s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

  • Fast multimodal content understanding and generation in cost-sensitive environments.
  • Scalable deployment for lightweight software engineering support, including code suggestions and debugging.
  • Real-time large-scale document analysis with image context integration.
  • Educational tools and research assistants requiring concise and accurate multi-step instruction processing.

‍

How to use GPT-5 Nano API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to openai/gpt-5-nano-2025-08-07.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "openai/gpt-5-nano-2025-08-07",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = 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": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST 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":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

GPT-5 Nano API Pricing

TypePrice
Input
$0.065 / 1M tokens
Output
$0.52 / 1M tokens
Cached input
$0.0065 / 1M tokens

GPT-5 Nano Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
13
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026
Math
83.7
Composite score across standardised mathematics evaluations, measured independently by Artificial AnalysisSourceSeptember 12, 2026

GPT-5 Nano vs other models

ModelInputOutputContextBest for
GPT-5 Nano
This page
$0.065 / 1M tokens
$0.52 / 1M tokens
400K tokens
Reasoning + agents
$6.5 / 1M tokens
$39 / 1M tokens
1M tokens
Reasoning + agents
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Balanced coding + agents
$3.9 / 1M tokens
$19.5 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.95 / 1M tokens
$11.7 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

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 is priced at input $0.065 / 1M tokens, output $0.52 / 1M tokens, cached input $0.0065 / 1M tokens.

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.

Yes, GPT-5 Nano supports structured output generation.

Start building with GPT-5 Nano

Get API Key
1000+ models, one API.