Use Gemini CLI to call Google Gemini models from the terminal.
npm install -g @google/gemini-cli
export GEMINI_BASE_URL="https://cn.chatapi.app" export GEMINI_API_KEY="your-api-key"
gemini -p "Summarize what this code does"