> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdn-fly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini 3 Flash Preview

> 通过 Gemini API 调用 Google Gemini 3 Flash Preview。快速高能的文本生成。

Gemini 3 Flash Preview 是 Google 的快速语言模型，通过 Starrise AI 以原生 Gemini API 提供服务。专为响应迅速、高吞吐量的应用场景设计，兼具强大的语言理解能力。

## 核心能力

* **原生 Gemini API** — 使用 Google 原生 API 格式，完整功能访问
* **快速推理** — 针对低延迟响应优化
* **多轮对话** — 支持系统指令的复杂对话
* **均衡性能** — 以更快速度提供强大能力

## 快速示例

```bash cURL theme={null}
curl "https://dayu.cdn-fly.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
    }
  }'
```

```python Python theme={null}
import requests

url = "https://dayu.cdn-fly.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` | string | 是 | API 密钥（查询参数） |
| `contents` | array | 是 | `{ role, parts }` 对象数组 |
| `systemInstruction` | object | 否 | 包含 `parts` 数组的系统指令 |
| `generationConfig.temperature` | float | 否 | `0`–`2`，控制随机性，默认 `1` |
| `generationConfig.topP` | float | 否 | 核采样阈值，默认 `1` |

> **[API 参考](/zh/api-reference/model-api/google/gemini-3-flash-preview)**
>
> 查看 Gemini 3 Flash Preview 的交互式 API Playground。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.