# GPT-5

> GPT-5 is the previous flagship reasoning model in the GPT-5 family, built for coding and agentic tasks with configurable reasoning effort (minimal, low, medium, high). It supports a 400,000-token input context with 128,000 output tokens, text and image inputs, and exposes streaming, function calling, structured outputs, and tool integrations including web search, file search, image generation, code interpreter, and MCP. OpenAI recommends GPT-5.1 for new workloads.


**ID**: `openai/gpt-5`  
**Creator**: OpenAI  
**Category**: multimodal  
**Context**: 400K tokens  
**Pricing**: $1.25 / $10.00 per 1M · billed by your provider (BYOK)  
**Released**: 2025-08-07  
**Web page**: https://anyrouter.dev/model/openai/gpt-5

**Input modalities**: text, image  
**Output modalities**: text  

**Tokenizer**: GPT

**Capabilities**: chat, coding, reasoning, streaming, function-calling, vision

## Usage

**Endpoint**: `POST https://anyrouter.dev/api/v1/chat/completions`

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-5",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openai-byok | $1.25/M (list) | $10.00/M (list) |
| openrouter-byok | $1.25/M (list) | $10.00/M (list) |
| opencode-zen-byok | $1.25/M (list) | $10.00/M (list) |
| cline-byok | $1.25/M (list) | $10.00/M (list) |
| router-byok | $1.25/M (list) | $10.00/M (list) |
| vercel-byok | $1.25/M (list) | $10.00/M (list) |

BYOK routes are billed by your own provider key — AnyRouter charges $0. Rates marked (list) are the provider's published list price.

## Benchmarks

- **GPQA Diamond**: 0.8
- **HLE**: 0.2
- **τ²-Bench Telecom**: 0.9
- **Aider Polyglot**: 0.9
- **SciCode**: 0.4

Benchmark data from [Aider](https://aider.chat/docs/leaderboards/) (Apache-2.0).
