---
title: OpenAI: GPT 5 Nano API | Text Generation | ModelsLab
description: Compact LLM optimized for low-latency tasks like summarization and classification; 400K token context, 128K output, text/image input, $0.05/$0.40 per.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/openai-gpt-5-nano/api.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/openai-gpt-5-nano/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T09:43:51.404255Z
---

OpenAI: GPT-5 Nano
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5-nano/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/openai-gpt-5-nano.md)

openai-gpt-5-nano openai Closed Source Model $0.225000 / call

OpenAI: GPT-5 Nano
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### OpenAI: GPT-5 Nano

openai openai-gpt-5-nano

Copy model ID

PricingInput $0.05 / 1M tokens

Output $0.40 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Llama-3.2-90B-Vision-Instruct-Turbo)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta)

 [Meta Llama 3.2 90B Vision Instruct Turbo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Llama-3.2-90B-Vision-Instruct-Turbo)

[TR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/thedrummer-rocinante-12b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [TheDrummer: Rocinante 12B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/thedrummer-rocinante-12b)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-coder-next)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 Coder Next

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-coder-next)

[AC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-sonnet-4)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Anthropic: Claude Sonnet 4

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-sonnet-4)

[MS](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/mistral_ai/mistralai-Mistral-Small-24B-Instruct-2501)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/mistral_ai)

 [Mistral Small (24B) Instruct 25.01

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/mistral_ai/mistralai-Mistral-Small-24B-Instruct-2501)

[Q8](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-8B-Base)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3 8B Base

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-8B-Base)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-Llama-3-8b-chat-hf)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Meta Llama 3 8B Instruct Reference

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/meta-llama-Llama-3-8b-chat-hf)

[RL](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/refuel_ai/togethercomputer-Refuel-Llm-V2-Small)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/refuel_ai)

 [Refuel LLM V2 Small

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/refuel_ai/togethercomputer-Refuel-Llm-V2-Small)

[RR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/relace-relace-search)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Relace: Relace Search

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/relace-relace-search)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.3-70B-Instruct-Turbo-test)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Meta Llama 3.3 70B Instruct Turbo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Llama-3.3-70B-Instruct-Turbo-test)

[![Mixtral-8x7B Instruct v0.1](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/67dabe3d-a00a-4cc4-a158-136c8f189137.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Mixtral-8x7B-Instruct-v0.1)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Mixtral-8x7B Instruct v0.1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/mistralai-Mixtral-8x7B-Instruct-v0.1)

[DR](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-r1-distill-llama-70b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [DeepSeek: R1 Distill Llama 70B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/deepseek-deepseek-r1-distill-llama-70b)

[Q4](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-4B-Instruct-2507)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3 4B Instruct 2507

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-4B-Instruct-2507)

[QC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-Coder-480B-A35B-Instruct-FP8)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Qwen3 Coder 480B A35B Instruct Fp8

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/Qwen-Qwen3-Coder-480B-A35B-Instruct-FP8)

[DV](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepseek-ai-DeepSeek-V4-Pro)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Deepseek V4 Pro

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepseek-ai-DeepSeek-V4-Pro)

[GN](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-2.5-flash-image)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Google: Nano Banana (Gemini 2.5 Flash Image)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/google-gemini-2.5-flash-image)

[AA](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/aion-labs-aion-1.0)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [AionLabs: Aion-1.0

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/aion-labs-aion-1.0)

[PL](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/poolside-laguna-m.1-free)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Poolside: Laguna M.1 (free)

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/poolside-laguna-m.1-free)

About OpenAI: GPT-5 Nano
---

GPT-5-Nano is the smallest and fastest variant in the GPT-5 system, optimized for developer tools, rapid interactions, and ultra-low latency environments. While limited in reasoning depth compared to its larger...

### Technical Specifications

Model IDopenai-gpt-5-nanoCategoryLLM ModelsTaskText GenerationPrice$0.225000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate OpenAI: GPT-5 Nano into your application with a single API call. Get your API key from the [pricing page](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "openai-gpt-5-nano",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/openai-gpt-5-nano/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

OpenAI: GPT-5 Nano API costs $0.225000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about OpenAI: GPT-5 Nano](https://modelslab-frontend-v2-927501783998.us-east4.run.app/openai-gpt-5-nano) [Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Openai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

OpenAI: GPT-5 Nano FAQ
---

### What is OpenAI: GPT-5 Nano?

GPT-5-Nano is the smallest and fastest variant in the GPT-5 system, optimized for developer tools, rapid interactions, and ultra-low latency environments. While limited in reasoning depth compared to its larger...

### How do I use the OpenAI: GPT-5 Nano API?

You can integrate OpenAI: GPT-5 Nano into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "openai-gpt-5-nano" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does OpenAI: GPT-5 Nano cost?

OpenAI: GPT-5 Nano costs $0.225000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the OpenAI: GPT-5 Nano model ID?

The model ID for OpenAI: GPT-5 Nano is "openai-gpt-5-nano". Use this ID in your API requests to specify this model.

### Does OpenAI: GPT-5 Nano have a free tier?

Yes, ModelsLab offers a free tier that lets you try OpenAI: GPT-5 Nano and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-05-13*