gemini-2.5-flash Reasoning
You can use the reasoning_effort and thinking fields to control reasoning length
Request
Add parameter in header Authorization
Example:Authorization: ********************
or
Body Params application/json
{
"model": "gemini-2.5-flash",
"messages": [
{
"content": [
{
"text": "What is the sun",
"type": "text"
}
],
"role": "user"
}
],
"reasoning_effort": "minimal"
}
Request Code Samples
curl --location 'https://api-xmodel.nexconn.ai/v1/chat/completions' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gemini-2.5-flash",
"messages": [
{
"content": [
{
"text": "What is the sun",
"type": "text"
}
],
"role": "user"
}
],
"reasoning_effort": "minimal"
}'
Responses
application/json
Modified at 2026-04-24 10:39:56