The openai/gpt-5 model uses the reasoning_effort field to control reasoning level
Reasoning content is not displayed in the output
Request
Add parameter in header Authorization
Example:Authorization: ********************
or
Body Params application/json
{
"model": "openai/gpt-5",
"messages": [
{
"content": [
{
"text": "What is the sun",
"type": "text"
}
],
"role": "user"
}
],
"reasoning_effort": "high"
}
Request Code Samples
curl --location 'https://api-xmodel.nexconn.ai/v1/chat/completions' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"model": "openai/gpt-5",
"messages": [
{
"content": [
{
"text": "What is the sun",
"type": "text"
}
],
"role": "user"
}
],
"reasoning_effort": "high"
}'
Responses
application/json
Modified at 2026-04-24 10:39:56