Gemini 指令大全
Gemini 指令大全收錄超過 117 個快捷鍵、Gems、Extensions、API 參數與隱藏技巧,以繁體中文說明每個功能的用法。
目錄:8 個分類
快捷鍵與操作14
Shortcuts & Controls
Gemini 網頁版與 Code Assist 的鍵盤快捷鍵
Cmd+/ / Ctrl+/ Cmd+Shift+M / Ctrl+Shift+M Cmd+Shift+T / Ctrl+Shift+T Cmd+Shift+C / Ctrl+Shift+C Cmd+Shift+O / Ctrl+Shift+O Cmd+B / Ctrl+B Alt+1-9 Enter Shift+Enter Hey Google Tab 僅適用於 Gemini Code Assist IDE 外掛
Esc 僅適用於 Gemini Code Assist IDE 外掛
Ctrl+I / Cmd+I 僅適用於 Gemini Code Assist IDE 外掛
Ctrl+Enter / Cmd+Return 僅適用於 Gemini Code Assist IDE 外掛
Gems 與 Extensions15
Gems & Extensions
自訂 Gems 和 Google 生態系 Extensions 整合
Gems 範例
建立一個「翻譯助手」Gem,專門處理中英互譯 Gems Instructions 好的指令應涵蓋角色定位、任務範圍、背景知識與輸出格式
Gems Knowledge Free 方案可上傳有限檔案,Pro 方案最多 300 個
Gems Sharing @Gmail 範例
@Gmail 幫我找上週來自 Amazon 的訂單確認信 @Google Drive 範例
@Google Drive 找到我的行銷提案簡報 @Google Docs @Google Calendar 範例
@Google Calendar 我明天有什麼會議? @YouTube 範例
@YouTube 找關於 Gemini API 的教學影片 @Google Maps 範例
@Google Maps 從台北車站到信義區怎麼走? @Hotels & Flights 範例
幫我找下個月台北飛東京的機票 @Spotify @Google Photos @Google Keep @Google Tasks 設定與個人化12
Settings & Personalization
記憶、個人檔案、隱私設定與個人化選項
Memory 可在設定中查看和刪除已儲存的記憶
Profile Saved Info Custom Instructions 範例
「請用繁體中文回答,語氣專業但親切」 Activity Management Auto-delete Connected Apps Safety Settings Privacy Mode Local 模式使用裝置端模型,不傳送資料到雲端
IDE Settings 適用於 VS Code、IntelliJ 等支援的 IDE
Workspace Personalization Notification Preferences AI Studio 功能11
Google AI Studio
Google AI Studio 的提示設計、模型調校與測試功能
Prompt Gallery System Instructions 範例
你是一位專業的台灣法律顧問,用繁體中文回答 Model Tuning 需要準備訓練資料集,支援 Supervised Fine-tuning
Safety Settings (AI Studio) Parameter Tuning Testing Interface Export to SDK Batch Processing Structured Prompts Chat Mode Freeform Mode API 參數27
API Parameters
Gemini API 的生成參數、安全設定與工具配置
model 範例
model: "gemini-3-1-pro" generationConfig.temperature 範例
generationConfig: { temperature: 0.7 } generationConfig.topP 範例
generationConfig: { topP: 0.95 } generationConfig.topK 範例
generationConfig: { topK: 40 } generationConfig.maxOutputTokens 範例
generationConfig: { maxOutputTokens: 8192 } generationConfig.candidateCount 範例
generationConfig: { candidateCount: 3 } generationConfig.stopSequences 範例
generationConfig: { stopSequences: ["END", "---"] } generationConfig.responseMimeType 範例
generationConfig: { responseMimeType: "application/json" } generationConfig.responseSchema 需搭配 responseMimeType: "application/json" 使用
generationConfig.seed 範例
generationConfig: { seed: 42 } generationConfig.presencePenalty 範例
generationConfig: { presencePenalty: 0.5 } generationConfig.frequencyPenalty 範例
generationConfig: { frequencyPenalty: 0.5 } thinkingConfig.thinking_budget 設為 -1 時模型自動決定思考量
範例
thinkingConfig: { thinking_budget: 8192 } thinkingConfig.thinking_level 範例
thinkingConfig: { thinking_level: "HIGH" } safetySettings 範例
safetySettings: [{ category: "HARM_CATEGORY_HARASSMENT", threshold: "BLOCK_MEDIUM_AND_ABOVE" }] systemInstruction 範例
systemInstruction: { parts: [{ text: "你是一位台灣旅遊專家" }] } tools (google_search) 範例
tools: [{ google_search: {} }] tools (code_execution) 範例
tools: [{ code_execution: {} }] tools (function_declarations) 範例
tools: [{ function_declarations: [{ name: "get_weather", ... }] }] tools (file_search) 範例
tools: [{ file_search: { dataset: "..." } }] cachedContent 範例
cachedContent: "cachedContents/abc123" cachedContent.ttlSeconds 範例
ttlSeconds: 3600 responseModalities 範例
generationConfig: { responseModalities: ["TEXT", "IMAGE"] } image_size 範例
imageConfig: { imageSize: "1024" } aspect_ratio 注意: aspectRatio 在 generationConfig.imageConfig 內,不是頂層
範例
imageConfig: { aspectRatio: "16:9" } dynamic_retrieval_config 範例
dynamic_retrieval_config: { mode: "MODE_DYNAMIC", dynamic_threshold: 0.5 } exclude_domains 範例
exclude_domains: ["example.com", "spam.net"] 進階功能16
Advanced Features
深度研究、即時語音、圖片生成、程式碼助手等進階能力
Deep Research 範例
「幫我深度研究台灣 AI 產業 2026 年趨勢」 Grounding with Google Search Thinking Mode Live API Voice Barge-in Image Generation (Imagen) Conversational Editing 範例
「把背景改成海灘」「讓天空更藍」 NotebookLM Integration Audio Overviews Code Assist Embeddings File Upload API Batch API Context Caching Function Calling 模型與定價10
Models & Pricing
Gemini 模型系列、免費層級與計費方式
gemini-3-1-pro gemini-3-1-flash gemini-3-1-flash-lite gemini-2-5-pro gemini-2-5-flash gemini-2-5-flash-lite gemini-embedding-2-preview Free Tier 免費層級的輸入輸出可能用於模型改進
Pay-as-you-go Flash 輸入約 $0.075/1M tokens,Pro 約 $1.25/1M tokens
Context Window: 1M tokens Pro 模型支援 1M tokens,Flash 同樣支援 1M tokens
常見問題
Gemini 有哪些快捷鍵?
安裝 Better Gemini 擴充後支援多個快捷鍵,包括 Cmd+Shift+M 切換模型、Cmd+Shift+C 複製回應、Cmd+B 切換側邊欄、Alt+1-9 快速切換對話等。
Gems 是什麼?如何建立?
Gems 是自訂的 Gemini 角色。在 gemini.google.com 左側選「探索 Gems」,設定 Persona(角色)、Task(任務)、Context(背景)、Format(格式)四要素。Pro 方案可上傳最多 300 個知識檔案。
Gemini API 的 Thinking Mode 怎麼用?
Gemini 2.5 用 thinkingConfig.thinking_budget(128-32768,-1 為動態)。Gemini 3 用 thinking_level(LOW/MEDIUM/HIGH)。思考 token 會計入費用。
Gemini 的 Context Caching 如何省錢?
快取靜態內容只需標準 input token 10% 的費用。最低 2048 tokens(Pro)或 1024 tokens(Flash)。設定 ttlSeconds 控制快取時間。適合重複使用大文件或系統提示。
Gemini Deep Research 是什麼?
Deep Research 是自動多步驟研究功能。Web UI 中點「Tools」選「Deep Research」。API 使用 Interactions API 搭配 background=true。可整合 Gmail、Drive 和公開網路。
Gemini 支援哪些 Extensions?
支援 Gmail、Google Drive、Docs、Calendar、YouTube、Maps、Hotels & Flights、Spotify、Google Photos、Keep、Tasks 等。在設定 > 已連接應用中啟用。個人資料不用於訓練。
Gemini 有本地離線模式嗎?
有。Gemini Advanced 用戶可在支援 NPU 的筆電(約 30GB)或 Pixel 10/Galaxy S26 手機上下載 70B 本地模型,100% 本地運算,完全離線可用。
資料來源
- Google 官方文件:ai.google.dev
- Gemini Apps Help Center
- 社群整理與實測驗證
本頁內容以 2026-04-22 版本為準。Gemini 持續更新中,建議搭配官方文件使用。