Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 Gemini API 调用 Google Gemini 3 Flash Preview。快速高能的文本生成。
curl "https://ai.alad.com/v1beta/models/gemini-3-flash-preview:generateContent?key=YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [{ "text": "用简单的语言解释量子计算。" }] } ], "generationConfig": { "temperature": 1, "topP": 1 } }'
import requests url = "https://ai.alad.com/v1beta/models/gemini-3-flash-preview:generateContent" params = {"key": "YOUR_API_KEY"} data = { "contents": [ { "role": "user", "parts": [{"text": "用简单的语言解释量子计算。"}] } ], "generationConfig": { "temperature": 1, "topP": 1 } } response = requests.post(url, params=params, json=data) result = response.json() print(result["candidates"][0]["content"]["parts"][0]["text"])
key
contents
{ role, parts }
systemInstruction
parts
generationConfig.temperature
0
2
1
generationConfig.topP