<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ushirotaro</author_name>
  <author_url>https://blog.hatena.ne.jp/ushirotaro/</author_url>
  <blog_title>後ろ向き太郎の後ろ向き日記</blog_title>
  <blog_url>https://ushirotaro.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>最近、ChatGPTのAPIを使って遊んでいます。 ChatGPTのAPIは、有料会員(3000円くらい)＋トークン代が発生します。 しかし、GoogleのGeminiは無料会員、無料枠でAPIが使えてしまいます！ 私の備忘録を兼ねて、PythonからGemini APIを叩く方法を記載しておきます。私が軽くいじってる程度では無料枠で全然遊べてますよ！ ステップ1: Gemini APIキーを発行する Gemini APIを使うには、まずAPIキーが必要です。これは、アプリケーションがGemini APIにアクセスするための「鍵」のようなものですね。 ①Google AI Studioにアクセ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fushirotaro.hatenablog.com%2Fentry%2F2025%2F07%2F14%2F154844&quot; title=&quot;Geminiの無料枠ってすごい！APIも無料枠で使える！つまり自作ソフトに簡単にAIが組み込めるわけで！ - 後ろ向き太郎の後ろ向き日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/u/ushirotaro/20250714/20250714150928.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-14 15:48:44</published>
  <title>Geminiの無料枠ってすごい！APIも無料枠で使える！つまり自作ソフトに簡単にAIが組み込めるわけで！</title>
  <type>rich</type>
  <url>https://ushirotaro.hatenablog.com/entry/2025/07/14/154844</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
