curl --location --request POST '/v1beta/models/:generateContent/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"role": "string",
"parts": [
{
"text": "string"
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"includeThoughts": true
},
"responseModalities": [
"string"
],
"imageConfig": {
"aspectRatio": "string",
"imageSize": "string"
}
}
}'{
"candidates": [
{
"content": {
"role": "string",
"parts": [
{}
]
},
"finishReason": "string",
"safetyRatings": [
{}
]
}
],
"usageMetadata": {
"promptTokenCount": 0,
"candidatesTokenCount": 0,
"totalTokenCount": 0
}
}