[OpenAI](/ai-gateway/models/labs/openai)

# GPT-5 mini

GPT-5 mini delivers GPT-5 family intelligence at a reduced cost tier, making advanced reasoning, coding, and multimodal capabilities accessible for high-volume production workloads where full GPT-5 pricing is impractical. Your use is subject to OpenAI's [Terms](https://openai.com/policies/terms-of-use) & [Privacy](https://openai.com/policies/privacy-policy) Policies.

File InputImplicit CachingReasoningTool UseVision (Image)Web Search

[Use with AI Gateway](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Futm_source%3Dgateway-model-page%26utm_campaign%3Dai-gateway-models&title=Get+Started+with+Vercel+AI+Gateway) [View docs](https://vercel.com/docs/ai-gateway)

AI SDKChat CompletionsMessagesResponses

```
1import { streamText } from 'ai'
2

3const result = streamText({
4  model: 'openai/gpt-5-mini',
5  prompt: 'Why is the sky blue?'
6})
```

[Read docs](https://vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk)

[Overview](/ai-gateway/models/gpt-5-mini) [API](/ai-gateway/models/gpt-5-mini/api) [About](/ai-gateway/models/gpt-5-mini/about) [Providers](/ai-gateway/models/gpt-5-mini/providers) [Throughput](/ai-gateway/models/gpt-5-mini/throughput) [Latency](/ai-gateway/models/gpt-5-mini/latency) [Uptime](/ai-gateway/models/gpt-5-mini/uptime) [Status](/ai-gateway/models/gpt-5-mini/status) [Similar](/ai-gateway/models/gpt-5-mini/similar) [FAQ](/ai-gateway/models/gpt-5-mini/faq)

## [Copy link to heading](#frequently-asked-questions)Frequently Asked Questions

- How does GPT-5 mini compare to GPT-4o mini?

    GPT-5 mini is the next generation of OpenAI's mid-tier model, delivering improved reasoning, coding, and instruction following compared to GPT-4o mini.

- What context window does GPT-5 mini support?

    400K tokens, enabling extensive document processing and conversation history retention.

- When should I use full GPT-5 instead of mini?

    When the task demands maximum capability, particularly on complex reasoning, nuanced writing, or challenging coding problems where the quality gap is measurable and consequential.

- Does GPT-5 mini support function calling and structured outputs?

    Yes. It supports the full API feature set including function calling, structured outputs via JSON schema, vision input, and system messages.

- How does AI Gateway handle authentication for GPT-5 mini?

    AI Gateway accepts a single API key or OIDC token for all requests. You don't embed OpenAI credentials in your application; AI Gateway routes and authenticates on your behalf.

- What is the pricing for GPT-5 mini?

    Pricing appears on this page and updates as providers adjust their rates. AI Gateway routes traffic through the configured provider.

- What are typical latency characteristics?

    This page shows live throughput and time-to-first-token metrics measured across real AI Gateway traffic.