---
title: "gemini-3.1-pro-preview API — Gemini 價格與規格"
url: "https://runapi.ai/zh-TW/models/gemini/3.1-pro-preview.md"
canonical: "https://runapi.ai/zh-TW/models/gemini/3.1-pro-preview.md"
locale: "zh-TW"
model: "Gemini"
provider: "Google"
variant_id: "gemini-3.1-pro-preview"
sdk_model_id: "gemini-3.1-pro-preview"
modality: "text"
price_from_cents: 9
billing_unit: "1K tokens"
status: "active"
---

# Gemini gemini-3.1-pro-preview API

透過 RunAPI 使用 Gemini 系列的 gemini-3.1-pro-preview。按次計費，無訂閱費，失敗的生成不收費。

## Pricing

**$0.090** per 1K tokens

失敗的生成不收費

## Spec sheet

| Field | Value |
|---|---|
| Model ID | `gemini-3.1-pro-preview` |
| Provider | Google |
| Modality | text |
| Task type | synchronous |
| Billing unit | 1K tokens |
| API endpoint | `/v1/chat/completions` |
|  | `/v1/responses` |
|  | `/v1/messages` |
|  | `/v1beta/models/gemini-3.1-pro-preview:generateContent` |
|  | `/v1beta/models/gemini-3.1-pro-preview:streamGenerateContent` |
| Status | active |

## Request example

```json
{
  "model": "gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": "Analyze this codebase and suggest three performance improvements with before/after examples."
    }
  ]
}
```

## API endpoints

Base URL: `https://runapi.ai`

- `POST /v1/chat/completions`
- `POST /v1/responses`
- `POST /v1/messages`
- `POST /v1beta/models/gemini-3.1-pro-preview:generateContent`
- `POST /v1beta/models/gemini-3.1-pro-preview:streamGenerateContent`

Use the OpenAI or Anthropic SDK with your RunAPI API key and `model: "gemini-3.1-pro-preview"`.

## FAQ

### 模型 ID 在不同版本之間會保持穩定嗎？

RunAPI 會維持 model ID 穩定，並在不改變請求格式的情況下處理相容版本更新。

### 這個 variant 的速率限制是多少？

每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。

### 之後可以切換 variant 嗎？

可以——variant 只是旗標。只要變更 model 參數即可切換。

### 它支援串流嗎？

只要支援串流，RunAPI 就會端到端串流。

### 我該在哪裡回報品質問題？

請在公開 GitHub repo 提交 issue，或寄信給支援。


## Related

Other Gemini variants:

- [gemini-2.5-flash](https://runapi.ai/zh-TW/models/gemini/2.5-flash.md) — `2.5-flash` · $0.020
- [gemini-2.5-pro](https://runapi.ai/zh-TW/models/gemini/2.5-pro.md) — `2.5-pro` · $0.080
- [gemini-3-flash-preview](https://runapi.ai/zh-TW/models/gemini/3-flash-preview.md) — `3-flash-preview` · $0.020
- [gemini-3.5-flash](https://runapi.ai/zh-TW/models/gemini/3.5-flash.md) — `3.5-flash` · $0.050
