Authorization: Bearer ********************{
"model": "gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "帮我写一首诗"
}
],
"max_tokens": 2048,
"temperature": 0.7,
"stream": false
}curl --location --request POST 'https://gemini.api365.cloud/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "帮我写一首诗"
}
],
"max_tokens": 2048,
"temperature": 0.7,
"stream": false
}'{}