{"id":9109,"date":"2025-11-19T20:00:51","date_gmt":"2025-11-19T11:00:51","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=9109"},"modified":"2025-11-19T20:03:10","modified_gmt":"2025-11-19T11:03:10","slug":"post-9109","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=9109","title":{"rendered":"Gemini3 pro\u306eAPI\u3092GAS\u3067\u30ea\u30af\u30a8\u30b9\u30c8\uff0111\/19\u65b0\u767b\u5834\u306e\u751f\u6210AI\u30e2\u30c7\u30eb"},"content":{"rendered":"\n<p>\u65e5\u672c\u6642\u95932025\u5e7411\u670819\u65e5\u306bGoogle\u306e\u751f\u6210AI\u3067\u3042\u308bGemini\u306e\u6700\u65b0\u30e2\u30c7\u30eb\u3068\u3057\u3066Gemini3\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u65e9\u901fGoogle AI Studio\u3067\u3082Gemini3 pro\u304c\u5229\u7528\u958b\u59cb\u3055\u308c\u3001API\u3082\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067Google Apps Script(GAS)\u3067Gemini3.0 pro preview\u306eAPI\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gemini3\u304c11\/19\u306b\u65b0\u767b\u5834<\/h2>\n\n\n\n<p>Google\u304c\u63d0\u4f9b\u3059\u308b\u751f\u6210AI\u306eGemini\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308bGemini3\u304c\u65e5\u672c\u6642\u9593\u306e2025\u5e7411\u670819\u65e5\u306b\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"410\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001.jpg\" alt=\"Google\u304c\u65e5\u672c\u6642\u9593\u306e2025\u5e7411\u670819\u65e5\u306b\u3001\u751f\u6210AI\u306eGemini\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3042\u308bGemini3\u3092\u767a\u8868\" class=\"wp-image-9110\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001-768x394.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001-710x364.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_001-725x372.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4eca\u307e\u3067\u306f2025\u5e746\u6708\u306b\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fGemini 2.5 pro\u304c\u6700\u65b0\u30e2\u30c7\u30eb\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u305fGemini3\u306f\u3001\u5f93\u6765\u306e\u6700\u9ad8\u6027\u80fd\u3092\u8a87\u3063\u305fGemini 2.5 pro\u306b\u5bfe\u3057\u3001\u3042\u3089\u3086\u308b\u6307\u6a19\u3067\u4e0a\u56de\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"450\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002.jpg\" alt=\"2025\u5e7411\u670819\u65e5\u306b\u767a\u8868\u3055\u308c\u305fGemini3\u306f\u5f93\u6765\u306eGemini2.5 pro\u3084OpenAI\u306eGPT5.1\u3092\u9065\u304b\u306b\u51cc\u99d5\u3059\u308b\u6027\u80fd\" class=\"wp-image-9111\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002-300x169.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002-768x432.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002-320x180.jpg 320w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002-530x298.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002-565x318.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002-710x399.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_002-725x408.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3055\u3089\u306bOpenAI\u304b\u3089\u767a\u8868\u3055\u308c\u305fGPT5.1\u3088\u308a\u3082\u512a\u308c\u305f\u6027\u80fd\u3067\u3042\u308b\u3068Google\u306f\u8b33\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u65e9\u901fGoogle AI Studio\u306bGemini3\u767b\u5834<\/h2>\n\n\n\n<p>Gemini3\u306f\u3055\u3063\u305d\u304fGoogle AI Studio\u306b\u767b\u5834\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"383\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003.jpg\" alt=\"Gemini3\u306fGoogle\u304b\u3089\u767a\u8868\u3055\u308c\u305f2025\u5e7411\u670819\u65e5\u306b\u3055\u3063\u305d\u304fGoogle AI Studio\u306b\u767b\u5834\" class=\"wp-image-9112\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003-300x144.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003-768x368.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003-530x254.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003-565x270.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003-710x340.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_003-725x347.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u304a\u77e5\u3089\u305b\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u300cTry it\u300d\u3092\u9078\u629e\u3059\u308b\u3068\u30c1\u30e3\u30c3\u30c8\u30e2\u30fc\u30c9\u3067Gemini3 pro preview\u304c\u9078\u629e\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"455\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004.jpg\" alt=\"Google AI Studio\u306e\u30c1\u30e3\u30c3\u30c8\u30e2\u30fc\u30c9\u3067Gemini3 pro preview\u306e\u30e2\u30c7\u30eb\u304c\u9078\u629e\u53ef\u80fd\" class=\"wp-image-9113\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004-300x171.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004-768x437.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004-530x301.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004-565x321.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004-710x404.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_004-725x412.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u307e\u305f\u30c1\u30e3\u30c3\u30c8\u30e2\u30fc\u30c9\u4ee5\u5916\u306b\u300cVibe code with GenAI apps\u300d\u3067\u30d3\u30eb\u30c9\u30e2\u30fc\u30c9\u3067\u3082Gemini3 pro preview\u304c\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"393\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005.jpg\" alt=\"Google AI Studio\u3067\u30a2\u30d7\u30ea\u306e\u958b\u767a\u30fb\u30c7\u30d7\u30ed\u30a4\u304c\u53ef\u80fd\u306a\u30d3\u30eb\u30c9\u30e2\u30fc\u30c9\u3067\u3082\u30e2\u30c7\u30eb\u9078\u629e\u3067Gemini3 pro preview\u304c\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\" class=\"wp-image-9114\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005-300x147.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005-768x377.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005-530x260.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005-565x278.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005-710x349.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_005-725x356.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Gemini3\u306f\u30d7\u30ec\u30d3\u30e5\u30fc\u30e2\u30fc\u30c9\u306e\u305f\u3081\u3001\u4e00\u90e8\u7528\u9014\u306b\u3088\u3063\u3066\u306fGemini2.5 pro\u306e\u307b\u3046\u304c\u3088\u3044\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u6027\u80fd\u306f\u4e0a\u56de\u3063\u3066\u3044\u308b\u306e\u3067\u4eca\u5f8c\u306fGemini3 pro\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gemini3 pro\u306eAPI\u3082\u5229\u7528\u53ef\u80fd\u306b<\/h2>\n\n\n\n<p>Google AI Studio\u3067Gemini3 pro\u304c\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3001API\u3067\u3082\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>OpenAI\u306a\u3069\u3067\u3082GPT5.1\u304c\u76f4\u8fd1\u767a\u8868\u3055\u308c\u305f\u969b\u306fChatGPT\u306e\u30a2\u30d7\u30ea(\u6709\u6599\u7248)\u3067\u306f\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3082\u306e\u306e\u3001API\u3067\u306f\u3059\u3050\u306b\u4f7f\u3048\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u73fe\u5728\u3067\u306fGPT5.1\u3082API\u7d4c\u7531\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001Gemini3\u767a\u8868\u3068\u540c\u6642\u306bAPI\u3082\u4f7f\u3048\u308b\u306e\u306f\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>API\u7d4c\u7531\u3067\u4f7f\u3046\u3053\u3068\u3067AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068\u3057\u3066Gemini3 pro\u3092\u7d44\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u3084Python\u3092\u4f7f\u3063\u3066Gemini3 pro\u306b\u8981\u7d04\u3084\u6587\u7ae0\u4f5c\u6210\u3001\u753b\u50cf\u89e3\u6790\u306a\u3069\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u69cb\u7bc9\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gemini3 pro\u306eAPI\u306f\u7121\u6599\u5229\u7528\u4e0d\u53ef<\/h2>\n\n\n\n<p>\u306a\u304aGemini3 pro\u306eAPI\u306f2025\u5e7411\u670819\u65e5\u6642\u70b9\u3067\u306f\u7121\u6599\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/rate-limits?hl=ja&amp;_gl=1*1o3lu8p*_up*MQ..*_ga*NTk3NjQ3MDgwLjE3NjM1NDc4ODM.*_ga_P1DBVKWT6V*czE3NjM1NDc4ODMkbzEkZzAkdDE3NjM1NDc4ODMkajYwJGwwJGgyOTQ5MjAy\" target=\"_blank\" rel=\"noopener\">Google\u306eGeminiAPI\u306b\u95a2\u3059\u308b\u30ec\u30fc\u30c8\u5236\u9650\u306e\u8aac\u660e\u30da\u30fc\u30b8<\/a>\u306b\u5229\u7528\u6761\u4ef6\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"430\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006.jpg\" alt=\"Google\u306eGeminiAPI\u306b\u95a2\u3059\u308b\u30ec\u30fc\u30c8\u5236\u9650\u306e\u8aac\u660e\u30da\u30fc\u30b8\u306b\u5229\u7528\u6761\u4ef6\u304c\u63b2\u8f09\u3055\u308c\u3001\u7121\u6599\u7248\u306b\u306fGemini3 pro\u304c\u672a\u63b2\u8f09\" class=\"wp-image-9115\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006-300x161.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006-768x413.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006-530x285.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006-565x304.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006-710x382.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_006-725x390.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u7121\u6599\u67a0\u306e\u6b04\u306fGemini2.5 pro\u306f\u3042\u308b\u3082\u306e\u306e\u3001Gemini3 pro preview\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u6709\u6599\u7248\u306eTier1\uff5e3\u306b\u306e\u307fGemini3 pro preview\u306b\u95a2\u3059\u308b\u8a18\u8ff0\u304c\u3042\u308a\u3001\u7121\u6599\u7248\u3067\u306fAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3082\u3001\u300cYou exceeded your current quota, please check your plan and billing details.\u300d\u3068\u8868\u793a\u3055\u308c\u3066\u3001\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"448\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007.jpg\" alt=\"Google\u306eGeminiAPI\u306b\u95a2\u3059\u308b\u30ec\u30fc\u30c8\u5236\u9650\u306e\u8aac\u660e\u30da\u30fc\u30b8\u306b\u5229\u7528\u6761\u4ef6\u304c\u63b2\u8f09\u3055\u308c\u3001\u6709\u6599\u7248\u306eTier1\uff5eTier3\u306b\u306e\u307fGemini3 pro\u306e\u30ec\u30fc\u30c8\u5236\u9650\u304c\u63b2\u8f09\" class=\"wp-image-9116\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007-300x168.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007-768x430.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007-320x180.jpg 320w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007-530x297.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007-565x316.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007-710x398.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_007-725x406.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Gemini API\u6599\u91d1\u30da\u30fc\u30b8\u306e\u65e5\u672c\u8a9e\u7248\u306f\u7ffb\u8a33\u304c\u5c11\u3057\u304a\u304b\u3057\u3044\u3067\u3059\u304c\u300120\u4e07\u30c8\u30fc\u30af\u30f3\u4ee5\u4e0b\u3067\u306f100\u4e07\u30c8\u30fc\u30af\u30f3\u3042\u305f\u308a\u5165\u529b\u304c2\u30c9\u30eb\u3001\u51fa\u529b\u304c12\u30c9\u30eb\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>1\u3064\u524d\u306e\u30e2\u30c7\u30eb\u3067\u3042\u308bGemini2.5 pro\u3068\u6bd4\u8f03\u3057\u306620\u4e07\u30c8\u30fc\u30af\u30f3\u4ee5\u4e0b\u306e\u5834\u5408\u3001\u5165\u529b\u30c8\u30fc\u30af\u30f3\u306f60%\u3001\u51fa\u529b\u30c8\u30fc\u30af\u30f3\u306f20%\u5024\u4e0a\u3052\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001Gemini3 pro\u3092API\u7d4c\u7531\u3067\u5b9f\u884c\u3059\u308b\u306b\u306fGoogle Cloud\u3067\u652f\u6255\u3044\u60c5\u5831\u3092\u7d10\u3065\u3051\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u3067Gemini3 pro\u306eAPI\u3092\u5b9f\u884c<\/h2>\n\n\n\n<p>\u65b0\u305f\u306b\u516c\u958b\u3055\u308c\u305fGemini3 pro\u306eAPI\u3092Google Apps Script(GAS)\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067GAS\u3067Gemini3 pro\u306eAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Gemini3 pro\u306eAPI\u306fVertexAI\u307e\u305f\u306fGoogle AI Studio\u306e2\u7a2e\u985e\u304b\u3089\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u624b\u8efd\u306bAPI\u30ad\u30fc\u304c\u767a\u884c\u3067\u304d\u308bGoogle AI Studio\u7d4c\u7531\u3067Gemini3 pro\u306eAPI\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"392\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013.jpg\" alt=\"Gemini3 pro\u306eAPI\u3092\u5229\u7528\u3059\u308b\u306b\u306fGoogle AI Studio\u306eAPI\u30ad\u30fc\u306e\u753b\u9762\u3067\u3001Tier1\u4ee5\u4e0a\u306e\u6709\u6599\u67a0\u306eAPI\u30ad\u30fc\u3092\u767a\u884c\" class=\"wp-image-9122\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013-300x147.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013-768x376.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013-530x260.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013-565x277.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013-710x348.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_013-725x355.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Google AI Studio\u306eAPI\u30ad\u30fc\u306e\u753b\u9762\u3067\u3001Tier1(\u3082\u3057\u304f\u306fTier2,3)\u306eAPI\u30ad\u30fc\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203bGemini3 pro preview\u306fAPI\u7d4c\u7531\u3067\u306f\u5229\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u958b\u3044\u305f\u3042\u3068\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u753b\u9762\u306e\u672b\u5c3e\u306b\u3042\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u30b3\u30d4\u30fc\u3057\u305fAPI\u30ad\u30fc\u306fGAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"423\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009.jpg\" alt=\"Google Apps Script(GAS)\u3067Gemini API\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306fAPI\u30ad\u30fc\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u4fdd\u5b58\u3059\u308b\u306e\u304c\u63a8\u5968\u8a2d\u5b9a\" class=\"wp-image-9118\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009-300x159.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009-768x406.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009-530x280.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009-565x299.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009-710x375.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_009-725x383.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>GAS\u3067\u306fAPI\u30ad\u30fc\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u76f4\u66f8\u304d\u305b\u305a\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8a2d\u5b9a\u3057\u3001\u30b3\u30fc\u30c9\u304b\u3089\u547c\u3073\u51fa\u3059\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c6\u30ad\u30b9\u30c8\u306e\u307f\u306eGemini3\u00d7GAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<p>Google Apps Script(GAS)\u3067Gemini3\u306eAPI\u306b\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u307f\u9001\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"410\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010.jpg\" alt=\"Google Apps Script(GAS)\u3067Gemini3 pro\u306eAPI\u306b\u5bfe\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u30bb\u30c3\u30c8\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-9119\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010-768x394.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010-710x364.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_010-725x372.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function testGemini3(){\n  const prompt = '9.9\u30689.11\u3060\u3068\u3069\u3061\u3089\u306e\u6570\u5b57\u306e\u307b\u3046\u304c\u5927\u304d\u3044\u3067\u3059\u304b\uff1f';\n  console.log(callGeminiAPI(prompt));\n}\n\n\/**\n * Gemini API\u306b\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u9001\u4fe1\u3057\u3066\u5fdc\u7b54\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\n * @param {string} prompt - Gemini API\u306b\u9001\u4fe1\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\n * @param {string} modelName - \u4f7f\u7528\u3059\u308bGemini\u30e2\u30c7\u30eb\u540d\uff08\u30c7\u30d5\u30a9\u30eb\u30c8: gemini-3-pro-preview\uff09\n * @return {string} - Gemini API\u304b\u3089\u306e\u5fdc\u7b54\u30c6\u30ad\u30b9\u30c8\n *\/\nfunction callGeminiAPI(prompt, modelName = 'gemini-3-pro-preview') {\n  \/\/ Gemini API\u30ad\u30fc\u3092\u8a2d\u5b9a\uff08\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u53d6\u5f97\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\uff09\n  const apiKey = PropertiesService.getScriptProperties().getProperty('GEMINI_API_KEY');\n  \n  \/\/ API\u30ad\u30fc\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30a8\u30e9\u30fc\n  if (!apiKey) {\n    throw new Error('GEMINI_API_KEY\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');\n  }\n  \n  \/\/ Gemini API\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08\u30e2\u30c7\u30eb\u540d\u3092\u52d5\u7684\u306b\u6307\u5b9a\uff09\n  const endpoint = `https:\/\/generativelanguage.googleapis.com\/v1beta\/models\/${modelName}:generateContent?key=${apiKey}`;\n  \n  \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u3092\u4f5c\u6210\n  const requestBody = {\n    contents: [{\n      parts: [{\n        text: prompt\n      }]\n    }],\n    generationConfig: {\n      temperature: 0.7,\n      topK: 40,\n      topP: 0.95,\n      maxOutputTokens: 4096,\n    }\n  };\n  \n  \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\n  const options = {\n    method: 'post',\n    contentType: 'application\/json',\n    payload: JSON.stringify(requestBody),\n    muteHttpExceptions: true\n  };\n  \n  try {\n    \/\/ API\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\n    const response = UrlFetchApp.fetch(endpoint, options);\n    const responseCode = response.getResponseCode();\n    \n    \/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u3092\u30c1\u30a7\u30c3\u30af\n    if (responseCode !== 200) {\n      Logger.log('\u30a8\u30e9\u30fc\u30ec\u30b9\u30dd\u30f3\u30b9: ' + response.getContentText());\n      throw new Error(`API\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9: ${responseCode}`);\n    }\n    \n    \/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30d1\u30fc\u30b9\n    const jsonResponse = JSON.parse(response.getContentText());\n    \n    \/\/ \u30c6\u30ad\u30b9\u30c8\u3092\u62bd\u51fa\n    if (jsonResponse.candidates &amp;&amp; jsonResponse.candidates.length > 0) {\n      const candidate = jsonResponse.candidates[0];\n      if (candidate.content &amp;&amp; candidate.content.parts &amp;&amp; candidate.content.parts.length > 0) {\n        return candidate.content.parts[0].text;\n      }\n    }\n    \n    throw new Error('API\u30ec\u30b9\u30dd\u30f3\u30b9\u304b\u3089\u6709\u52b9\u306a\u30c6\u30ad\u30b9\u30c8\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002');\n    \n  } catch (error) {\n    Logger.log('\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f: ' + error.message);\n    throw error;\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3057\u3066Gemini API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u30e2\u30c7\u30eb\u3082\u5f15\u6570\u306b\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3092\u300cgemini-3-pro-preview\u300d\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"488\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015.jpg\" alt=\"Gemini3 pro\u306eAPI\u306bGoogle Apps Script(GAS)\u3067\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\" class=\"wp-image-9125\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015-300x183.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015-768x468.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015-530x323.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015-565x345.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015-710x433.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_015-725x442.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>GAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5b9f\u884c\u30ed\u30b0\u306bGemini3 pro \u304b\u3089\u306e\u5fdc\u7b54\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306bGAS\u304b\u3089Gemini3 pro\u3092API\u7d4c\u7531\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c6\u30ad\u30b9\u30c8+\u753b\u50cf\u306eGemini3\u00d7GAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h3>\n\n\n\n<p>\u6b21\u306b\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u52a0\u3048\u3066\u753b\u50cf\u3082Gemini3 pro\u306bAPI\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"407\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011.jpg\" alt=\"Google Apps Script(GAS)\u3067Gemini3 pro\u306eAPI\u306b\u5bfe\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u52a0\u3048\u3066\u753b\u50cf\u3068\u753b\u50cf\u30bf\u30a4\u30d7\u3092\u30bb\u30c3\u30c8\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30de\u30eb\u30c1\u30e2\u30fc\u30c0\u30eb\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-9120\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011-768x391.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011-530x270.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011-710x361.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_011-725x369.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function testGemini3WithImage(){\n  const imageUrl = 'https:\/\/rocketnews24.com\/wp-content\/uploads\/sites\/2\/2025\/11\/huwamoko4.jpg';\n  const imageType = 'url';\n  const prompt = '\u3053\u306e\u753b\u50cf\u306f\u4f55\u306e\u753b\u50cf\u304b\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5199\u3063\u3066\u3044\u308b\u3082\u306e\u3059\u3079\u3066\u3092\u7d39\u4ecb\u3057\u3066\u304f\u3060\u3055\u3044\u3002';\n  console.log(callGeminiAPIWithImage(prompt,imageUrl,imageType));\n}\n\n\/**\n * Gemini API\u306b\u753b\u50cf\u3068\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u9001\u4fe1\u3057\u3066\u5fdc\u7b54\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\n * @param {string} prompt - Gemini API\u306b\u9001\u4fe1\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\n * @param {string|Blob} image - \u753b\u50cf\uff08\u30c9\u30e9\u30a4\u30d6\u30d5\u30a1\u30a4\u30ebID\u3001URL\u3001\u307e\u305f\u306fBlob\uff09\n * @param {string} imageType - \u753b\u50cf\u306e\u5165\u529b\u30bf\u30a4\u30d7 ('fileId', 'url', 'blob')\n * @param {string} modelName - \u4f7f\u7528\u3059\u308bGemini\u30e2\u30c7\u30eb\u540d\uff08\u30c7\u30d5\u30a9\u30eb\u30c8: gemini-3-pro-preview\uff09\n * @return {string} - Gemini API\u304b\u3089\u306e\u5fdc\u7b54\u30c6\u30ad\u30b9\u30c8\n *\/\nfunction callGeminiAPIWithImage(prompt, image, imageType = 'fileId', modelName = 'gemini-3-pro-preview') {\n  \/\/ Gemini API\u30ad\u30fc\u3092\u8a2d\u5b9a\n  const apiKey = PropertiesService.getScriptProperties().getProperty('GEMINI_API_KEY');\n  \n  \/\/ API\u30ad\u30fc\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u30a8\u30e9\u30fc\n  if (!apiKey) {\n    throw new Error('GEMINI_API_KEY\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');\n  }\n  \n  \/\/ \u753b\u50cf\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066Base64\u30a8\u30f3\u30b3\u30fc\u30c9\n  let imageBlob;\n  let mimeType;\n  \n  try {\n    switch(imageType) {\n      case 'fileId':\n        \/\/ Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u53d6\u5f97\n        const file = DriveApp.getFileById(image);\n        imageBlob = file.getBlob();\n        mimeType = imageBlob.getContentType();\n        break;\n        \n      case 'url':\n        \/\/ URL\u304b\u3089\u753b\u50cf\u3092\u53d6\u5f97\n        const response = UrlFetchApp.fetch(image);\n        imageBlob = response.getBlob();\n        mimeType = imageBlob.getContentType();\n        break;\n        \n      case 'blob':\n        \/\/ Blob\u3068\u3057\u3066\u76f4\u63a5\u53d7\u3051\u53d6\u308b\n        imageBlob = image;\n        mimeType = imageBlob.getContentType();\n        break;\n        \n      default:\n        throw new Error('\u7121\u52b9\u306a imageType \u3067\u3059\u3002\"fileId\", \"url\", \"blob\" \u306e\u3044\u305a\u308c\u304b\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n    }\n    \n    \/\/ \u753b\u50cf\u3092Base64\u30a8\u30f3\u30b3\u30fc\u30c9\n    const base64Image = Utilities.base64Encode(imageBlob.getBytes());\n    \n    \/\/ Gemini API\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\n    const endpoint = `https:\/\/generativelanguage.googleapis.com\/v1beta\/models\/${modelName}:generateContent?key=${apiKey}`;\n    \n    \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30dc\u30c7\u30a3\u3092\u4f5c\u6210\uff08\u753b\u50cf\u3092\u542b\u3080\uff09\n    const requestBody = {\n      contents: [{\n        parts: [\n          {\n            text: prompt\n          },\n          {\n            inline_data: {\n              mime_type: mimeType,\n              data: base64Image\n            }\n          }\n        ]\n      }],\n      generationConfig: {\n        temperature: 0.7,\n        topK: 40,\n        topP: 0.95,\n        maxOutputTokens: 4096,\n      }\n    };\n    \n    \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\n    const options = {\n      method: 'post',\n      contentType: 'application\/json',\n      payload: JSON.stringify(requestBody),\n      muteHttpExceptions: true\n    };\n    \n    \/\/ API\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\n    const apiResponse = UrlFetchApp.fetch(endpoint, options);\n    const responseCode = apiResponse.getResponseCode();\n    \n    \/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u3092\u30c1\u30a7\u30c3\u30af\n    if (responseCode !== 200) {\n      Logger.log('\u30a8\u30e9\u30fc\u30ec\u30b9\u30dd\u30f3\u30b9: ' + apiResponse.getContentText());\n      throw new Error(`API\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u307e\u3057\u305f\u3002\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9: ${responseCode}`);\n    }\n    \n    \/\/ \u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30d1\u30fc\u30b9\n    const jsonResponse = JSON.parse(apiResponse.getContentText());\n    \n    \/\/ \u30c6\u30ad\u30b9\u30c8\u3092\u62bd\u51fa\n    if (jsonResponse.candidates &amp;&amp; jsonResponse.candidates.length > 0) {\n      const candidate = jsonResponse.candidates[0];\n      if (candidate.content &amp;&amp; candidate.content.parts &amp;&amp; candidate.content.parts.length > 0) {\n        return candidate.content.parts[0].text;\n      }\n    }\n    \n    throw new Error('API\u30ec\u30b9\u30dd\u30f3\u30b9\u304b\u3089\u6709\u52b9\u306a\u30c6\u30ad\u30b9\u30c8\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002');\n    \n  } catch (error) {\n    Logger.log('\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f: ' + error.message);\n    throw error;\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u5f15\u6570\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u30c6\u30ad\u30b9\u30c8\u306b\u52a0\u3048\u3066\u3001\u753b\u50cf\u3068\u753b\u50cf\u306e\u7a2e\u985e\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u753b\u50cf\u306fGoogle\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30ebID\u3001URL\u3001blob\u5f62\u5f0f\u306e3\u3064\u304c\u9078\u629e\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u306b\u5fdc\u3058\u3066\u753b\u50cf\u306e\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-9127 size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"437\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_014.jpg\" alt=\"Gemini3 pro\u306eAPI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u969b\u306b\u6307\u5b9a\u3057\u305f\u30ed\u30b1\u30c3\u30c8\u30cb\u30e5\u30fc\u30b9\u3067\u63b2\u8f09\u3055\u308c\u3066\u3044\u305f\u753b\u50cf\" class=\"wp-image-9127\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_014.jpg 600w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_014-300x219.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_014-530x386.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_014-565x412.jpg 565w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption class=\"wp-element-caption\">\u30ed\u30b1\u30c3\u30c8\u30cb\u30e5\u30fc\u30b9\u3088\u308a\u5f15\u7528<\/figcaption><\/figure>\n\n\n\n<p>\u4eca\u56de\u306f\u30ed\u30b1\u30c3\u30c8\u30cb\u30e5\u30fc\u30b9\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u305f\u753b\u50cf\u3092URL\u3067\u6307\u5b9a\u3057\u3001URL\u3068\u3044\u3046\u7a2e\u985e\u3092\u6307\u5b9a\u3057\u3066\u5199\u771f\u306b\u5199\u3063\u3066\u3044\u308b\u3082\u306e\u3092\u89e3\u6790\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"608\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016.jpg\" alt=\"Gemini3 pro\u306eAPI\u306bGoogle Apps Script(GAS)\u3067\u30c6\u30ad\u30b9\u30c8\u30d7\u30ed\u30f3\u30d7\u30c8\u3068\u753b\u50cf\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\" class=\"wp-image-9126\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016-1024x519.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016-768x389.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016-565x286.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2025\/11\/20251119_auto_016-725x367.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>Gemini3 pro\u306eAPI\u3067\u30c6\u30ad\u30b9\u30c8\u306b\u52a0\u3048\u3066\u753b\u50cf\u3082\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Gemini3\u306f\u753b\u50cf\u8a8d\u8b58\u306e\u80fd\u529b\u304c\u5411\u4e0a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u753b\u50cf\u89e3\u6790\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306a\u3069\u3067\u6d3b\u7528\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google\u304c2025\u5e7411\u670819\u65e5\u306b\u767a\u8868\u3057\u305f\u6700\u65b0\u306e\u751f\u6210AI\u30e2\u30c7\u30eb\u3001Gemini3 pro\u306eAPI\u3092Google Apps Script(GAS)\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u57fa\u672c\u7684\u306b\u306f\u5f93\u6765\u306eGemini\u3068\u540c\u69d8\u306bAPI\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3067\u304d\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL\u306b\u6307\u5b9a\u3059\u308b\u30e2\u30c7\u30eb\u3092\u300cgemini-3-pro-preview\u300d\u3092\u6307\u5b9a\u3059\u308b\u3068Gemini3 pro\u3092API\u7d4c\u7531\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>2025\u5e746\u6708\u306b\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fGemini2.5 pro\u3068\u6bd4\u3079\u3066\u3082\u304b\u306a\u308a\u6027\u80fd\u304c\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u73fe\u6642\u70b9\u3067\u306fAPI\u306f\u6709\u6599\u7248\u306e\u307f\u3067\u7121\u6599\u7248\u306f\u306a\u3044\u305f\u3081\u3001\u6709\u6599\u3067\u3082\u4f7f\u3044\u305f\u3044\u5834\u5408\u306fGemini3 pro preview\u7248\u3092\u5229\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e5\u672c\u6642\u95932025\u5e7411\u670819\u65e5\u306bGoogle\u306e\u751f\u6210AI\u3067\u3042\u308bGemini\u306e\u6700\u65b0\u30e2\u30c7\u30eb\u3068\u3057\u3066Gemini3\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002 \u65e9\u901fGoogle AI Studio\u3067\u3082Gemini3 pro\u304c\u5229\u7528\u958b\u59cb\u3055\u308c\u3001API\u3082\u63d0\u4f9b\u3055\u308c\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9121,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,1265],"tags":[14,1380,1381],"class_list":["post-9109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","category-ai","tag-gas","tag-gemini3","tag-gemini3pro"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9109"}],"version-history":[{"count":5,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9109\/revisions"}],"predecessor-version":[{"id":9131,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9109\/revisions\/9131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/9121"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}