gemini-api
The firm's Gemini API key (free tier, no billing attached) and every tool that consumes it. Use when the user mentions the Gemini API key, free Gemini key, the Google AI API key, gemini OCR cost, "no billing", or needs the key configured for OCR Gemini / bundle_processor.py / okf-ocr / gemini-3.5-flash-lite / gemini-3-flash-preview. Never echo the key itself in chat output, logs, or files other than .env.
Source: .opencode/skills/gemini-api/SKILL.md — site rebuilt 2026-09-05.
Gemini API key¶
The key lives in this skill folder's .env file (GEMINI_API_KEY=...) and is
also set as a user-level Windows environment variable.
Usage rules¶
- Read the key from
.envnext to this SKILL.md, or from theGEMINI_API_KEYenvironment variable. Never hardcode it into new scripts, never print it, never include it in error messages or chat replies — reference it as "the GEMINI_API_KEY env var". - The key has NO billing attached (free tier). Budgets must be respected: costs are tracked per session in the tools that support it, and okf-ocr enforces a daily request cap.
Tools that use this key¶
| Tool | Path | Model |
|---|---|---|
| Verbatim OCR Extractor (Streamlit app) | C:\Python\OCR Gemini.py → C:\Python\bundle_processor.py |
gemini-3-flash-preview (5-page PDF chunks, verbatim prompt, live cost tracker) |
| okf-ocr pipeline (scans → text, Gemini batch OCR) | C:\Users\antho\.config\opencode\skills\okf-ocr\tools\ocr_pipeline.py |
gemini-3.5-flash-lite default; chain auto = gemini → qwen → mimo → mistral → paddle |
| okf-ocr table QA | ...\okf-ocr\tools\table_vision_check.py (--engine gemini) |
gemini-3.5-flash-lite |
| Model list helper | C:\Python\from google import genai.py |
lists available models for the key |
Quick checks¶
- Verify the key:
python C:\Python\from google import genai.py(edit the placeholder first, or rely on env var). - Launch the OCR app:
python "C:\Python\OCR Gemini.py"then open http://localhost:8501. The sidebar accepts a key override, otherwise the app falls back to theGEMINI_API_KEYenv var.