curl --request POST \
--url https://www.anyfast.ai/v1beta/models/{model}:generateContent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contents": [
{
"role": "user",
"parts": [
{
"text": "你好,Gemini!"
}
]
}
],
"systemInstruction": {
"parts": [
{
"text": "<string>"
}
]
},
"generationConfig": {
"temperature": 1,
"topP": 0.5,
"topK": 123,
"maxOutputTokens": 123,
"stopSequences": [
"<string>"
],
"responseMimeType": "text/plain",
"responseSchema": {}
},
"tools": [
{
"functionDeclarations": [
{
"name": "<string>",
"description": "<string>",
"parameters": {}
}
]
}
],
"toolConfig": {
"functionCallingConfig": {
"mode": "AUTO",
"allowedFunctionNames": [
"<string>"
]
}
},
"safetySettings": [
{
"category": "HARM_CATEGORY_HARASSMENT",
"threshold": "BLOCK_NONE"
}
]
}
'