gemini-3-pro-image-preview — 價格、上下文與效能

gemini-3-pro-image-preview 是 Google 的模型,上下文 131.1K,支援 Reasoning, Files, Vision。輸入 $2.00,輸出 $120.00,皆為每百萬 tokens。

總覽

廠商Google
上下文131.1K
能力Reasoning, Files, Vision
API 格式openai
計費方式p * 2 + c * 120
Nano Banana Pro for higher-fidelity image generation and design-heavy edits

價格

方案倍率輸入輸出說明
基準價1×$2.00$120.00
Eco0.3×$0.60$36.00Standard — standard reasoning, moderate stability.
default0.6×$1.20$72.00Standard — standard reasoning, moderate stability.
Plus1×$2.00$120.00High — strong reasoning, stable.
Pro2×$4.00$240.00Enterprise — full reasoning, high stability.
Max4×$8.00$480.00Premium — max reasoning & stability.

僅列出該模型已開放的套餐。

效能實測

TPS65882.35
平均延遲23681 毫秒
成功率100%
API 端點https://api.airai.cc/v1
OpenAI 相容OpenAI-compatible

常見問題

gemini-3-pro-image-preview 的價格是多少?
輸入 $2.00,輸出 $120.00,皆為每百萬 tokens。
gemini-3-pro-image-preview 的上下文視窗有多大?
gemini-3-pro-image-preview 的上下文視窗為 131.1K,即單次請求中輸入與輸出合計的 token 上限。
如何在程式碼中呼叫 gemini-3-pro-image-preview?
把 base_url 指向 https://api.airai.cc/v1,model 填 gemini-3-pro-image-preview 即可,介面與 OpenAI 完全相容。
gemini-3-pro-image-preview 為什麼會回傳 429?
429 是限流回應。降低並發、加上退避重試,或切換到配額更高的方案即可。

模型比較

Model廠商輸入輸出上下文
gemini-3-pro-image-previewGoogle$2.00$120.00131.1K
gemini-4-argonGoogle$2.00$10.001M
gemini-3-pro-imageGoogle$2.00$120.00131.1K
gemini-2.5-pro-preview-ttsGoogle$1.00$20.008.2K
gemini-3.1-pro-previewGoogle$2.00$12.001M
gemini-4-argon-mediumGoogle價格未公開—未標註
gemini-4-argon-highGoogle價格未公開—未標註
gemini-4-carbonGoogle$2.00$10.00未標註
gemini-2.5-flash-liteGoogle$0.10$0.401M
gemini-3.8-flash-ttsGoogle$0.50$9.00未標註
gemini-3.1-flash-tts-previewGoogle$1.00$20.008.2K
gemini-3.1-flash-liteGoogle$0.25$1.501M
gemini-nano-banana-2.1Google每次請求 $0.13—未標註

錯誤排查

429 是限流回應。降低並發、加上退避重試,或切換到配額更高的方案即可。

常見原因

  • 並發請求過多
  • 目前方案配額已用完
  • 失敗後立即重試沒有退避

解決辦法

  • 限制並發並以指數退避重試
  • 切換到配額更高的方案
  • 對重複請求做快取

如何接入

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3-pro-image-preview",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_API_KEY>",
    base_url="https://api.airai.cc/v1"
)

response = client.chat.completions.create(
    model="gemini-3-pro-image-preview",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

const response = await client.chat.completions.create({
  model: "gemini-3-pro-image-preview",
  messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);
const OpenAI = require("openai");

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

client.chat.completions.create({
  model: "gemini-3-pro-image-preview",
  messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));

將 <YOUR_API_KEY> 替換為令牌設定中的 API Key。

相容端點

openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search

Gemini SDK · TypeScript

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "gemini-3-pro-image-preview" });

const result = await model.generateContent(
  "Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());

身分驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭;Anthropic 格式端點也接受 x-api-key 請求頭。在「令牌」頁面產生 API Key,可依模型、分組、IP、速率等維度精細化授權。

支援的參數

參數類型預設值範圍說明
temperaturefloat10–2取樣溫度;越低越穩定
top_pfloat10–1核取樣累積機率
max_tokensinteger——回應中最大 token 數
frequency_penaltyfloat0−2–2懲罰高頻 token 的重複出現
presence_penaltyfloat0−2–2鼓勵引入新話題
stopstring[]null≤ 4最多 4 個停止生成的字串
seedintegernull—盡量保證可復現的取樣種子
ninteger1—產生的候選條數
streambooleanfalse—透過 SSE 串流回傳 token
response_formatobject——強制輸出 JSON 物件或符合 Schema 的結果
toolsarray——模型可呼叫的工具 / 函式宣告
tool_choicestring | objectauto—工具選擇策略或具體工具名
logprobsbooleanfalse—回傳每個 token 的對數機率
top_logprobsintegernull0–20每個 token 回傳的 top 機率數量
logit_biasmap——依 token 的 logit 偏置對應
userstring——用於風險審計的終端使用者識別

速率限制

分組RPMTPMRPD
Eco990398K20K
Test980393K20K

資料更新於: 2026-11-25 12:35

技術支持在線客服
返回頂部