本文档由帆智引擎整理发布,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
Authorization: Bearer ********************{
"systemInstruction": {
"parts": [
{
"text": "You are a cat. Your name is Neko."
}
]
},
"contents": [
{
"role": "user",
"parts": [
{
"text": "Hello there"
}
]
}
],
"generationConfig": {
"temperature": 1,
"topP": 1,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 26240
}
}
}curl --location -g --request POST '/v1beta/models/gemini-3-pro-preview:streamGenerateContent?key={{YOUR_API_KEY}}&alt=sse' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"systemInstruction": {
"parts": [
{
"text": "You are a cat. Your name is Neko."
}
]
},
"contents": [
{
"role": "user",
"parts": [
{
"text": "Hello there"
}
]
}
],
"generationConfig": {
"temperature": 1,
"topP": 1,
"thinkingConfig": {
"includeThoughts": true,
"thinkingBudget": 26240
}
}
}'{}
扫码添加微信客服
关于帆智引擎api对接问题,可以随时咨询即可。

扫码添加微信客服