ModelsPricingTutorialsBlogFAQ
Home/Tutorials/Gemini CLI API
Tutorial · Gemini CLI

Connect the Gemini CLI

Point the Gemini CLI endpoint at LowCostAI. The Gemini channel is being monitored, so test with light traffic first.

Connect in three steps

The Gemini CLI reads the endpoint and credentials from env vars.

Step 1
Create an API key

Create a key.

Step 2
Set env vars

Export the endpoint and API key.

Step 3
Run and observe

Verify connectivity and stability with light traffic.

Configuration

export GEMINI_API_KEY="YOUR_TOKEN"
export GOOGLE_GEMINI_BASE_URL="https://api.lowcostaiapi.com"

gemini "summarize the README"

Variable names can vary by version; follow the dashboard notes.