{
"contents": [
{
"parts": [
{
"text": "啄木鸟能啄几棵树?"
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingBudget": 1024,
"includeThoughts": true
}
}
}curl --location -g --request POST 'http://api.example.com/v1beta/models/gemini-2.5-flash:generateContent?key=sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": "啄木鸟能啄几棵树?"
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingBudget": 1024,
"includeThoughts": true
}
}
}'{}