Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Вы можете использовать App Prototyping agent для автоматического создания прототипа нового приложения с помощью API Gemini , а также запустить «чистый холст» с помощью API Gemini Developer одним нажатием кнопки. Начните использовать новейшие модели генеративного ИИ от Google в своём приложении с помощью шаблона, включающего всю необходимую инфраструктуру API Gemini . Всё, что вам нужно сделать, — это добавить ключ API Gemini и начать писать код!
Создайте новое приложение с предустановленным API Gemini
Получите доступ к шаблону API Firebase StudioGemini с панели шаблонов и создавайте проекты, используя возможности искусственного интеллекта.
Выберите язык и фреймворк для вашей среды. Шаблон API Gemini в Firebase Studio доступен на JavaScript (с Vite или Genkit ) и Python (блокнот или веб-приложение с Flask), а вскоре появятся и другие языки и фреймворки.
(Необязательно) Если вы хотите добавить фреймворк LangChain в свое приложение, выберите опцию Использовать LangChain .
Когда загрузится ваше рабочее пространство, откройте файл main.js или main.py и обновите переменную API_KEY , используя ваш ключ API Gemini из Google AI Studio .
Протестируйте базовое приложение на веб-панели предварительного просмотра, чтобы увидеть API Gemini в действии, и соответствующим образом измените свое новое приложение API Gemini .
Добавьте API Gemini в существующее приложение
Вы также можете добавить API Gemini в свое существующее приложение непосредственно из Firebase Studio .
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-25 UTC."],[],[],null,["While you can use [the App Prototyping agent](/docs/studio/get-started-ai)\nto automatically create a new app prototype with the Gemini API, you can\nalso launch a blank canvas with the\n[Gemini Developer API](https://ai.google.dev/) through one click of\na button. Start using the latest generative AI models from Google in your\napp with a template that includes all the Gemini API infrastructure you\nneed. All you need to do is add your\n[Gemini API key](https://ai.google.dev/tutorials/setup) and get coding!\n\nBuild a new app with the Gemini API pre-loaded\n\nAccess the Firebase Studio Gemini API template from the\ntemplates dashboard and build with the power of AI.\n\n1. Open the [Firebase Studio template for the Gemini API](https://studio.firebase.google.com//new/gemini) from the Firebase Studio template dashboard.\n2. Select the language and framework for your environment. The Gemini API template in Firebase Studio is available in JavaScript (with Vite or Genkit) and Python (notebook or web app with Flask), with more languages and frameworks coming soon.\n3. *(Optional)* If you want to add the [LangChain](https://www.langchain.com/) framework to your app, select the **Use LangChain** option.\n4. When your workspace loads, open the `main.js` or `main.py` file and update the `API_KEY` variable with your Gemini API key from [Google AI Studio](https://aistudio.google.com/app/apikey).\n5. Test the base app in the web preview panel to watch the Gemini API in action, and modify your new Gemini API app accordingly.\n\nAdd the Gemini API to an existing app\n\nYou can also add the Gemini API to your existing app directly from\nFirebase Studio.\n\n1. Open [Firebase Studio](https://studio.firebase.google.com/).\n\n2. Click the Firebase Studio icon from the navigation pane to open the\n Firebase Studio panel.\n\n3. Expand the **Google Integrations** section and click **Add Gemini API**.\n\n4. Follow the prompts to authenticate your account and add a Gemini API key\n to your app."]]