# GPT-5 Chat (Latest)

> GPT-5 Chat Latest is the snapshot of GPT-5 that powered ChatGPT, kept current with the model deployed in the consumer product. It supports a 128,000-token input context with 16,384 output tokens, accepts text and image inputs, and exposes streaming, function calling, and structured outputs along with web search, file search, image generation, code interpreter, and MCP tools.


**ID**: `openai/gpt-5-chat-latest`  
**Creator**: OpenAI  
**Category**: multimodal  
**Context**: 128K 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-chat-latest

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

**Tokenizer**: GPT

**Capabilities**: chat, coding, 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-chat-latest",
  "messages": [
    {
      "role": "user",
      "content": "Say hi in 3 words."
    }
  ]
}'
```

## Providers

| Provider | Input | Output |
| --- | --- | --- |
| openai-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.
