GPT-5 Chat is designed for advanced, natural, multimodal, and context-aware conversations for enterprise applications.
Modalities
Input Price
$1.25per 1M
Output Price
$10per 1M
Context
128K
Weekly Tokens
5.37B
Released
Aug 7, 2025
Create an API key from your OpenRouter dashboard and set it as an environment variable:
Use openai/gpt-5-chat with the OpenRouter API:
OpenRouter provides an OpenAI-compatible completion API to 400+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.
In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.
For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.
Add "stream": true to your request body to receive responses as server-sent events:
https://openrouter.ai/api/v1/chat/completionsBearer $OPENROUTER_API_KEYapplication/jsonoptional — your site URL, for rankingsoptional — your site name, for rankingsopenai/gpt-5-chat| Name | Type | Default | Description |
|---|---|---|---|
structured_outputs | boolean | — | If the model can return structured outputs using response_format json_schema. |
response_format | map | — | Forces the model to produce specific output format. |
seed | integer | — | If specified, the inferencing will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. |
max_tokens | integer | — | This sets the upper limit for the number of tokens the model can generate in response. |