Authorization: Bearer ********************{
"contents": [
{
"role": "user",
"parts": [
{ "text": "把人物衣服改成深蓝色,保持脸和姿势不变" },
{
"fileData": {
"mimeType": "image/png",
"fileUri": "https://example.com/input.png"
}
}
]
}
],
"generationConfig": {
"imageConfig": {
"aspectRatio": "3:4"
}
}
}curl --location --request POST '/v1beta/models/gemini-3.0-pro-image:generateContent' \
--header 'x-goog-api-key: YOUR_API_KEY' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"role": "user",
"parts": [
{ "text": "把人物衣服改成深蓝色,保持脸和姿势不变" },
{
"fileData": {
"mimeType": "image/png",
"fileUri": "https://example.com/input.png"
}
}
]
}
],
"generationConfig": {
"imageConfig": {
"aspectRatio": "3:4"
}
}
}'{}