{
"contents": [
{
"parts": [
{
"text": "Explain how AI works in a few words"
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingBudget": 128,
"includeThoughts": true
}
}
}curl --location --request POST '/v1beta/models/gemini-2.5-pro:generateContent' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": "Explain how AI works in a few words"
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingBudget": 128,
"includeThoughts": true
}
}
}'{}