{
"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": "iVBOR3fabzK5CYII=。。base64。。。。"
}
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}
curl --location --request POST 'https://poloai.top/v1beta/models/gemini-2.5-flash-image-preview:generateContent' \
--header 'Authorization;' \
--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": "iVBOR3fabzK5CYII=。。base64。。。。"
}
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}'
{}