---
title: "Discussion on \"Why You Should Never Embed Your Gemini API Key in Client Code (And How Firebase AI Logic Fixes It)\" | Hashnode"
description: "Discussion on \"Why You Should Never Embed Your Gemini API Key in Client Code (And How Firebase AI Logic Fixes It)\". The explosion of generative AI has pushed thousands of web developers to add intelligent features to their apps.\nThe first instinct is usually to call the Gemini API's SDK directly from the browser. T"
url: "https://hashnode.com/posts/why-you-should-never-embed-your-gemini-api-key-in-client-code-and-how-firebase-ai-logic-fixes-it/6ab11bd3c0a4b6fb82bc1891"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why You Should Never Embed Your Gemini API Key in Client Code (And How Firebase AI Logic Fixes It)](https://freecodecamp.org/news/why-you-should-never-embed-your-gemini-api-key-in-client-code-and-how-firebase-ai-logic-fixes-it?utm_source=hashnode&utm_medium=feed)

The explosion of generative AI has pushed thousands of web developers to add intelligent features to their apps. The first instinct is usually to call the Gemini API's SDK directly from the browser. T

Sep 21 · 15 min read · freecodecamp.org  
Read the article

-   [#firebase-ai-logic](https://hashnode.com/tag/firebase-ai-logic)
-   [#firebase](https://hashnode.com/tag/firebase)
-   [#firebase-app-check](https://hashnode.com/tag/firebase-app-check)
-   [#gemini](https://hashnode.com/tag/gemini)

## Written by

[Caleb Mintoumba](https://hashnode.com/@phoekerson)

@phoekerson · Lomé, Togo

  
[View profile](https://hashnode.com/@phoekerson)

Full-Stack developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
