{
  "id": "gemini-api--cloudflare",
  "schema_version": "1.2",
  "app": {
    "slug": "gemini-api",
    "name": "Gemini API",
    "vendor": "Google",
    "website": "https://ai.google.dev",
    "categories": [
      "ai-inference"
    ],
    "owned_by_platform": false
  },
  "ecosystem": "cloudflare",
  "connection": {
    "built_by": "ecosystem-owner",
    "method": "native-api",
    "setup_docs_url": "https://developers.cloudflare.com/ai-gateway/usage/providers/google-ai-studio/"
  },
  "sync": [
    {
      "object": "ai-gateway",
      "direction": "supported",
      "notes": "Gemini models can be called through AI Gateway from Google AI Studio (endpoint ending in /google-ai-studio) or Vertex AI (/google-vertex-ai). AI Studio keys can be sent with the request or stored in the gateway (BYOK); Vertex AI credentials can be stored with BYOK, sent as service account JSON or as an access token. Cloudflare Unified Billing can pay for both.",
      "src": [
        "s1",
        "s2",
        "s3"
      ]
    }
  ],
  "pricing": {
    "model": "usage-based",
    "plans": [
      {
        "prices": {},
        "name": "Paid Tier",
        "billing": "per-transaction",
        "rate": "priced per 1M input and output tokens, set per model; some models are free of charge on a free tier",
        "per": "USD, as the page states; rates differ by model, see the pricing page",
        "src": [
          "s4"
        ]
      }
    ]
  },
  "regions": {
    "supported": [
      "GLOBAL"
    ],
    "basis": "no-restriction-stated",
    "src": [
      "s1"
    ],
    "label": "No regional restriction stated"
  },
  "requirements": {
    "ecosystem_plan_min": "unknown",
    "ecosystem_features_required": [],
    "src": [
      "s1"
    ]
  },
  "limitations": [
    {
      "summary": "Vertex AI needs a Google Cloud account with the Vertex AI API enabled and a service account or access token, unless the requests are paid with Cloudflare Unified Billing credits",
      "severity": "minor",
      "src": [
        "s2",
        "s3"
      ]
    },
    {
      "summary": "On Vertex AI, use a regional endpoint: the global endpoint has limited model support, and a direct access token works only on the provider-specific endpoint, not the unified chat completions endpoint",
      "severity": "minor",
      "src": [
        "s2"
      ]
    },
    {
      "summary": "Paying through Cloudflare Unified Billing adds a 5% fee to the credits bought; provider rates are passed through without markup",
      "severity": "minor",
      "src": [
        "s3"
      ]
    }
  ],
  "alternatives": [],
  "editorial": {
    "answer_summary": "Gemini API works with Cloudflare: models through AI Gateway. Usage-based: priced per 1M input and output tokens, set per model; some models are free of charge on a free tier.",
    "best_for": [],
    "not_ideal_for": []
  },
  "profile": {
    "status": "listed"
  },
  "sources": [
    {
      "id": "s1",
      "url": "https://developers.cloudflare.com/ai-gateway/usage/providers/google-ai-studio/index.md",
      "title": "https://developers.cloudflare.com/ai-gateway/usage/providers/google-ai-studio/index.md",
      "type": "platform-docs",
      "retrieved_at": "2026-11-26T22:21:37Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "4246ed0b05646775fb8ab9506397546af348d8c173031ff70a9d7f56a88e3c27",
        "text_sha256": "001161b80b1e08ccd5628b78ffadbd45febc78f2bd96d1fb310dccc61f90ed1e"
      }
    },
    {
      "id": "s2",
      "url": "https://developers.cloudflare.com/ai-gateway/usage/providers/vertex/index.md",
      "title": "https://developers.cloudflare.com/ai-gateway/usage/providers/vertex/index.md",
      "type": "platform-docs",
      "retrieved_at": "2026-11-26T22:21:40Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "740dbc1fb16b25bc968a4cc3b05a1f511a202f0dac0eb14f6e291c7460bc03ea",
        "text_sha256": "c96ee0cf0b6596c4c63ee3c045982c4e55c8640523cef26f05e99f47a9e2108c"
      }
    },
    {
      "id": "s3",
      "url": "https://developers.cloudflare.com/ai-gateway/features/unified-billing/index.md",
      "title": "https://developers.cloudflare.com/ai-gateway/features/unified-billing/index.md",
      "type": "platform-docs",
      "retrieved_at": "2026-11-26T22:22:32Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "d4082610b3b4642d610ce00eb73bd78eadd39f0d1e4adf1217e29d4200bc2b64",
        "text_sha256": "3cdb25a4c801fc55e06f05f11164ae785e785c9804295c62432d63d3342271fa"
      }
    },
    {
      "id": "s4",
      "url": "https://ai.google.dev/gemini-api/docs/pricing",
      "title": "Gemini Developer API pricing - Gemini API | Google AI Studio",
      "type": "vendor-pricing",
      "retrieved_at": "2026-11-26T11:31:09Z",
      "archived": {
        "fetched_at": "2026-11-28T17:05:24.064Z",
        "sha256": "58e788ed142dccaef4ddfe53f4d8e9a7fbfb4f14bd2121c9bb3ea62b7089d475",
        "text_sha256": "bc76b790be6997a34c9cb987aa7357dcaf4135140ddfbfd1d917cc4fc793c027"
      }
    }
  ],
  "verification": {
    "status": "verified",
    "last_verified": "2026-11-27",
    "verified_by": [
      "research-agent",
      "verifier-agent"
    ],
    "open_flags": []
  },
  "publishing": {
    "state": "live",
    "batch": "LOD-157 batch 2 group C2"
  },
  "changelog": [
    {
      "date": "2026-11-27",
      "change": "Record created from public sources (LOD-157 batch 2 group C2): https://developers.cloudflare.com/ai-gateway/usage/providers/google-ai-studio/index.md; https://developers.cloudflare.com/ai-gateway/usage/providers/vertex/index.md; https://developers.cloudflare.com/ai-gateway/features/unified-billi."
    },
    {
      "date": "2026-11-27",
      "change": "Price reused from gemini-api--replit (read 26-11-2026): Gemini Developer API pricing - Gemini API | Google AI Studio; the app's own plans exactly as recorded there, source kept with its original read time."
    }
  ],
  "not_documented": [
    "dashboard-integration",
    "hyperdrive",
    "workers-sdk",
    "pages-plugin",
    "git-deploy",
    "ci-deploy",
    "database",
    "background-jobs",
    "email-sending",
    "auth",
    "rate-limiting",
    "observability",
    "logpush",
    "remote-mcp",
    "dns-records",
    "access-sso"
  ],
  "vendor": {
    "id": "google",
    "name": "Google",
    "api": "https://trylode.io/api/vendors/google.json"
  },
  "url": "https://trylode.io/cloudflare/gemini-api/",
  "facts": [
    {
      "id": "sync-ai-gateway",
      "topic": "sync",
      "statement": "Gemini API models can be called through Cloudflare AI Gateway.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s1",
        "s2",
        "s3"
      ],
      "url": "https://trylode.io/cloudflare/gemini-api/#sync-ai-gateway"
    },
    {
      "id": "price-paid-tier",
      "topic": "pricing",
      "statement": "Gemini API's Paid Tier plan charges priced per 1M input and output tokens, set per model; some models are free of charge on a free tier.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s4"
      ],
      "url": "https://trylode.io/cloudflare/gemini-api/#price-paid-tier"
    },
    {
      "id": "regions",
      "topic": "regions",
      "statement": "The sources don't limit Gemini API to particular countries.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s1"
      ],
      "url": "https://trylode.io/cloudflare/gemini-api/#regions"
    },
    {
      "id": "limitation-1",
      "topic": "limitation",
      "statement": "Vertex AI needs a Google Cloud account with the Vertex AI API enabled and a service account or access token, unless the requests are paid with Cloudflare Unified Billing credits.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s2",
        "s3"
      ],
      "url": "https://trylode.io/cloudflare/gemini-api/#limitation-1"
    },
    {
      "id": "limitation-2",
      "topic": "limitation",
      "statement": "On Vertex AI, use a regional endpoint: the global endpoint has limited model support, and a direct access token works only on the provider-specific endpoint, not the unified chat completions endpoint.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s2"
      ],
      "url": "https://trylode.io/cloudflare/gemini-api/#limitation-2"
    },
    {
      "id": "limitation-3",
      "topic": "limitation",
      "statement": "Paying through Cloudflare Unified Billing adds a 5% fee to the credits bought; provider rates are passed through without markup.",
      "label": "Lode-verified",
      "verified": "2026-11-27",
      "src": [
        "s3"
      ],
      "url": "https://trylode.io/cloudflare/gemini-api/#limitation-3"
    }
  ],
  "cite_as": "Lode (trylode.io), Gemini API + Cloudflare, verified 2026-11-27",
  "lode": {
    "publish_state": "live",
    "stale": false,
    "completeness": 0.7
  }
}