The following should be noted when using the Gemini-CLI-2-API:
- Certification Requirements: A valid authentication method must be configured, either an API key or an OAuth token.OAuth authentication requires a reliable extranet connection to access the Google server.
- free limit: There are only 1,000 free requests per day, beyond which you need to apply for a commercial quota for Google AI Studio.
- Functional limitations: The current version does not support multimodal input (e.g. image processing), only text interaction.
- Model Support: Currently only the Gemini 2.5 Pro model is supported, support for other models may be added in the future.
- Log Management: If file logging mode is enabled, you need to pay attention to the storage space of the log file.
- network requirement: OAuth authentication and model calls require access to Google's servers, and in some network environments a proxy may need to be configured.
- key security: API keys need to be stored properly to avoid disclosure. It is recommended to use environment variables rather than hardcoding to store keys.
- version compatibility: As Google may update the Gemini CLI, one needs to keep an eye on project updates to maintain compatibility.
Users are advised to read the program documentation in its entirety to understand the latest restrictions and requirements before use.
This answer comes from the articleGemini-CLI-2-API: Converting the Gemini CLI to an OpenAI-compatible Native API ServiceThe





























