<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sasaki-willgate</author_name>
  <author_url>https://blog.hatena.ne.jp/sasaki-willgate/</author_url>
  <blog_title>WILLGATE TECH BLOG</blog_title>
  <blog_url>https://tech.willgate.co.jp/</blog_url>
  <categories>
    <anon>AI</anon>
  </categories>
  <description>こんにちは！開発室の佐々木です。 Googleが提供するGemini APIには、生成結果のリスクをコントロールする「安全性設定」が用意されているのをご存知でしょうか？ 不適切な出力を事前に防いでくれる便利な仕組みですが、一方で判定が厳しすぎると、意図せずフィルタにかかってしまい、生成結果が空で返ってくることも... 本記事では、Gemini API における「安全性設定」について、その仕組みから実際の使い方までを分かりやすく解説していきます。 実際にブロックされる例 安全性設定とは？ 回避方法（安全性設定の調整） リクエスト例 実務でのベストプラクティス おわりに 実際にブロックされる例 ま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.willgate.co.jp%2Fentry%2F2025%2F09%2F01%2F120000&quot; title=&quot;Gemini APIで生成結果が出ない理由とは？安全性設定の仕組みを解説 - WILLGATE TECH BLOG&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/s/sasaki-willgate/20250828/20250828223124.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-09-01 12:00:00</published>
  <title>Gemini APIで生成結果が出ない理由とは？安全性設定の仕組みを解説</title>
  <type>rich</type>
  <url>https://tech.willgate.co.jp/entry/2025/09/01/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
