一手货源,专业的大模型中转平台,源头级API,一手中转、自逆,提供低延迟,高并发的可靠服务,支持炼丹,量大可谈
Authorization: Bearer ********************{
"contents": [
{
"role": "user",
"parts": [
{"text": "What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50."}
]
}
],
"tools": [
{
"codeExecution": {}
}
]
}curl --location -g --request POST '{{BASE_URL}}/v1beta/models/gemini-2.5-flash:generateContent?key={{YOUR_API_KEY}}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"role": "user",
"parts": [
{"text": "What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50."}
]
}
],
"tools": [
{
"codeExecution": {}
}
]
}'{}