curl --location -g --request POST 'https://api.wenwen-ai.com/v1beta/models/:generateContent?key={YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": "把图片里小狗的毛色改成金黄色"
},
{
"inline_data": {
"mime_type": "image/png",
"data": open(TEMP_B64).read().strip() # 读入 base64
}
}
]
}
]
}'