Authorization: Bearer ********************{
"contents": [
{
"parts": [
{
"text": "'A yellow kitten is playing with flowers and plants'"
},
{
"inline_data": {
"mime_type": "image/jpeg",
"data": "$IMG_BASE64"
}
}
]
}
]
}curl --location --request POST 'https://api.allmhub.com/v1beta/models/gemini-3-pro-image-preview:generateContent' \
--header 'x-goog-api-key: {{key}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": "'\''A yellow kitten is playing with flowers and plants'\''"
},
{
"inline_data": {
"mime_type": "image/jpeg",
"data": "$IMG_BASE64"
}
}
]
}
]
}'{
"candidates": [
{
"content": {
"parts": [
{
"inlineData": {
"mimeType": "image/jpeg",
"data": "{base64_data}"
}
}
],
"role": "model"
},
"finishReason": "STOP",
"index": 0
}
],
"usageMetadata": {
"promptTokenCount": 54,
"candidatesTokenCount": 1230,
"totalTokenCount": 1456,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 54
}
],
"candidatesTokensDetails": [
{
"modality": "IMAGE",
"tokenCount": 1120
}
],
"thoughtsTokenCount": 172
},
"modelVersion": "gemini-3-pro-image-preview",
"responseId": "EfEqaf-7E4uwjMcPq4qk-AY"
}