gemini-3-pro-preview 现已支持!https://api.fuhuapi.com (替换 generativelanguage.googleapis.com)$GEMINI_API_KEY 替换为您的 $FUHUAPI_KEYgemini-3-pro-preview)thinkingLevel 参数控制思考强度 ("LOW" 或 "HIGH")。gemini-2.5-pro)thinkingBudget 参数控制思考的 Token 预算。0: 禁用思考。-1: 动态思考 (模型自动决 定,默认)。> 0: 设置具体的 Token 数量上限 (例如 1024)。streamGenerateContent 且建议添加 ?alt=sse 以使用 Server-Sent Events 格式。curl --location --request POST 'https://api.fuhuapi.com/v1beta/models/gemini-2.5-flash:generateContent' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": "'\''Maintain the character features in the image to generate a new portrait photo: a woman leaning on a wooden railing of a traditional Chinese building. She is wearing a blue cheongsam with pink and red floral motifs and a headdress made of colorful flowers, including roses and lilacs. Her right hand gently touches a large kite with a blue background, decorated with pink fish motifs and a pair of large eyes. The background is the interior of an old wooden building, dimly lit and cozy. The painting style is realistic, focusing on the textural details of the clothing patterns, floral headdresses, and wooden buildings"
}
]
}
]
}'{
"candidates": [
{
"content": {
"role": "string",
"parts": [
{
"text": "string"
}
]
},
"finishReason": "string",
"index": 0,
"safetyRatings": [
"string"
]
}
],
"promptFeedback": {
"safetyRatings": [
"string"
]
},
"usageMetadata": {
"promptTokenCount": 0,
"candidatesTokenCount": 0,
"totalTokenCount": 0,
"thoughtsTokenCount": 0,
"promptTokensDetails": null
}
}