Genspark and Gemini API Selection - Practical AI Development Environment
📖 Table of Contents
1. Introduction - Choosing an AI Development Environment
As we progressed with web app development, we faced the important decision of "which development environment to use." Genspark, which integrates an AI superchat tool and a sandbox environment, and the traditional cloud environment, Google Cloud Platform (GCP), each have their own characteristics.
This article will clarify the reasons for choosing Genspark and the background behind selecting the Gemini API (AI API provided by Google). It will also explain why we opted to use only the Gemini API without utilizing the entire Google Cloud Platform.
2. Genspark Features
AI Superchat Function
At the core of Genspark is its conversational information retrieval feature. While traditional search engines require entering keywords and browsing result lists, AI Superchat presents summarized information in response to natural language questions.
- Conversational format: Allows natural questions, such as "How do I use the Gemini API?"
- Context understanding: Responds to follow-up questions based on previous context
- Summarization and organization: Integrates and presents information from multiple sources
- Explanation of technical terms: Displays explanations of technical terms along with related information
Sandbox Environment
Genspark not only offers AI Superchat but also provides a code execution environment (sandbox). This allows the entire process from code generation to execution and debugging to be completed within a single platform.
- Code execution: Supports various languages like Python, Node.js, and Bash
- File operations: Allows reading, writing, and editing files
- AI Drive integration: Integration with persistent file storage (AI Drive: cloud storage provided by Genspark)
- Package management: Allows adding libraries with
pip install( pip official document)
Rich Set of Tools
Genspark integrates various tools such as web search, crawling, image generation, audio generation, and video generation. This enables handling a wide range of tasks, from information gathering to content creation.
3. Google Cloud Features
Google Cloud Platform (GCP)
Google Cloud Platform is a suite of cloud computing services provided by Google. It offers a wide range of services, including virtual machines, databases, storage, and machine learning.
- Virtual machines, storage, serverless function execution environments, data warehouses, etc.
Google Colab is a cloud execution environment based on Jupyter Notebook (a notebook-style development environment that integrates code, text, and graphs). It is primarily used for data science and machine learning development.
- Jupyter Notebook environment: Allows code execution and documentation
- GPU/TPU support: Free access to GPU and TPU
- Google Drive integration: For storing data and notebooks
Google AI Studio
Google AI Studio is an integrated development environment for the Gemini API, primarily specialized in prompt engineering (a technology for optimizing instructions to AI) and model prototyping.
- Prompt development: Creation and testing of text, chat, and multimodal prompts
- Code snippet generation: Automatic code generation in languages like Python
- API key management: Generation and management of Gemini API keys
4. Reasons for Choosing Genspark
4-1. Convenience of AI Superchat
When exploring technical documents and API specifications, traditional Google searches required opening multiple web pages to compare information. In contrast, Genspark's AI Superchat presents summarized information in response to questions, making information gathering more efficient.
- Technical document exploration: Instant answers to specific questions, such as "How to authenticate with the Gemini API"
- Explanation of technical terms: Displays explanations of terms like OAuth 2.0 (authentication protocol) and API Key (authentication key) along with related information
- Context understanding: Responds to follow-up questions based on previous context
4-2. Strengths of the Sandbox Environment
The ability to rapidly iterate through the cycle from code generation to execution and debugging was a significant strength of Genspark. Traditionally, code execution after generation required a local environment or Google Colab, but with Genspark, it can be executed instantly in the sandbox environment.
- Rapid cycle: Shortens the code generation → execution → debugging cycle
- File operations: Easy file persistence through AI Drive integration
- Package management: Allows adding libraries with
pip installand using them instantly
As explained in Article 53: Difference Between Code Generation and Code Execution, by applying the V-Model (a development model that separates upstream and downstream processes in software development and maps design to implementation and testing), we were able to leverage the strengths of each AI.
V-Model Structure
Figure: V-Model development process (flow from upstream to downstream processes)
4-3. Appeal as an Integrated Development Environment
Genspark's appeal was that AI superchat, code generation, and execution could all be completed within a single platform. Traditionally, it required switching between multiple tools: Google Search for information gathering → Google AI Studio for Gemini API testing → Google Colab for code execution.
- Information gathering: Exploring technical documents and API specifications with AI Superchat
- Code generation: AI generates code
- Code execution: Executing and debugging in the sandbox environment
- File management: Persistence with AI Drive
5. Background of Gemini API Selection
5-1. Why Google Cloud Platform Was Not Used
For the production environment of our web app, we chose Cloudflare Workers (a serverless execution environment provided by Cloudflare) instead of Google Cloud Platform. The reasons are as follows:
- Limitations of Google Colab/AI Studio: Specialized for development prototyping and not suitable for production environments
- Appeal of Cloudflare Workers: Serverless (no server management required) environment with a generous free tier
- Cost reduction: Production operation possible with Cloudflare Workers Free plan
Therefore, there was no need to use the entire Google Cloud Platform, and we configured it to use only the Gemini API.
5-2. Reasons for Choosing Gemini API
For the web app, we needed to use an AI API for automatic blog post generation. After comparing several AI APIs, we selected the Gemini API.
- Generous free tier: 15 requests/min, 500 requests/day (Gemini 2.0 Flash)
- Performance: Gemini 2.5 Flash has performance comparable to GPT-4o
- Reliability: Official API provided by Google, stable operation can be expected
- Cost reduction: Operable within the free tier, low cost even if paid
5-3. Combination of Genspark and Gemini API
The final configuration involved using different tools for the development and production environments.
- Development environment: Genspark (AI superchat and sandbox integrated)
- Production environment: Cloudflare Workers + Gemini API (serverless, low cost)
- Coexistence: Genspark utilized in the development phase, Gemini API used in the production environment
For specific challenges during the development process, please refer to Article 53, Article 51, and Article 52.
6. Summary - Environment Selection Based on Purpose
For web app development, we chose a configuration combining Genspark (development environment) and Gemini API (production environment). For Google Cloud Platform, we only utilized the Gemini API and did not use other services.
- Development environment: Genspark - Integration of AI superchat and sandbox environment
- Production environment: Cloudflare Workers + Gemini API - Serverless, low cost
- Google Cloud Platform: Not needed this time (only Gemini API was used)
For details on the development process, please refer to Article 53, Article 51, and Article 52.