Authorization: ********************{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Hi, This is a picture of me. Can you add a llama next to me"
},
{
"inline_data": {
"mime_type": "image/jpeg",
"data": "base64_encoded_image_data"
}
}
]
}
],
"generationConfig": {
"temperature": 0.7,
"maxOutputTokens": 1024
},
"responseModalities": [
"IMAGE"
]
}curl --location --request POST '/api/v1beta/models/gemini-2.5-flash-image-preview:generateContent?key' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Hi, This is a picture of me. Can you add a llama next to me"
},
{
"inline_data": {
"mime_type": "image/jpeg",
"data": "base64_encoded_image_data"
}
}
]
}
],
"generationConfig": {
"temperature": 0.7,
"maxOutputTokens": 1024
},
"responseModalities": [
"IMAGE"
]
}'{
"candidates": [
{
"content": {}
}
]
}