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