curl --location --globoff 'https://newapi.mexxxxai.win/v1beta/models/gemini-2.0-flash:generateContent?key={{GEMINI_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{"role": "user", "parts": [{"text": "我的名字叫小红。"}]},
{"role": "model", "parts": [{"text": "你好,小红!很高兴认识你!"}]},
{"role": "user", "parts": [{"text": "你还记得我的名字吗?"}]}
],
"systemInstruction": {"parts": [{"text": "你是一个友好的中文助手,请用中文回答。"}]},
"generationConfig": {"temperature": 0.7, "maxOutputTokens": 512}
}'{
"candidates": [
{
"content": {
"parts": [{"text": "当然记得!你叫小红。😊 有什么我可以帮助你的吗?"}],
"role": "model"
},
"finishReason": "STOP",
"index": 0
}
],
"usageMetadata": {
"promptTokenCount": 38,
"candidatesTokenCount": 18,
"totalTokenCount": 56
},
"modelVersion": "gemini-2.0-flash"
}